mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
original xrick code by 'BigOrno' at: http://www.bigorno.net/xrick/ Rockbox port, plus bugfixes at: https://github.com/pierluigi-vicinanza/xrick Further changes: * Additonal fixes from g#3026 * Port to modern plugin API * Add Pluginlib keymap fallback * Support all >1bpp screens * Fix build warnings in miniz * Better error message when resources are missing Change-Id: Id83928bc2539901b0221692f65cbca41389c58e7
74 lines
2.2 KiB
C
74 lines
2.2 KiB
C
/*
|
|
* xrick/screens.h
|
|
*
|
|
* Copyright (C) 1998-2002 BigOrno (bigorno@bigorno.net).
|
|
* Copyright (C) 2008-2014 Pierluigi Vicinanza.
|
|
* All rights reserved.
|
|
*
|
|
* The use and distribution terms for this software are contained in the file
|
|
* named README, which can be found in the root of this distribution. By
|
|
* using this software in any fashion, you are agreeing to be bound by the
|
|
* terms of this license.
|
|
*
|
|
* You must not remove this notice, or any other, from this software.
|
|
*/
|
|
|
|
#ifndef _SCREENS_H
|
|
#define _SCREENS_H
|
|
|
|
#include "xrick/system/basic_types.h"
|
|
#include "xrick/config.h"
|
|
|
|
#include <stddef.h> /* size_t */
|
|
|
|
#define SCREEN_TIMEOUT 4000
|
|
#define SCREEN_RUNNING 0
|
|
#define SCREEN_DONE 1
|
|
#define SCREEN_EXIT 2
|
|
|
|
typedef struct {
|
|
U16 count; /* number of loops */
|
|
U16 dx, dy; /* sprite x and y deltas */
|
|
U16 base; /* base for sprite numbers table */
|
|
} screen_imapsteps_t; /* description of one step */
|
|
|
|
enum { HISCORE_NAME_SIZE = 10 };
|
|
typedef struct {
|
|
U32 score;
|
|
U8 name[HISCORE_NAME_SIZE];
|
|
} hiscore_t;
|
|
|
|
extern size_t screen_nbr_imapsl;
|
|
extern U8 *screen_imapsl; /* sprite lists */
|
|
|
|
extern size_t screen_nbr_imapstesps;
|
|
extern screen_imapsteps_t *screen_imapsteps; /* map intro steps */
|
|
|
|
extern size_t screen_nbr_imapsofs;
|
|
extern U8 *screen_imapsofs; /* first step for each map */
|
|
|
|
extern size_t screen_nbr_imaptext;
|
|
extern U8 **screen_imaptext; /* map intro texts */
|
|
|
|
extern size_t screen_nbr_hiscores;
|
|
extern hiscore_t *screen_highScores; /* highest scores (hall of fame) */
|
|
|
|
#ifdef GFXPC
|
|
extern U8 *screen_imainhoft; /* hall of fame title */
|
|
extern U8 *screen_imainrdt; /* rick dangerous title */
|
|
extern U8 *screen_imaincdc; /* core design copyright text */
|
|
extern U8 *screen_congrats; /* congratulations */
|
|
#endif /* GFXPC */
|
|
extern U8 *screen_gameovertxt; /* game over */
|
|
extern U8 *screen_pausedtxt; /* paused */
|
|
|
|
extern U8 screen_xrick(void); /* splash */
|
|
extern U8 screen_introMain(void); /* main intro */
|
|
extern U8 screen_introMap(void); /* map intro */
|
|
extern U8 screen_gameover(void); /* gameover */
|
|
extern U8 screen_getname(void); /* enter you name */
|
|
extern void screen_pause(bool); /* pause indicator */
|
|
|
|
#endif /* ndef _SCREENS_H */
|
|
|
|
/* eof */
|