Fully working maze on ps2 thank you unigi
This commit is contained in:
parent
aa65ae8142
commit
8ffad9e6b9
@ -13,7 +13,7 @@ EE_BIN = $(PROGRAM_PS2).elf
|
|||||||
|
|
||||||
# NOTE: CANNOT USE JUST 'PS2' AS A DEFINE, IT BREAKS EVERYTHING!
|
# NOTE: CANNOT USE JUST 'PS2' AS A DEFINE, IT BREAKS EVERYTHING!
|
||||||
EE_OBJS = $(PROGRAM_PS2).o
|
EE_OBJS = $(PROGRAM_PS2).o
|
||||||
EE_CFLAGS += -DBUILDTOYS_PS2 -fdata-sections -ffunction-sections -I$(PS2SDK)/ports/include -Wformat=0
|
EE_CFLAGS += -fdata-sections -ffunction-sections -I$(PS2SDK)/ports/include -Wformat=0
|
||||||
EE_LDFLAGS += -L$(PS2SDK)/ports/lib -L$(GSKIT)/lib -lSDL2 -lgskit -ldmakit -lps2_drivers -lm -Wl,--gc-sections
|
EE_LDFLAGS += -L$(PS2SDK)/ports/lib -L$(GSKIT)/lib -lSDL2 -lgskit -ldmakit -lps2_drivers -lm -Wl,--gc-sections
|
||||||
|
|
||||||
ifeq ($(DUMMY_TIMEZONE), 1)
|
ifeq ($(DUMMY_TIMEZONE), 1)
|
||||||
|
@ -11,5 +11,6 @@ make -f Makefile_PS2 PROGRAM_PS2="$1"
|
|||||||
if [ "$#" -gt "1" ]; then
|
if [ "$#" -gt "1" ]; then
|
||||||
echo "Running on $2"
|
echo "Running on $2"
|
||||||
ps2client -h "$2" reset
|
ps2client -h "$2" reset
|
||||||
|
sleep 1
|
||||||
ps2client -h "$2" execee host:$1.elf
|
ps2client -h "$2" execee host:$1.elf
|
||||||
fi
|
fi
|
||||||
|
9
maze.c
9
maze.c
@ -1,5 +1,5 @@
|
|||||||
// NOTE: CANNOT USE JUST 'PS2' AS A DEFINE, IT BREAKS EVERYTHING
|
// NOTE: CANNOT USE JUST 'PS2' AS A DEFINE, IT BREAKS EVERYTHING
|
||||||
#ifdef BUILDTOYS_PS2
|
#ifdef _EE
|
||||||
#define DIRECTBUILD
|
#define DIRECTBUILD
|
||||||
#define H3D_VOLATILE_FLOATS
|
#define H3D_VOLATILE_FLOATS
|
||||||
#endif
|
#endif
|
||||||
@ -47,14 +47,13 @@
|
|||||||
#define NUMMICE 1
|
#define NUMMICE 1
|
||||||
// #define NOWALLS
|
// #define NOWALLS
|
||||||
|
|
||||||
#ifdef BUILDTOYS_PS2
|
#ifdef _EE
|
||||||
#define WIDTH 160
|
#define WIDTH 160
|
||||||
#define HEIGHT 120
|
#define HEIGHT 120
|
||||||
#define SCREENSCALE 4
|
#define SCREENSCALE 4
|
||||||
#define DITHERSTART 2.5
|
#define DITHERSTART 2.5
|
||||||
#define DITHEREND 3.5
|
#define DITHEREND 3.5
|
||||||
int fps = 24;
|
int fps = 20;
|
||||||
uint16_t sky = 0xF644;
|
|
||||||
#else
|
#else
|
||||||
#define WIDTH 480
|
#define WIDTH 480
|
||||||
#define HEIGHT 300
|
#define HEIGHT 300
|
||||||
@ -63,7 +62,6 @@ uint16_t sky = 0xF644;
|
|||||||
#define DITHERSTART 10000
|
#define DITHERSTART 10000
|
||||||
#define DITHEREND 10000
|
#define DITHEREND 10000
|
||||||
int fps = 30;
|
int fps = 30;
|
||||||
uint16_t sky = 0xF000;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define ASPECT ((float)WIDTH / HEIGHT)
|
#define ASPECT ((float)WIDTH / HEIGHT)
|
||||||
@ -128,6 +126,7 @@ const char POLYNAMES[NUMPOLYS][20] = {"tetrahedron"};
|
|||||||
float fov = 90.0;
|
float fov = 90.0;
|
||||||
float minlight = 0.15;
|
float minlight = 0.15;
|
||||||
float speed = 1.0;
|
float speed = 1.0;
|
||||||
|
uint16_t sky = 0xF644;
|
||||||
|
|
||||||
struct vec2i dirtovec(uint8_t dir) {
|
struct vec2i dirtovec(uint8_t dir) {
|
||||||
struct vec2i result;
|
struct vec2i result;
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit f5adfe0495095576721ab639fe4044147488c473
|
Subproject commit 7761a397a86b0e94bf5d7280b3c2c65e3713fae8
|
Loading…
Reference in New Issue
Block a user