mirror of
https://git.planet-casio.com/Slyvtt/Collab_RPG.git
synced 2025-04-19 17:37:36 +02:00
avancées de debug
This commit is contained in:
parent
5b74a5e4b9
commit
e6a677a392
1 changed files with 3 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
|||
#include "map.h"
|
||||
#include "config.h"
|
||||
#include <gint/display.h>
|
||||
#include <gint/keyboard.h> /*debug*/
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
|
@ -22,7 +23,7 @@ extern bopti_image_t demo_PNJ_img;
|
|||
void npc_draw(Game *game) {
|
||||
Player *player = &game->player;
|
||||
|
||||
for (int u=0; u<game->map_level->nbextradata; u++)
|
||||
for (uint32_t u=0; u<game->map_level->nbextradata; u++) //uint pour enlever un warning
|
||||
{
|
||||
ExtraData *Data = &game->map_level->extradata[u];
|
||||
|
||||
|
@ -40,6 +41,7 @@ void npc_draw(Game *game) {
|
|||
|
||||
int16_t deltaX1=((int16_t) (Data->xpath[v % NbPoints] * PXSIZE))-(int16_t) player->wx;
|
||||
int16_t deltaY1=((int16_t) (Data->ypath[v % NbPoints] * PXSIZE))-(int16_t) player->wy;
|
||||
/*DEBUG*/ dprint(0, 0, 0xFAFA, "coucou 43 : %d", v); dupdate(); getkey(); //plante avant ici (le v % NbPoints est sus)
|
||||
|
||||
int16_t deltaX2=((int16_t) (Data->xpath[(v+1) % NbPoints] * PXSIZE))-(int16_t) player->wx;
|
||||
int16_t deltaY2=((int16_t) (Data->ypath[(v+1) % NbPoints] * PXSIZE))-(int16_t) player->wy;
|
||||
|
|
Loading…
Add table
Reference in a new issue