mirror of
https://github.com/Project-Redacted/Gayme.git
synced 2025-05-24 11:54:53 +00:00
Temporary level change
This commit is contained in:
parent
a32720cedb
commit
41a0ec665b
26 changed files with 81 additions and 28 deletions
10
player.py
10
player.py
|
@ -36,10 +36,10 @@ class Player:
|
|||
self.check_collision(dx, dy)
|
||||
|
||||
# player rotation with arrow keys
|
||||
#if keys[pg.K_LEFT]:
|
||||
# self.angle -= PLAYER_ROT_SPEED * self.game.delta_time
|
||||
#if keys[pg.K_RIGHT]:
|
||||
# self.angle += PLAYER_ROT_SPEED * self.game.delta_time
|
||||
if keys[pg.K_LEFT]:
|
||||
self.angle -= PLAYER_ROT_SPEED * self.game.delta_time
|
||||
if keys[pg.K_RIGHT]:
|
||||
self.angle += PLAYER_ROT_SPEED * self.game.delta_time
|
||||
self.angle %= math.tau # tau = 2 * pi
|
||||
|
||||
def check_wall(self, x, y):
|
||||
|
@ -68,7 +68,7 @@ class Player:
|
|||
|
||||
def update(self):
|
||||
self.movement()
|
||||
self.mouse_control()
|
||||
#self.mouse_control()
|
||||
|
||||
@property
|
||||
def pos(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue