made physics demo more satisfying
parent
88b3c4724c
commit
d8ed9dee24
|
@ -36,9 +36,9 @@ elif what_to_run == 'physics':
|
||||||
|
|
||||||
pygame.init()
|
pygame.init()
|
||||||
screen = pygame.display.set_mode((600, 500))
|
screen = pygame.display.set_mode((600, 500))
|
||||||
pygame.display.set_caption("PE GAME")
|
pygame.display.set_caption("PM GAME")
|
||||||
clock = pygame.time.Clock()
|
clock = pygame.time.Clock()
|
||||||
frame_rate = 120
|
frame_rate = 60
|
||||||
|
|
||||||
spritesheet_manager = SpritesheetManager("data/sprites", "data/sprites/sprites.json")
|
spritesheet_manager = SpritesheetManager("data/sprites", "data/sprites/sprites.json")
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ elif what_to_run == 'physics':
|
||||||
|
|
||||||
test_3_sprite = DynamicSprite(spritesheet_manager.get_sheet("test_1"))
|
test_3_sprite = DynamicSprite(spritesheet_manager.get_sheet("test_1"))
|
||||||
test_3_sprite.position_scale = PositionScale((130, 100), (1, 1))
|
test_3_sprite.position_scale = PositionScale((130, 100), (1, 1))
|
||||||
test_3_sprite.motion = (-9, -12)
|
test_3_sprite.motion = (-9, -10)
|
||||||
physics_handler.add_sprite(test_3_sprite)
|
physics_handler.add_sprite(test_3_sprite)
|
||||||
|
|
||||||
test_2_sprite = StaticSprite(spritesheet_manager.get_sheet("test_1"))
|
test_2_sprite = StaticSprite(spritesheet_manager.get_sheet("test_1"))
|
||||||
|
|
Loading…
Reference in New Issue