Skip to content

Commit

Permalink
Nix the last of the posers
Browse files Browse the repository at this point in the history
There was some remaining usages of pos in various corners of the codebase. Fix that.
  • Loading branch information
AstraLuma committed May 18, 2021
1 parent 4833d32 commit a9969e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions examples/keyboard_and_mouse_controls/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def on_button_pressed(self, event, signal):
def _fire_bullet(self, scene, signal):
signal(PlaySound(self.fire_sound))
scene.add(
Bullet(pos=self.position),
Bullet(position=self.position),
tags=['bullet']
)

Expand Down Expand Up @@ -77,11 +77,11 @@ def __init__(self, *p, **kw):
super().__init__(*p, **kw)

# Set up sprites
self.add(Player(pos=Vector(0, 0)), tags=['player'])
self.add(Player(position=Vector(0, 0)), tags=['player'])

# 5 targets in x = -3.75 -> 3.75, with margin
for x in (-3, -1.5, 0, 1.5, 3):
self.add(Target(pos=Vector(x, 1.875)), tags=['target'])
self.add(Target(position=Vector(x, 1.875)), tags=['target'])


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion viztests/loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def on_asset_loaded(self, event, signal):

def get_progress_sprites(self):
for x in range(-2, 3):
yield ppb.Sprite(pos=ppb.Vector(x, 0))
yield ppb.Sprite(position=ppb.Vector(x, 0))


ppb.run(starting_scene=LoadingScene)

0 comments on commit a9969e8

Please sign in to comment.