Welcome Installation Getting Started User Interaction Build a Game #1 Build a Game #2 Build a Game #3 Colours Coordinates API Reference Globals Window Camera Mouse Key Rect Image Text Shape Line Screen Sound Base

Getting Started

Start by importing the JoBase module, then calling run().


    

You should see a white screen, or if your trying this on your computer, a white window should appear. You can change the colour of the screen by setting window.color.


    

Feel free to learn more about creating your own colours.

The Game Loop

To start building a game, you need to create a loop. This loop runs over and over again (many times per second) to make the game interactive. Do this by defining def loop().


    

Open the terminal to see a massive stream of "hello"s!

Rendering Things

We can use our loop to draw things. JoBase supports many types of drawable elements, one of them being Image.


    
Installation User Interaction