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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Danielle Smith
December 03, 2014
40
0
Share
Game Dev in Ruby
Short talk on Game dev in Ruby using the Gosu gem
Danielle Smith
December 03, 2014
More Decks by Danielle Smith
See All by Danielle Smith
Ruby Ruby
daninithepanini
0
150
A Brief History of Ruby
daninithepanini
0
45
Static Type Inferencing ... in Ruby?
daninithepanini
0
27
Off the Rails
daninithepanini
0
40
Action Game
daninithepanini
0
40
RubyGL
daninithepanini
0
31
YeSQL
daninithepanini
0
28
Euler vs Hamilton
daninithepanini
0
45
Featured
See All Featured
Unsuck your backbone
ammeep
672
58k
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
370
It's Worth the Effort
3n
188
29k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
190
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
250
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
190
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.2k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.5k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.7k
Mind Mapping
helmedeiros
PRO
1
190
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!