Blame |
Last modification |
View Log
| RSS feed
#ifndef __ILLA_H__
#define __ILLA_H__
//----------------BEGIN------------------
// *** Librerie S.Ha.R.K ***
// *** Librerie Standard C ***
// *** Librerie FAB ***
#include"fab_lib/fab_grx.h"
#include"fab_lib/fab_tool.h"
// *** Librerie BCA ***
#include <stdlib.h>
// ---------------------------------
// *** Elementi Grafici Generici ***
// ---------------------------------
// IMMAGINI:
FAB_IMAGE* image_leaf;
FAB_IMAGE* image_bg;
FAB_IMAGE* image_player;
FAB_IMAGE* image_enemy;
// BORDI:
FAB_BORDER* border_blu7;
// FRAME:
FAB_FRAME* frame_scorer;
#define UPDATE_PERIOD 500000
#define UPDATE_WCET 50000
#define Max_Leaves 9
#define player_image_width 45
#define player_image_height 45
#define enemy_image_width 45
#define enemy_image_height 45
#define leaf_image_width 120
#define leaf_image_height 60
#define PLAYER_INITIAL_POSITION_X 200
#define PLAYER_INITIAL_POSITION_Y 75
#define ENEMY_INITIAL_POSITION_X 600
#define ENEMY_INITIAL_POSITION_Y 75
#define MAX_DOWN_LEVELS 3
#define IMAGE_OFFSET 20
#define SCREEN_WIDTH 1024
#define SCREEN_HEIGHT 768
#define PLAY_AREA_WIDTH 800
#define PLAY_AREA_HEIGHT 600
struct {
int x0;
int y0;
int x1;
int y1;
}leaves[Max_Leaves];
struct
{
int x;
int y;
int iLevel;
int iLeaf;
}player;
struct
{
int x;
int y;
}enemy;
/* useful colors... */
int white;
int black;
int red;
int gray;
// MUTEX:
mutex_t grx_mutex;
mutex_t player_mutex;
mutex_t leaves_mutex[Max_Leaves];
PID g_UpPlayer;
PID g_DownPlayer;
int bUp;
int bDown;
int iScore;
int iScoreLevel;
int iScoreDown;
int app_mutex_init(mutex_t *m);
//for jetcontrol
void init_jetcontrol();
void scenario_jetcontrol();
// FUNZIONI GESTIONE RISORSE DI MEMORIA:
void kern_init_bca();
//------------------END------------------
#endif