Skip to content
Igor Bragaia edited this page Apr 27, 2018 · 5 revisions

fruits-pygame

Worms-like game developed for the first bimester project of the ITA's object oriented programming course CES-22.

Dependencies

This project depends on:

Make actions

  • make run: Executes the python script of the game.
  • make mypy: Runs the mypy static type checker into the codebase.
  • make install: Install the fruits packages. Normally not necessary.

Also are defined the build, full-build and debug tasks for compiling purposes, but the compiling process is still buggy.

How-to run the game

To run the game, simply use make run into the root of the repository, this will execute the fruits-game.py script with the appropriate flags configured.

Commands

  • Use the arrow keys to move the selected fruit. A fruit may only be moved in a jumpy mood. Use 'SPACE' to jump.
  • Use TAB to switch between fruits of the same team.
  • Use X to equip bomb. Note that you can't move while the bomb is equipped.
  • Use C to exit launching mode.
  • Click with the mouse as to deploy the bomb in a given direction when in launching mode.
  • Use Q to switch teams.
  • Use W to go to the main menu.

Game Objects

  • Fruits, Terrain, Menu Buttons belong to Game Object class which have different components like meshs or colliders. To make a game object drawable, just instantiate this and register such Game Object on the World Object and it will be drawn and updated at each game frame.

Clone this wiki locally