Simple DragonRuby Game Toolkit Game Starter Template
Quickly start a new DragonRuby Game Toolkit game with helpful extensions.
Last tested against DragonRuby Game Toolkit v3.24.
- Displays framerate in the upper-right hand corner of the game when running in development mode
#debug?
helper to easily check if the game is running in development mode; useful for custom commands- Reload all sprites in development using the
i
key, requires use ofSPATHS
constant - Reset the game with
r
key, calls$gtk.reset
- Put all debug-only code in
#debug_tick
#init
method that gets run once on game bootCHEATSHEET.md
with common APIs from DRGTK and Scale#version
to get the version of your game- Constants for various values and enums:
FPS
,BLEND_*
,ALIGN_*
There are two main ways you can use the Scale template for your games.
The fastest way to get started is to download the template zip file and put it into your unzipped DragonRuby Game Toolkit folder.
- Download and unzip the DragonRuby Game Toolkit engine zip
- Delete the
mygame
directory - Download Scale
- Unzip the
scale-main.zip
- Move the
scale-main
folder into the DRGTK folder - Rename
scale-main
tomygame
- Start DragonRuby, and make an awesome game!
If you're going to track your game with Git and use GitHub, the baked-in template system will get you going quickly.
- View the project on GitHub: https://github.com/DragonRidersUnite/scale
- Click "Use this template"
- Click "Create a new repository"
- Fill out the details and create the repository
- Unzip the DragonRuby Game Toolkit engine zip
- Delete the
mygame
directory - Clone your new repository into the DRGTK engine folder with the folder name
mygame
, example:git clone git@github.com:USERNAME/REPO.git mygame
- Start DragonRuby, and make an awesome game!
The template source code falls under the Unlicense, meaning it is dedicated to the public domain and you are free to do with it what you want.
Conributions are welcome!
Open an issue or submit PRs if you notice something isn't working.
If you find yourself adding the same files, methods, constants, etc. to your DRGTK games, submit a PR to add it to Scale.
[Clear this README out and add your own details!]