snake_move #16

Merged
s481834 merged 14 commits from snake_move into BFS 2024-04-24 17:41:47 +02:00
2 changed files with 5 additions and 3 deletions
Showing only changes of commit 9ca821bab8 - Show all commits

View File

@ -55,5 +55,8 @@ class Pole:
def check_collision(self,mouse_x,mouse_y):
mouse_x=math.floor(mouse_x/dCon.CUBE_SIZE)
mouse_y=math.floor(mouse_y/dCon.CUBE_SIZE)
collided=self.get_slot_from_cord((mouse_x,mouse_y))
return collided.print_status()
if(mouse_x<20):
if(mouse_y<12):
collided=self.get_slot_from_cord((mouse_x,mouse_y))
return collided.print_status()
return ""

View File

@ -24,7 +24,6 @@ def getScreenHeihgt():
def getScreenWidth(show_console):
screen_width=getGameWidth()
if(show_console):
print("true")
screen_width=screen_width+350
return screen_width