Skip to content
Snippets Groups Projects
Commit 9e0e1415 authored by Leon Grothus's avatar Leon Grothus
Browse files

last changes

parent 8cb9447e
No related branches found
No related tags found
No related merge requests found
data/data.png

3.68 KiB | W: | H:

data/data.png

6.79 KiB | W: | H:

data/data.png
data/data.png
data/data.png
data/data.png
  • 2-up
  • Swipe
  • Onion skin
{"asf": 2.0, "master_volume": 50, "music_volume": 21, "sfx_volume": 58, "user_name": "Player"}
\ No newline at end of file
{"asf": 1.0, "master_volume": 50, "music_volume": 21, "sfx_volume": 58, "user_name": "Player"}
\ No newline at end of file
......@@ -30,13 +30,14 @@ class BackgroundManager:
screen (pygame.Surface): The screen to draw the image on.
"""
# Load the images and scale them to the screen size
self.load_images()
self.image_dir = image_dir
self.delay = delay
self.screen = screen
self.delay = delay
self.current_image = 0
self.last_update = 0
self.load_images()
def update(self, delta_time) -> None:
"""
......
......@@ -114,7 +114,7 @@ class MainPinball(Scene):
scale_strength = .25
self.add_gameobject(Plunger(self, V2(width - self.ball_radius*3, height),
V2(width, height), impuls_range=(int(1400*asf), int(1600*asf))))
V2(width, height), impuls_range=(int(1500*asf**(2/3)), int(1700*asf**(2/3)))))
self.left_flipper = Flipper(self, V2(300*asf - 130 * asf, height - 125*asf), 30)
self.right_flipper = Flipper(self, V2(300*asf + 130 * asf, height - 125*asf), 150)
......
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