Skip to content
Snippets Groups Projects
Commit d3f2fa0f authored by xerneas02's avatar xerneas02
Browse files

bug can't win twice fix

parent afe81e8d
No related branches found
No related tags found
No related merge requests found
Showing
with 3 additions and 4 deletions
-1.942890293094024e-16
0.09999999999999981
0
6
True
\ No newline at end of file
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -37,6 +37,7 @@ from content_manager import *
from interface.all.image import uiWallpaper as uiWallpaper
from interface.all.image import uiWallPaperBorder
from __init__ import debugMode
from level.the_world import world
# music
audio = music()
......@@ -59,9 +60,6 @@ def load(defaultScene):
the_wallpaper.load_background()
wallpaperNbYRepetition = 8
#the_wallpaper.tiles.random()
#wallpaper = the_wallpaper.wallpaper(uiWallpaper(the_wallpaper.tiles[3]).with_hitbox(hvec2(0,1/wallpaperNbYRepetition,1/wallpaperNbYRepetition,0)))
#wallpaper = uiWallPaperBorder(get_image("wallpaper/bgBig"), "bg", vec2(128) ,color = (69, 39, 15))
wallpaper = the_wallpaper.wallpaper(uiWallpaper(the_wallpaper.tiles[4]).with_hitbox(hvec2(0,1/wallpaperNbYRepetition,1/wallpaperNbYRepetition,0)))
......@@ -138,6 +136,7 @@ def gameLoop(defaultScene):
draw()
if(type(scene.current).__name__ != "EcranTitre"):
if(input.isKeyPullUp(pygame.K_ESCAPE)):
world.isAnotherWorldEmpty = False
scene.change(scenes.ecranTitre.EcranTitre())
Performance_FPS = tickClock.get_fps()
tickClock.tick(UPS)
......
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment