Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

cleaned up #2

Merged
merged 2 commits into from about 2 years ago

2 participants

thebluber Roger Braun
thebluber

No description provided.

Roger Braun rogerbraun merged commit 80e7424 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 0 additions and 10 deletions. Show diff stats Hide diff stats

  1. +0 10 Snake.as
10 Snake.as
@@ -99,26 +99,16 @@ package {
99 99
100 100 switch(_head.facing) {
101 101 case FlxObject.RIGHT:
102   - if (_head.facing !== FlxObject.LEFT) {
103 102 xSpeed = 16;
104   - } else {
105   -
106   - }
107 103 break;
108 104 case FlxObject.LEFT:
109   - if (_head.facing !== FlxObject.RIGHT) {
110 105 xSpeed = -16;
111   - };
112 106 break;
113 107 case FlxObject.UP:
114   - if (_head.facing !== FlxObject.DOWN) {
115 108 ySpeed = -16;
116   - };
117 109 break;
118 110 case FlxObject.DOWN:
119   - if (_head.facing !== FlxObject.UP) {
120 111 ySpeed = 16;
121   - };
122 112 break;
123 113 }
124 114

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.