-
Initiation
- Read Gosu 2D game development library website
- Read Gosu Wiki
- Read Gosu API Docs
- Join the Gosu Forum
- Switch to Ruby version
rbenv install 2.4.2; rbenv local 2.4.2; rbenv rehash; ruby -v; - Install Gosu System-wide dependencies
brew install sdl2 gem install gosu - Test Gosu
ruby -rgosu -e 'w = Gosu::Window.new(200, 150); w.caption = "It works!"; w.show'
-
Create Basic Ruby Game Window
- Read Gosu Wiki Ruby Tutorial
- Create Gemfile with Gosu dependency and install
bundle install - Copy/Paste Simple Game code Minimal Window Class
- Run Window Class using Gem installed by Bundler
bundle exec ruby src/main.rb
-
Add OpenGL
- Reference:
- OpenGL Guide - http://www.diatomenterprises.com/different-sides-of-ruby-development-opengl/
- OpenGL Official Documentation - https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/
- Create Axis Class in ./media/axis.rb to Draw Coordinates on 3D Grid
- Note: Store Objects in ./objects Folder.
- Create Lines and Set Line Colours
- Draw the Lines from main.rb using the GLU (OpenGL Utility Library)
- Add Player class to store the x, y translation to move the player
- Reference:
-
Add RSpec
- Add RSpec to Gemfile
- Initialise RSpec
rspec --init - Install dependency
bundle install - Add Tests
-
Experiment with Matrix - http://ruby-doc.org/stdlib-2.4.2/libdoc/matrix/rdoc/Matrix.html
-
Notifications
You must be signed in to change notification settings - Fork 0
ltfschoen/ruby-game
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description or website provided.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published