Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Game Dev in Ruby
Search
Danielle Smith
December 03, 2014
0
36
Game Dev in Ruby
Short talk on Game dev in Ruby using the Gosu gem
Danielle Smith
December 03, 2014
Tweet
Share
More Decks by Danielle Smith
See All by Danielle Smith
Ruby Ruby
daninithepanini
0
140
A Brief History of Ruby
daninithepanini
0
39
Static Type Inferencing ... in Ruby?
daninithepanini
0
21
Off the Rails
daninithepanini
0
26
Action Game
daninithepanini
0
35
RubyGL
daninithepanini
0
26
YeSQL
daninithepanini
0
24
Euler vs Hamilton
daninithepanini
0
41
Featured
See All Featured
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
61k
Side Projects
sachag
455
43k
Intergalactic Javascript Robots from Outer Space
tanoku
272
27k
Bash Introduction
62gerente
615
210k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
252
21k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.4k
We Have a Design System, Now What?
morganepeng
53
7.8k
Documentation Writing (for coders)
carmenintech
74
5k
Balancing Empowerment & Direction
lara
3
630
Art, The Web, and Tiny UX
lynnandtonic
303
21k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
358
30k
Transcript
Game Dev in Ruby by Daniel Smith
It’s awesome
Game dev is fun!
Ruby is fun!
None
The Gosu Gem
Simple 2D engine
Sprite-based
Great Community
Challenges
Interpreted Language
Garbage Collector is EVIL
Not quite mobile yet
require ‘gosu’
class MyAwesomeGame < Gosu::Window def initialize super WIDTH, HEIGHT, FULLSCREEN
end end
Game Loop
... def update # game logic end def draw #
put stuff on the screen end
Input
... def button_down id # ... end def button_up id
exit if id == Gosu::KbEscape end
Images
... def initialize ... @ship_image = Gosu::Image.new self, “ship.png” end
def draw @ship_image.draw x, y, z end
Shut up and show some games!
#{code.demo :live}
Thanks!