Published on May 9, 2009
EuRuKo presents Javier Ramírez (firstname.lastname@example.org) * in * Fun with Ruby (and without r***s) Program your own games with Gosu
the characters Ruby ................. as The Damsel Hardware ............ as The Villain Gosu ...................... as The Hero Chipmunk ........ as The Scientist Rubyscript2exe ........ as Himself
why games work rest play sleep improve, have fun
why ruby because i can! less code, less clutter easy to try out
Non-technical considerations concept ● game specs / core design ● gameplay/game mechanics ● balance ● look and feel ● More at “Game Architecture and Design: A New Edition” by Andrew Rollings & David Morris
Part I what's in a game? (game development 101)
Web Development Abstraction
One ring to rule them all
Game Development Abstraction 3D games are the same, just harder
Game Development Components
the living game
Development Components main loop / event loop ● game logic: levels, collisions, AI ... ● stateless images (tiles / models) ● stateful images (sprites / models) ● sound FX and music ●
Part II when Ruby met Gosu
about by Julian Raschke and Jan Lücker Gosu ( 고수 ): High Hand - Leader C++ + Ruby Bindings http://code.google.com/p/gosu/ (http://tinyurl.com/euruko-gosu)
design rationale Bloatfree: Gosu aims to contain everything that is necessary to write a game in clean C++ or Ruby code, yet not much more. Reality-driven: Everything in Gosu exists for the same single reason: It was necessary for an existing project. Nothing was, and will ever be, added out of boredom.
source code http://tinyurl.com/euruko-games http://code.google.com/p/eurukuest (http://tinyurl.com/eurukuest)
Gosu::Image load individually or tiled drawing can be rotated / scaled supports z-index can use Rmagick objects
Gosu::Sample & Gosu::Song full playback control volume, speed, pause, resume, stop, pan looping supported midi are better if converted to XM
Gosu::Font can be a system font or a file easy to check the real width supports rotation and scaling
about by Scott Lembcke A 2D rigid body physics library, designed with 2D video games in mind. http://code.google.com/p/chipmunk-physics (http://tinyurl.com/euruko-chipmunk)
chipmunk basics Space Body Shape Vect Joint
Part III your 15 minutes of fame
doing it is just half the fun
tar2rubyscript by Erik Veenstra RBA file: init.rb => tar + base64 + comments
rubyscript2exe by Erik Veenstra packages ruby, the script and all dependencies together into an executable file. works on windows, linux, OSx
rubyscript2exe First Step: it runs the application, checking for all the required gems and scripts, creating a list of dependencies to include in the executable
rubyscript2exe The “Environment Embedding Executable” gzips all the dependencies and attaches the file to a copy of eee
muhahahahaha! http://formatinternet.com email@example.com http://twitter.com/supercoco9 http://www.workingwithrails.com/ person/5987-javier-ramirez
Presentación que realice en el Evento Nacional de Gobierno Abierto, realizado los ...
In this presentation we will describe our experience developing with a highly dyna...
Presentation to the LITA Forum 7th November 2014 Albuquerque, NM
Un recorrido por los cambios que nos generará el wearabletech en el futuro
Um paralelo entre as novidades & mercado em Wearable Computing e Tecnologias Assis...
Javier Ramirez's talk on EuRuKo 2013 conference in Athens, Greece titled "Fun with Ruby and Redis"
Put it together with Ruby and it's fun too! ... Fun with Ruby and Redis by Javier Ramirez Confreaks. Subscribe Subscribed Unsubscribe 14,687.
View javier ramirez's ... These last few years I've been building web applications using Ruby on ... attendees will create a real web application in a fun ...
... svn/ trunk / eurukuest / ruby_stone.rb ... require 'gosu' require 'zindex' ... r2 by javier.ramirez.gomara on May 5, ...