hybridgroup/kidsruby — Issue #50: Error in Help for Make Games with Gosu, lesson 1 
Author: TheGrogor
Created: 2012-01-18 00:23:34+00:00
State: open

Help file says:

> Now, we're almost ready to try this again. I need to go to the MyGame class first, and I need to instantiate this player.
>
> I do this by typing in the initialize method:
>
> @player1 = Player.new(game_window)
> This tells the player which window to draw itself on.

this results in an error:

> /var/folders/yv/yvh4VEXl2RWUgE+3+X2F+U+++TM/-Tmp-/kidcode.rb\:9\:in \`initialize':
> undefined local variable or method `game_window' for # (NameError)

Possible solution: replace **@player1 = Player.new(game_window)** with **@player1 = Player.new(self)**