rectangles work
This commit is contained in:
27
source/games/pong.asm
Normal file
27
source/games/pong.asm
Normal file
@@ -0,0 +1,27 @@
|
||||
game_pong:
|
||||
pusha
|
||||
|
||||
call os_set_graphics_mode
|
||||
|
||||
call os_draw_graphical_rectangle
|
||||
|
||||
call os_set_text_mode
|
||||
jmp .finish
|
||||
|
||||
.detect_input:
|
||||
call os_read_input
|
||||
cmp al, 08h
|
||||
je .finish
|
||||
jmp .detect_input
|
||||
|
||||
.finish:
|
||||
call os_set_text_mode
|
||||
popa
|
||||
ret
|
||||
|
||||
section .data
|
||||
x_start dw 5
|
||||
y_start dw 5
|
||||
x_end dw 30
|
||||
y_end dw 46
|
||||
colour db 1100b
|
Reference in New Issue
Block a user