-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First version of title screen + general improvements
Added a functional title screen, improved snake controls hopefully, added a black border on top, improved egg generation and egg generation speed greatly and added a black bar on the top to avoid confusion until a hud is made.
- Loading branch information
1 parent
d22fb95
commit 56d489a
Showing
44 changed files
with
530 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
*.db | ||
Event Assembler/ | ||
*.sav | ||
ToDo.txt |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
.thumb | ||
|
||
push {lr} | ||
|
||
@make a list of all tiles that are available | ||
mov r0,#0 | ||
mov r1,#2 | ||
mov r2,#0 @ammount of tiles in the list*2 | ||
b loopnoadd | ||
loop: | ||
add r0,#1 | ||
loopnoadd: | ||
cmp r0,#0x1E | ||
bne dontincreasey | ||
mov r0,#0 | ||
add r1,#1 | ||
dontincreasey: | ||
cmp r1,#0x14 | ||
beq endloop | ||
@check if the coords conflict with the body, if they do, do not add them to the list | ||
push {r0-r2} | ||
ldr r2,=bonkSnake | ||
mov lr,r2 | ||
.short 0xF800 | ||
mov r3,r0 | ||
pop {r0-r2} | ||
cmp r3,#1 | ||
beq loop | ||
ldr r3,=#0x02005000 | ||
strb r0,[r3,r2] | ||
add r2,#1 | ||
strb r1,[r3,r2] | ||
add r2,#1 | ||
b loop | ||
endloop: | ||
|
||
ldr r0,=#0x02000000 | ||
strh r2,[r0,#0x16] @save length | ||
|
||
End: | ||
pop {r0} | ||
bx r0 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
.thumb | ||
push {lr} | ||
|
||
@update egg map | ||
ldr r2,=#0x02000000 | ||
ldrh r0,[r2,#0x1A] @previous tail position | ||
ldrh r1,[r2] @size | ||
lsl r1,#1 | ||
sub r1,#2 | ||
add r1,#0x20 | ||
ldrh r1,[r2,r1] @current head position | ||
cmp r0,r1 | ||
beq End | ||
|
||
@find head position in egg buffer | ||
ldr r3,=#0x02005000 | ||
headloop: | ||
ldrh r2,[r3] | ||
cmp r2,r1 | ||
beq endheadloop | ||
add r3,#2 | ||
b headloop | ||
endheadloop: | ||
|
||
cmp r0,#0 | ||
bne endremoveloop | ||
removeloop: | ||
ldrh r2,[r3,#2] | ||
strh r2,[r3] | ||
add r3,#2 | ||
ldrh r2,[r3] | ||
cmp r2,#0 | ||
beq endremoveloop | ||
b removeloop | ||
endremoveloop: | ||
|
||
@add the tile the tail was previously in | ||
strh r0,[r3] | ||
|
||
End: | ||
pop {r0} | ||
bx r0 |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.