Skip to content

Commit a0fbeb0

Browse files
committed
Levels
1 parent 128672f commit a0fbeb0

File tree

8 files changed

+102
-42
lines changed

8 files changed

+102
-42
lines changed

Makefile

+9-7
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,15 @@ $(BUILD):
114114
clean:
115115
@echo clean ...
116116
@rm -fr $(BUILD) $(OUTPUT).elf $(OUTPUT).bin
117-
118-
#This should stop new builds from using old code (-SonyUSA)
119-
@rm -fr build
120-
#And just because I'm picky... (-SonyUSA)
121-
@mkdir bin
122-
@mv boot.elf /bin/
123-
@mv build_dbg.elf /bin/
124117

118+
#This should stop new builds from using old code (-SonyUSA)
119+
@rm -fr build
120+
@rm -fr bin
121+
#And just because I'm picky... (-SonyUSA)
122+
mkdir bin
123+
mv boot.elf /bin/
124+
mv build_dbg.elf /bin/
125+
125126
#---------------------------------------------------------------------------------
126127
else
127128

@@ -153,3 +154,4 @@ $(OUTPUT).elf: $(OFILES)
153154
#---------------------------------------------------------------------------------
154155
endif
155156
#---------------------------------------------------------------------------------
157+

boot.elf

18.9 KB
Binary file not shown.

build/crt0.o

872 Bytes
Binary file not shown.

build/draw.o

6.48 KB
Binary file not shown.

build/init.o

1.48 KB
Binary file not shown.

build/loader.o

20.3 KB
Binary file not shown.

build_dbg.elf

20.3 KB
Binary file not shown.

src/loader.c

+93-35
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ void drawtitle();
66
void drawmap();
77
void dog();
88
void drawstuff();
9-
void level1();
9+
void changelevel();
1010
bool canmove(struct cGlobals *caveGlobals, int nMapX, int nMapY );
1111
bool isclosedoor(struct cGlobals *caveGlobals, int nMapX, int nMapY );
1212
bool isopendoor(struct cGlobals *caveGlobals, int nMapX, int nMapY );
@@ -109,7 +109,7 @@ void _main()
109109
caveGlobals.curhealth = 10;
110110

111111
// Start at level 1 (obviously!)
112-
level1(&caveGlobals);
112+
changelevel(&caveGlobals);
113113

114114
// Draw Buffers and Initial Screen
115115
__os_snprintf(caveGlobals.mystat, 64, " ");
@@ -134,7 +134,8 @@ void _main()
134134
_Exit();
135135
}
136136
//Grab Stuff (A)
137-
if (vpad_data.btn_trigger & BUTTON_A) {
137+
if (vpad_data.btn_release & BUTTON_A) {
138+
//Checks for Food
138139
if (caveGlobals.nMapArray[caveGlobals.col][caveGlobals.row] == 8) {
139140
doclearstuff();
140141
__os_snprintf(caveGlobals.mystat, 64, "Got it!");
@@ -144,6 +145,7 @@ void _main()
144145
drawstuff(&caveGlobals);
145146
flipBuffers();
146147
}
148+
//Check for Potions
147149
if (caveGlobals.nMapArray[caveGlobals.col][caveGlobals.row] == 11) {
148150
doclearstuff();
149151
__os_snprintf(caveGlobals.mystat, 64, "*Gulp!*");
@@ -156,6 +158,14 @@ void _main()
156158
dog(&caveGlobals);
157159
flipBuffers();
158160
}
161+
//Checks for Stairs
162+
if (caveGlobals.nMapArray[caveGlobals.col][caveGlobals.row] == 9) {
163+
caveGlobals.level += 1;
164+
doclearstuff();
165+
changelevel(&caveGlobals);
166+
drawstuff(&caveGlobals);
167+
flipBuffers();
168+
}
159169
}
160170
//Search for Hidden Traps and Doors
161171
if (vpad_data.btn_trigger & BUTTON_Y) {
@@ -464,6 +474,14 @@ void _main()
464474
SYSLaunchMenu();
465475
_Exit();
466476
}
477+
// Cheat and go to next level with Minus key
478+
if(vpad_data.btn_release & BUTTON_MINUS) {
479+
caveGlobals.level += 1;
480+
doclearstuff();
481+
changelevel(&caveGlobals);
482+
drawstuff(&caveGlobals);
483+
flipBuffers();
484+
}
467485
}
468486

469487
}
@@ -539,11 +557,12 @@ void drawtitle(struct cGlobals *caveGlobals) {
539557
__os_snprintf(caveGlobals->player1, 8, "@");
540558
__os_snprintf(caveGlobals->titlebar1, 128, "Food: HP: / == C@VE == Feed Dog With + ");
541559
__os_snprintf(caveGlobals->titlebar3, 128, " %d %d %d ", caveGlobals->food, caveGlobals->curhealth, caveGlobals->maxhealth );
542-
__os_snprintf(caveGlobals->titlebar2, 128, "X %d / Y %d", caveGlobals->row, caveGlobals->col);
560+
// X+Y for debug
561+
// __os_snprintf(caveGlobals->titlebar2, 128, "X %d / Y %d", caveGlobals->row, caveGlobals->col);
543562
__os_snprintf(caveGlobals->mystat, 64, " ");
544563
drawString(-4, -1, caveGlobals->titlebar1);
545564
drawString(-4, -1, caveGlobals->titlebar3);
546-
drawString(54, 17, caveGlobals->titlebar2);
565+
drawString(44, 17, caveGlobals->titlebar2);
547566
drawString(caveGlobals->row, caveGlobals->col, caveGlobals->player1);
548567
drawString(25, 17, caveGlobals->mystat);
549568
}
@@ -666,37 +685,76 @@ void drawmap(struct cGlobals *caveGlobals) {
666685
}
667686
}
668687

669-
void level1(struct cGlobals *caveGlobals) {
670-
// Have an array! Height then width!
688+
void changelevel(struct cGlobals *caveGlobals) {
689+
// Have an array! Height then width! (Need to clean this up later...)
671690
// By the way, Gamepad is -4, -1 to 65, 17! and TV is -4, -1 to 101, 27!
672-
unsigned char lMapArray[17][62] = {
673-
{ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
674-
{ 1, 2, 2, 2, 2, 2, 1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
675-
{ 1, 2, 2, 2, 2, 2, 1, 0, 0, 0, 1, 2, 2, 2, 4, 2, 7, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 7, 8, 2, 1, 0, 0, 0, 1, 2, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1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1, 0, 1, 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 2, 1, 2, 2, 2, 1, 1, 1, 2, 2, 2, 2, 2, 1 },
687-
{ 0, 0, 1, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 6, 2, 2, 6, 2, 2, 2, 1, 0, 1, 2, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 7, 2, 2, 2, 2, 1, 2, 2, 2, 1, 0, 1, 1, 1, 1, 1, 1, 1 },
688-
{ 0, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 6, 2, 2, 2, 2, 6, 2, 2, 2, 1, 0, 1, 2, 2, 2, 4, 2, 2, 2, 2, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0 },
689-
{ 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 }
690-
};
691-
// Fill our global array
692-
int i;
693-
int j;
694-
for( i = 0; i < 17; i++) {
695-
for( j = 0; j < 62; j++) {
696-
caveGlobals->nMapArray[i][j]=lMapArray[i][j];
691+
if (caveGlobals->level == 1) {
692+
unsigned char lMapArray[17][62] = {
693+
{ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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0, 0, 0, 0, 0, 0 }
710+
};
711+
// Put the player where she belongs!
712+
caveGlobals->row = 3;
713+
caveGlobals->col = 3;
714+
// Fill our global array
715+
int i;
716+
int j;
717+
for( i = 0; i < 17; i++) {
718+
for( j = 0; j < 62; j++) {
719+
caveGlobals->nMapArray[i][j]=lMapArray[i][j];
720+
}
697721
}
722+
// Who made it???
723+
__os_snprintf(caveGlobals->titlebar2, 128, "Level by: SonyUSA");
698724
}
699-
// Put the player where she belongs!
700-
caveGlobals->row = 3;
701-
caveGlobals->col = 3;
725+
if (caveGlobals->level == 2) {
726+
unsigned char lMapArray[17][62] = {
727+
{1,1,1,1,1,1,1,0,0,0,1,1,1,0,0,0,1,1,1,0,0,0,1,1,1,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,1,1,1,1,1,0,0,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1},
728+
{1,6,2,8,2,6,1,0,0,0,1,7,1,0,0,0,1,8,1,0,0,0,1,7,1,0,0,1,2,8,2,2,2,2,2,1,0,0,0,0,1,2,2,2,1,0,0,1,6,1,0,0,0,0,1,2,2,2,2,7,2,1},
729+
{1,2,2,2,2,2,1,0,0,0,1,2,1,0,0,0,1,2,1,0,0,0,1,2,1,0,0,1,1,1,1,1,1,2,1,1,0,0,0,0,1,2,7,2,1,0,0,1,8,1,0,0,1,1,1,2,1,1,1,1,2,1},
730+
{1,2,1,1,1,2,1,0,0,0,1,2,1,1,1,1,1,2,1,1,1,1,1,2,1,0,0,0,0,0,0,0,1,2,1,0,0,0,0,0,1,2,2,2,1,0,0,1,2,1,0,0,1,7,8,2,1,0,0,1,2,1},
731+
{1,2,1,1,1,2,1,0,0,0,1,2,2,2,2,2,2,2,2,2,2,2,2,2,1,0,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,2,2,2,1,1,1,1,2,1,0,0,1,1,1,2,1,0,0,1,2,1},
732+
{1,2,1,1,1,2,1,0,0,0,1,2,1,1,1,2,2,2,2,2,2,2,2,2,1,0,1,2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,2,2,2,2,2,2,2,2,2,1,0,0,1,2,2,2,2,2,2,2,1,1,1,1,1,1,0,0,0,0,1,2,1,0,0,1,2,1},
741+
{1,1,1,1,1,1,1,1,2,2,8,2,2,1,0,0,0,0,1,8,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,2,2,2,2,2,2,2,1,0,0,0,0,0,1,1,1,1,1,2,1,1,1,1,2,1},
742+
{1,2,2,2,2,2,2,2,2,2,6,2,2,1,0,0,0,0,1,7,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,2,8,2,2,2,7,1,0,0,0,0,0,1,9,2,2,2,2,2,2,2,2,2,1},
743+
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1}
744+
};
745+
// Put the player where she belongs!
746+
caveGlobals->row = 1;
747+
caveGlobals->col = 15;
748+
// Fill our global array
749+
int i;
750+
int j;
751+
for( i = 0; i < 17; i++) {
752+
for( j = 0; j < 62; j++) {
753+
caveGlobals->nMapArray[i][j]=lMapArray[i][j];
754+
}
755+
}
756+
// Who made it???
757+
__os_snprintf(caveGlobals->titlebar2, 128, "Level by: ScarletDreamz");
758+
}
759+
702760
}

0 commit comments

Comments
 (0)