Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge branch 'master' into gosu_lessons

  • Loading branch information...
commit 034a2db92ae8cea8eee2dd57c82289d9af78301c 2 parents ba9f702 + 79a3ae2
Ron Evans deadprogram authored
2  public/help/shared/ruby4kids/code7_6.rb
... ... @@ -1,6 +1,6 @@
1 1 def initialize(game_window)
2 2 @game_window = game_window
3   - @icon = Gosu::Image.new(@game_window, "images/ball.png", true)
  3 + @icon = Gosu::Image.new(@game_window, "gosu/asteroid.png", true)
4 4 @x = 50
5 5 @y = 150
6 6 end
2  public/help/shared/ruby4kids/code7_7.rb
@@ -96,7 +96,7 @@ def hit_by?(ball)
96 96 class Ball
97 97 def initialize(game_window)
98 98 @game_window = game_window
99   - @icon = Gosu::Image.new(@game_window, "Images/ball.png", true)
  99 + @icon = Gosu::Image.new(@game_window, "gosu/asteroid.png", true)
100 100 @x = rand(@game_window.width)
101 101 @y = 0
102 102 end
4 public/help/shared/ruby4kids/code8_7.rb
... ... @@ -1,8 +1,9 @@
1 1 class Ball
2 2 def initialize(game_window)
3 3 @game_window = game_window
4   - @icon = Gosu::Image.new(@game_window, “images/ball.png”)
  4 + @icon = Gosu::Image.new(@game_window, "gosu/asteroid.png")
5 5 reset!
  6 + end
6 7 end
7 8
8 9 def update
@@ -12,4 +13,3 @@ def update
12 13 @y = @y + 10
13 14 end
14 15 end
15   -
2  public/help/shared/ruby4kids/code9_2.rb
... ... @@ -1,6 +1,6 @@
1 1 def initialize(game_window)
2 2 @game_window = game_window
3   - @icon = Gosu::Image.new(@game_window, "images/player1.png")
  3 + @icon = Gosu::Image.new(@game_window, "gosu/player1.png")
4 4 @x = 50
5 5 @y = 330
6 6 end

0 comments on commit 034a2db

Please sign in to comment.
Something went wrong with that request. Please try again.