mirror of
https://git.planet-casio.com/Fcalva/Copy3DEngine.git
synced 2024-12-28 04:23:44 +01:00
Maj a la version sur la page
This commit is contained in:
parent
08ba5ff335
commit
25c6bee67a
4 changed files with 9 additions and 9 deletions
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -3,7 +3,11 @@
|
||||||
/build-cg
|
/build-cg
|
||||||
/build-cg-push
|
/build-cg-push
|
||||||
/*.g1a
|
/*.g1a
|
||||||
/*.g3a
|
*.g3a
|
||||||
|
|
||||||
|
#Nano temp files
|
||||||
|
|
||||||
|
*.swp
|
||||||
|
|
||||||
# Python bytecode
|
# Python bytecode
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
Le code est sous GPL V3
|
Le code est sous GPL V3
|
||||||
|
|
||||||
Il reste des choses a améliorer, et des fonctions inutiles. Je vais probablement y revenir un jour (TM) pour nettoyer le code.
|
Il reste des choses a améliorer, et des patchs du moteur à appliquer. Je vais probablement y revenir un jour (TM).
|
||||||
Utilise fxSDK/gint
|
Utilise fxSDK/gint
|
||||||
|
|
BIN
src/.main.c.swp
BIN
src/.main.c.swp
Binary file not shown.
10
src/moteur.c
10
src/moteur.c
|
@ -261,12 +261,8 @@ void draw_walls(image_t *tex_1, image_t *tex_2, image_t *tex_3, image_t *tex_4,
|
||||||
deltaDistY = abs(fdiv(0xFFFF, rayDirY));
|
deltaDistY = abs(fdiv(0xFFFF, rayDirY));
|
||||||
|
|
||||||
//calculate step and initial sideDist
|
//calculate step and initial sideDist
|
||||||
if (rayDirX == 0) {
|
if (rayDirX < 0) {
|
||||||
stepX = 0;
|
stepX = -1;
|
||||||
sideDistX = 0;
|
|
||||||
}
|
|
||||||
else if (rayDirX < 0) {
|
|
||||||
stepX = -1; //true
|
|
||||||
sideDistX = fmul(posX - fix(mapX), deltaDistX);
|
sideDistX = fmul(posX - fix(mapX), deltaDistX);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -279,7 +275,7 @@ void draw_walls(image_t *tex_1, image_t *tex_2, image_t *tex_3, image_t *tex_4,
|
||||||
sideDistY = 0;
|
sideDistY = 0;
|
||||||
}
|
}
|
||||||
else if (rayDirY < 0) {
|
else if (rayDirY < 0) {
|
||||||
stepY = -1; //true
|
stepY = -1;
|
||||||
sideDistY = fmul(posY - fix(mapY), deltaDistY);
|
sideDistY = fmul(posY - fix(mapY), deltaDistY);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue