|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
"""Snake!"""
|
|
|
|
|
|
|
|
|
|
___title___ = "Snake"
|
|
|
|
|
___title___ = "Snork"
|
|
|
|
|
___license___ = "MIT"
|
|
|
|
|
___categories___ = ["Games"]
|
|
|
|
|
___dependencies___ = ["dialogs", "app", "ugfx_helper", "sleep", "buttons"]
|
|
|
|
@ -12,10 +12,10 @@ ugfx_helper.init()
|
|
|
|
|
|
|
|
|
|
def one_round():
|
|
|
|
|
grid_size = 8;
|
|
|
|
|
body_colour = ugfx.RED
|
|
|
|
|
body_colour = ugfx.BLUE
|
|
|
|
|
back_colour = 0;
|
|
|
|
|
food_colour = ugfx.YELLOW
|
|
|
|
|
wall_colour = ugfx.BLUE
|
|
|
|
|
wall_colour = ugfx.RED
|
|
|
|
|
score = 0;
|
|
|
|
|
edge_x = math.floor(ugfx.width()/grid_size)-2;
|
|
|
|
|
edge_y = math.floor(ugfx.height()/grid_size)-2;
|
|
|
|
|