JoBase

raw JSON →
3.2 verified Fri May 01 auth: no python

JoBase is a fast Python game library for beginner coders. Version 3.2 provides a simplified interface for game development, designed to be easy to learn for novices. Release cadence is irregular.

pip install jobase
error AttributeError: module 'jobase' has no attribute 'Game'
cause Trying to access Game via import jobase and then jobase.Game, but Game is not directly on the top-level module.
fix
Use: from jobase import Game
error pygame.error: Unable to open file 'player.png'
cause The image file specified in Sprite does not exist or is in a different directory.
fix
Place the image file in the same directory as the script or provide a full path.
breaking JoBase 3.x uses Python 3 only and has different class names compared to 2.x (e.g., Game instead of Window).
fix Update imports and class names: use from jobase import Game, Sprite.
gotcha The Sprite class requires an image file; if the file is missing, it may crash silently or raise an error. Always verify paths.
fix Ensure image files are in the correct directory or use a placeholder.

Create a simple game with a player sprite that moves left/right.

from jobase import Game, Sprite

class MyGame(Game):
    def setup(self):
        self.player = Sprite('player.png', x=100, y=100)

    def update(self):
        if self.keyboard.pressed('LEFT'):
            self.player.x -= 5
        if self.keyboard.pressed('RIGHT'):
            self.player.x += 5

if __name__ == '__main__':
    MyGame().run()