2024-09-01 16:38:23 +02:00
|
|
|
// Voir README.md pour license précise, par Fcalva 2023-2024 et est sous GPLv3
|
|
|
|
|
|
|
|
#ifndef moteur_h
|
|
|
|
#define moteur_h
|
|
|
|
|
|
|
|
#include "libprof.h"
|
|
|
|
#include <gint/image.h>
|
|
|
|
|
|
|
|
//param. graphiques
|
|
|
|
#define screen_w 396
|
|
|
|
#define screen_h 224
|
|
|
|
#define viewport_w 396
|
2024-09-01 17:31:46 +02:00
|
|
|
#define viewport_h 200
|
2024-09-01 16:38:23 +02:00
|
|
|
#define max_dist fix(32) //en tuiles << 16, actuellement 32
|
|
|
|
|
|
|
|
#define TINDEX_S 256
|
|
|
|
|
|
|
|
#define debug 0 //pour afficher les infos de debug
|
|
|
|
|
|
|
|
#define asm_opti 0
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
|
|
|
prof_t raycast_time;
|
|
|
|
prof_t draw_time;
|
|
|
|
|
|
|
|
} EngineTimers;
|
|
|
|
|
|
|
|
void draw_stripe(image_t *tex, int texSampleY, int linePos, fixed_t texSize, int texX, int x);
|
|
|
|
|
|
|
|
void load_map();
|
|
|
|
void end_screen();
|
|
|
|
void draw_walls(
|
|
|
|
#if debug
|
|
|
|
EngineTimers *timers
|
|
|
|
#endif
|
|
|
|
);
|
|
|
|
void move();
|
|
|
|
|
|
|
|
#endif /* moteur */
|