add directional characters display
This commit is contained in:
36
src/main.asm
36
src/main.asm
@@ -17,10 +17,34 @@ include sections/init_timers
|
||||
|
||||
game_loop:
|
||||
include sections/handle_event
|
||||
include sections/characters_movement
|
||||
|
||||
/*
|
||||
For all timers:
|
||||
r1, r2: tick duration high, low
|
||||
r7, r8: now high, low
|
||||
*/
|
||||
add r9, zr, ptr.tick_duration_high
|
||||
load_32 r1, [r9]
|
||||
add r9, zr, ptr.tick_duration_low
|
||||
load_32 r2, [r9]
|
||||
time_0 r8
|
||||
time_1 r7
|
||||
|
||||
push r1
|
||||
push r2
|
||||
push r7
|
||||
push r8
|
||||
include sections/timer_robot
|
||||
pop r8
|
||||
pop r7
|
||||
pop r2
|
||||
pop r1
|
||||
|
||||
include sections/timer_ghost
|
||||
|
||||
jmp game_loop
|
||||
|
||||
include lib/u64
|
||||
include lib/game
|
||||
include lib/drawing
|
||||
include lib/sprite_rotation
|
||||
@@ -30,8 +54,14 @@ include dist/placeholder
|
||||
include dist/wall_end
|
||||
include dist/wall_straight
|
||||
include dist/wall_corner
|
||||
include dist/robot
|
||||
include dist/ghost
|
||||
include dist/robot_up
|
||||
include dist/robot_right
|
||||
include dist/robot_down
|
||||
include dist/robot_left
|
||||
include dist/ghost_up
|
||||
include dist/ghost_right
|
||||
include dist/ghost_down
|
||||
include dist/ghost_left
|
||||
include dist/coin
|
||||
|
||||
include dist/map
|
||||
|
||||
Reference in New Issue
Block a user