Permalink
Browse files

Corrections and provide game art for Gosu - Lesson 1

  • Loading branch information...
1 parent 6f07a44 commit 2b58b95e286a88eef37835bc2c1d540ed82e5775 @deadprogram deadprogram committed Jan 22, 2012
Showing with 8 additions and 4 deletions.
  1. +5 −1 LICENSE
  2. BIN gosu/player1.png
  3. +3 −3 public/help/ruby4kids/lesson_1.html
View
6 LICENSE
@@ -42,4 +42,8 @@ Redistributions in binary form must reproduce the above copyright notice, this l
THIS SOFTWARE IS PROVIDED BY DAVE BALMER, JR. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DAVE BALMER, JR. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-The views and conclusions contained in the software and documentation are those of the authors and should not be interpreted as representing official policies, either expressed or implied, of Dave Balmer, Jr.
+The views and conclusions contained in the software and documentation are those of the authors and should not be interpreted as representing official policies, either expressed or implied, of Dave Balmer, Jr.
+---
+Art for gosu game lessons by Alex Pineda
+Creative Commons License Attribution 3.0 Unported (CC BY 3.0)
+http://opengameart.org/content/basic-airship
View
BIN gosu/player1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
6 public/help/ruby4kids/lesson_1.html
@@ -105,7 +105,7 @@
<p>Next, I go to my player class and I add this icon to it. I do this, by typing the following:</p>
<pre><code>def initialize(game_window)
@game_window = game_window
- @icon = Gosu::Image.new(@game_window, "images/player1.png", true)
+ @icon = Gosu::Image.new(@game_window, "gosu/player1.png", true)
end</code></pre>
<p>Then we add a draw method to the player. We do this, by typing:</p>
@@ -116,7 +116,7 @@
<p>Now, we're almost ready to try this again. I need to go to the <code>MyGame</code> class first, and I need to instantiate this player.</p>
<p>I do this by typing in the initialize method:</p>
-<pre><code>@player1 = Player.new(game_window)</code></pre>
+<pre><code>@player1 = Player.new(self)</code></pre>
<p>This tells the player which window to draw itself on.</p>
<p>Then we add: </p>
@@ -125,7 +125,7 @@
<p>This will draw the player when the game is running.</p>
- <p>Let's try it! CLick on the "Run" button. Did it work?</p>
+ <p>Let's try it! Click on the "Run" button. Did it work?</p>
</section>
</article>

0 comments on commit 2b58b95

Please sign in to comment.