Skip to content

Commit 6433e6d

Browse files
committed
- beauty
1 parent 4c6d148 commit 6433e6d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cocos-test.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
# Jason Wright ([email protected])
99

10-
1110
# Imports
1211
import pyglet
1312
from pyglet.window import key
@@ -25,8 +24,7 @@ class Me(actions.Move):
2524
def step(self, dt):
2625
super(Me, self).step(dt) # Run step function on the parent class.
2726
# Determine velocity based on keyboard inputs.
28-
velocity_x = 100 * (keyboard[key.RIGHT] -
29-
keyboard[key.LEFT])
27+
velocity_x = 100 * (keyboard[key.RIGHT] - keyboard[key.LEFT])
3028
velocity_y = 100 * (keyboard[key.UP] - keyboard[key.DOWN])
3129

3230
# Set the object's velocity.
@@ -38,7 +36,7 @@ def main():
3836
# Initialize the window
3937
director.init(width=500, height=300, autoscale=True, resizable=True)
4038

41-
# Create a layer and add a sprite to it.
39+
# Create a layer and add a sprite to it.
4240
player_layer = layer.Layer()
4341
me = sprite.Sprite('sprites/molecule.png')
4442
player_layer.add(me)

0 commit comments

Comments
 (0)