Last active
August 29, 2015 14:07
-
-
Save aoitaku/9a9096ca861f178cef15 to your computer and use it in GitHub Desktop.
dxruby_platformer_1st
This file contains hidden or 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
require 'dxruby' | |
image = Image.load('player.png') | |
x = 100 | |
y = 100 | |
Window.loop do | |
x += Input.x | |
y += Input.y | |
Window.draw(x, y, player) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment