add teleport. reset in level.c

dev
Milang 3 years ago
parent eb74acf72c
commit 7abe14d5a3
  1. BIN
      SuperCbr.g1a
  2. BIN
      build-fx/SuperCbr.bin
  3. BIN
      build-fx/SuperCbr.elf
  4. 1204
      build-fx/map
  5. 4
      build-fx/src/level.c.d
  6. BIN
      build-fx/src/level.c.o
  7. BIN
      build-fx/src/tuyau.c.o
  8. 7
      src/level.c

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

@ -1,6 +1,6 @@
build-fx/src/level.c.o: src/level.c include/level.h include/world.h \
include/mario.h include/box.h include/score.h include/ennemi.h \
include/keyboard.h include/plateforme.h
include/keyboard.h include/plateforme.h include/tuyau.h
include/level.h:
@ -17,3 +17,5 @@ include/ennemi.h:
include/keyboard.h:
include/plateforme.h:
include/tuyau.h:

Binary file not shown.

Binary file not shown.

@ -5,13 +5,14 @@
#include "ennemi.h"
#include "keyboard.h"
#include <plateforme.h>
#include <tuyau.h>
#include <gint/display.h>
#include <gint/std/stdlib.h>
#include <gint/keyboard.h>
#include <gint/timer.h>
#include <gint/std/string.h>
#include <gint/std/stdio.h>
void malloc_error()
{
@ -103,13 +104,13 @@ static void init_plateformes(plateforme_t * table)
void set_level(int w, int l)
{
new_level();
set_teleporteurs(0,0);
w_current_x=0;
w_current_y=0;
ennemis_global_size=0;
plateforme_table_size=0;
if (w+1==1 && l+1==1)
if (w+1==1 && l+1==1) // 1-1
{
w_current_x=226;
w_current_y=13;

Loading…
Cancel
Save