Permalink
Browse files

Merge pull request #2 from thebluber/master

cleaned up
  • Loading branch information...
2 parents c01c6de + ec32fe8 commit 80e74247af4f0f214639e25ea8ffb882560d641f rogerbraun committed Apr 11, 2012
Showing with 0 additions and 10 deletions.
  1. +0 −10 Snake.as
View
@@ -99,26 +99,16 @@ package {
switch(_head.facing) {
case FlxObject.RIGHT:
- if (_head.facing !== FlxObject.LEFT) {
xSpeed = 16;
- } else {
-
- }
break;
case FlxObject.LEFT:
- if (_head.facing !== FlxObject.RIGHT) {
xSpeed = -16;
- };
break;
case FlxObject.UP:
- if (_head.facing !== FlxObject.DOWN) {
ySpeed = -16;
- };
break;
case FlxObject.DOWN:
- if (_head.facing !== FlxObject.UP) {
ySpeed = 16;
- };
break;
}

0 comments on commit 80e7424

Please sign in to comment.