-
Notifications
You must be signed in to change notification settings - Fork 172
Getting Started on Windows
Getting started with Ruby is very easy if you install Ruby from the Installer and install the DevKit. Install Gosu:
gem install gosu
You can work your way from here using the Ruby Tutorial if you want, or you can check out Gosu's own example games:
gem install gosu-examples
gosu-examples
...see the notes in this issue.
Download and extract the latest version of Gosu for Windows from the releases page.
There is a Visual C++ project under windows/Gosu.sln
that will build Gosu itself, but also includes the C++ Tutorial game that you can run to verify that Gosu works.
Click File/New/Project and select 'Win32 project', then give it a name and in the application settings choose 'Empty project'.
You can then add C++ code files to your project, for example the one from the C++ Tutorial.
Next, open the project options, select C/C++ options, Code Generation, and change the used library from "Multithreaded DLL" to "Multithreaded", and "Multithreaded Debug DLL" to "Multithreaded Debug", respectively, or you will get linker errors later. These options are only available after adding the first C++ source file.
To ensure that your EXE file can find SDL2.dll and your images and sound files, you should also change your project's output directory for both configurations (Release/Debug) so that all files end up in the same place. (In this case I have copied all DLLs from Gosu's "lib" folder into the "examples" folder, and am building Tutorial.exe into this folder so that it can find everything.)
Once you have everything set up, you can follow the C++ Tutorial to learn about Gosu.
See this separate guide: Compiling in Windows using MinGW
- Getting Started
- Tutorials
- In-Depth Documentation
- Deployment
-
Gosu Boards
- Gosu Exchange - Questions? Ask them here.
- Gosu Showcase - Show off your projects.
- Extending Gosu - Libraries that play nicely with Gosu.