mirror of
https://git.planet-casio.com/Fcalva/Copy3DEngine.git
synced 2024-12-26 19:43:42 +01:00
Fix post-jam
This commit is contained in:
parent
0d363f0c8d
commit
ce0a319a52
5 changed files with 4 additions and 8 deletions
|
@ -37,7 +37,6 @@ void move(RcGame *game) {
|
|||
V2d *dir = &game->player.dir;
|
||||
V2d *pos = &game->player.pos;
|
||||
int map_w = game->current_map->w;
|
||||
int map_h = game->current_map->h;
|
||||
|
||||
fixed_t oldDirX;
|
||||
fixed_t oldPlaneX;
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
#define screen_w 128
|
||||
#define screen_h 64
|
||||
#define viewport_w 100
|
||||
#define viewport_w 109
|
||||
#define viewport_h 64
|
||||
#define max_dist fix(32)
|
||||
//Max sprites to attempt to render
|
||||
|
@ -32,6 +32,6 @@
|
|||
|
||||
//===== Paramètres de debug =====
|
||||
|
||||
#define debug 1 //pour afficher les infos de debug
|
||||
#define debug 0 //pour afficher les infos de debug
|
||||
|
||||
#define asm_opti 0
|
||||
|
|
BIN
src/.game.c
Normal file
BIN
src/.game.c
Normal file
Binary file not shown.
|
@ -129,13 +129,10 @@ WeaponStat weapon_stats[] = {
|
|||
};
|
||||
|
||||
void weapon_hurt_stuff(CCGame *game){
|
||||
Sprite *hit;
|
||||
Sprite *hit = NULL;
|
||||
int dist = raycast((RcGame*)game, &((RcGame*)game)->player, &hit);
|
||||
if(dist > weapon_stats[game->curr_weapon].range || !hit)
|
||||
return;
|
||||
//:p
|
||||
if(hit > 0x90000000)
|
||||
return;
|
||||
hit->hp -= weapon_stats[game->curr_weapon].dmg;
|
||||
}
|
||||
|
||||
|
|
|
@ -97,7 +97,7 @@ void draw_hands(CCGame *game){
|
|||
|
||||
void draw_gui(CCGame *game){
|
||||
draw_hands(game);
|
||||
dline(100,0,100,63,3);
|
||||
dline(109,0,109,63,3);
|
||||
dprint_opt(127,10,3,C_NONE,DTEXT_RIGHT,DTEXT_TOP,"%d",game->_bgame.player.hp);
|
||||
//TODO : replace w/ icon
|
||||
dtext_opt(127,20,3,C_NONE,DTEXT_RIGHT,DTEXT_TOP,"HP",-1);
|
||||
|
|
Loading…
Reference in a new issue