Created
September 17, 2013 05:03
-
-
Save roberto/6590242 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Plane | |
def initialize(game) | |
@x = 100 | |
@y = 100 | |
@sprite = Gosu::Image.load_tiles(game, "images/planes.png", 66, 67, true)[0..2] | |
end | |
def draw | |
@sprite[Gosu::milliseconds / 100 % @sprite.size].draw_rot(@x, @y, 1, 0) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment