[BUG]only using last defined colors
[BUG]print(str,x,y) never reached 0
This commit is contained in:
12
game.lua
12
game.lua
@@ -5,6 +5,7 @@ function init()
|
||||
end
|
||||
|
||||
function update()
|
||||
paper(COLOR_BLACK)
|
||||
cls()
|
||||
x = x + dx
|
||||
y = y + dy
|
||||
@@ -14,6 +15,13 @@ function update()
|
||||
if y == 29 or y == 0 then
|
||||
dy = -dy
|
||||
end
|
||||
locate(x, y)
|
||||
print("\224")
|
||||
locate(2, 2)
|
||||
paper(COLOR_GREEN)
|
||||
ink(COLOR_BLACK)
|
||||
print("HOLA!")
|
||||
|
||||
--locate(x, y)
|
||||
ink(COLOR_RED)
|
||||
paper(COLOR_YELLOW)
|
||||
print("\224", x, y)
|
||||
end
|
||||
Reference in New Issue
Block a user