Commit 1ab9cccb by BellCodeEditor

save project

parent 9b974229
Showing with 10 additions and 0 deletions
...@@ -71,6 +71,16 @@ while True: ...@@ -71,6 +71,16 @@ while True:
center[0] += 1 center[0] += 1
if nb(center) == False: if nb(center) == False:
center[0] -= 1 center[0] -= 1
elif event.key == locals.K_UP:
old_index = index
index += 1
if index >= len(shape):
index = 0
current_shape = shape[index]
if nb(center) == False:
index = old_index
current_shape = shape[index]
if states == False: if states == False:
states = True states = True
center = [2,8] center = [2,8]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment