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
RubyConf Indonesia 2017
Search
rishi jain
October 06, 2017
Programming
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
RubyConf Indonesia 2017
rishi jain
October 06, 2017
More Decks by rishi jain
See All by rishi jain
The Achilles heel of a Rails developer: Upgrading Rails app.
rishijain
0
110
Why women should not miss the IT ride
rishijain
0
66
Build, Debug & Prosper
rishijain
0
160
Game Development - The Ruby Way..!!
rishijain
0
930
Other Decks in Programming
See All in Programming
「人を評価する AI」の設計と実装
ryoyanara
0
220
AI Readyの正体はデータマネジメントだ メダリオン2.0の最前線
freee
PRO
0
320
【デモ】Kiroで体験する仕様駆動開発|設計からコーディングまでAIと進める開発フロー
cmkudo
0
180
2年かけて Deno に DOMMatrix を実装した話 / How I implemented DOMMatrix in Deno over two years
petamoriken
0
210
属人化した知識を、 AIが辿れる地図にする
pkshadeck
PRO
1
190
ソフトウェアエンジニアにとっての生成AI - 特性を知って使い倒す / generative ai for software enginner
kishida
5
1.9k
「寝てても仕事が進む」Claude Codeで組む第二の脳
tomoyafujita2016
0
340
jsmini JavaScript Engine を作ってみた話
yosuke_furukawa
PRO
0
330
ドリフトを絶対に許さない(?)CDK運用 / CDK Ops with Zero Tolerance for Drifts (?)
akihisaikeda
1
210
What's New in Android 2026
veronikapj
0
270
Laravelで学ぶ Webアプリケーションチューニング入門/web_application_tuning_101
hanhan1978
4
1.9k
複数の Claude Code が"放置"されてしまう問題をCLI ダッシュボードを自作して解決した話
sumihiro3
1
710
Featured
See All Featured
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
210
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
650
The #1 spot is gone: here's how to win anyway
tamaranovitovic
3
1.1k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
490
For a Future-Friendly Web
brad_frost
183
10k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
201
75k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.4k
Designing Powerful Visuals for Engaging Learning
tmiket
1
500
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.3k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.8k
Transcript
Rishi Jain @jainrishi15 Game Development ❤
History of gaming
https://store-images.microsoft.com/image/apps.13559.9007199266501842.77773a7e-4736-4d1c-b540-04b3470884b7.df4261ee-dd77-4243-bcdb-41080f3d5deb?w=472&h=787&q=60
http://www.todayifoundout.com/wp-content/uploads/2011/12/Pong-arcade-game.jpg
http://playsterr.com/wp-content/uploads/2016/01/breakout-voyager_img1.png
My history of gaming
None
https://i.ytimg.com/vi/k7vcUei5u2E/maxresdefault.jpg
None
https://cdn.vox-cdn.com/thumbor/mQVeHmMDCRQdZXPIwdGgAaYhKQU=/ 0x0:2000x1500/1200x800/filters:focal(840x590:1160x910):no_upscale()/cdn.vox-cdn.com/ uploads/chorus_image/image/56594937/super-mario-bros.0.0.gif
https://media.contentapi.ea.com/content/www-easports/en_US/fifa/news/ 2016/fifa-17-release-date/_jcr_content/headerImages/image.img.jpg
Let’s code a game in ..?
None
RUBY ❤
None
Really ruby ?
Ruby is slow.. right? https://dab1nmslvvntp.cloudfront.net/wp-content/ uploads/2015/04/1428359764rubygemsslow.png
Graphics & Ruby ..? http://i0.kym-cdn.com/photos/images/original/ 000/468/503/1d4.png
GOSU
Gosu - 2d game library - support for ruby -
Open source - OS X, Linux, Windows
Gosu Showcase
CptnRuby
Dave
Dragon Eggs
Speed fest
Lets build a game ..!!
Requirements - Game theory - Mathematics * - Gosu api
https://static1.squarespace.com/static/550334cbe4b0e08b6885e88f/55a3f2b1e4b0d44eb7d704bc/55a3f2b2e4b0d44eb7d7086c/1352396072863/1000w/ books_bundle.jpeg Game Theory
Game Loop INITIALISE DRAW UPDATE
Mathematics
http://i0.kym-cdn.com/photos/images/original/001/019/285/3a7.jpg
https://i.imgflip.com/dr98v.jpg
https://pics.me.me/mathematics-rule-1-if-it-seems-easy-then-you-are-25045757.png
Gosu api
Initialise game
Draw image
DragonEggs - Game window - Eggs - Baskets - Collision
- Assets
10.times do |n| Egg.new(400*n + 400, 100) end
Egg: 400, 100 Egg: 800, 100 Egg: 1200, 100 Egg:
1600, 100 and so on … X Y
x: 0 x: 800 y: 0 y:800 (400, 100) 800,
100
Collision
Process
1. Game Idea
2. Visualisation Egg Basket
3. Building the assets
4. Coding
5. Releasing * releasy * ocra * gem
Resources 1. http://github.com/rishijain/dragoneggs 2. https://github.com/gosu/gosu 3. https://www.libgosu.org/ruby.html
Thank You @jainrishi15
Questions ?