Permalink
Browse files

Correct a few errors and format problems in code samples

  • Loading branch information...
1 parent 62baa3d commit 34d57eaa638e176854009c1b9a0ddb0d046f33c7 @deadprogram deadprogram committed Feb 24, 2012
View
4 public/help/shared/ruby4kids/code3_1.rb
@@ -1,3 +1,3 @@
if button_down? Gosu::Button:: KbLeft
- @player1.move_left
-
+ @player1.move_left
+end
View
1 public/help/shared/ruby4kids/code3_2.rb
@@ -1,3 +1,2 @@
@game_window = game_window
@icon = Gosu::Image.new(@game_window, "images/player1.png", true)
-
View
1 public/help/shared/ruby4kids/code3_3.rb
@@ -1,3 +1,2 @@
@x = 50
@y = 50
-
View
4 public/help/shared/ruby4kids/code3_4.rb
@@ -1,3 +1,3 @@
def draw
- @icon.draw(@x,@y,1)
-
+ @icon.draw(@x, @y, 1)
+end
View
2 public/help/shared/ruby4kids/code3_5.rb
@@ -1,3 +1,3 @@
def move_left
@x = @x - 10
-
+end
View
2 public/help/shared/ruby4kids/code3_6.rb
@@ -1,3 +1,3 @@
def move_left
@x = @x - 10
-
+end
View
2 public/help/shared/ruby4kids/code3_7.rb
@@ -1,5 +1,4 @@
require 'gosu'
-require 'player'
class MyGame < Gosu::Window
def initialize
@@ -10,6 +9,7 @@ def initialize
def update
if button_down? Gosu::Button::KbLeft
@player1.move_left
+ end
end
def draw

0 comments on commit 34d57ea

Please sign in to comment.