Getting Started
Download Spry from GitHub.
When you run the program, you'll see a window with the text: No game!
.
Creating a Game
To make your first game:
-
Create a new folder.
-
Create a new file called
main.lua
in the new folder. -
Open
main.lua
in a text editor. Sublime Text, Notepad++, VS Code, and lite are some examples of text editors that you can use. -
Add the following code in
main.lua
, and save the file:function spry.start() font = spry.default_font() end function spry.frame() font:draw('Hello, World!', 400, 300) end
Running Your Game
The simplest way to load and run your project is to drag and drop the folder you created onto the Spry executable. You can also run the program from the console:
C:\path\to\spry.exe my_folder
A window should open with the text Hello World!
. You've successfully created
your first game using Spry!