/cg-game

Simple game made in Python from scratch, using only OpenGL.

Primary LanguagePython

Description

A Game developed only with OpenGL and Python for Computer Graphics course.

Gameplay video

Kazam_screencast_00001-1659805094.mp4

In-game screenshots

image image

Model screenshots

See images

image image image image image image image image image

Installation

Prerequisites

  • Python 3.9 or 3.10 (tested with 3.9.6, 3.9.12 and 3.10.10)
  • OpenGL 3.3.0 or higher

Clone the repository with git clone --recursive https://github.com/marcuscastelo/cg-trab

Install dependencies

Linux

make install-deps

Windows (or without make)

pip install -r requirements.txt cd vendor pip install -e utils pip install -e dpgext

Run the game

make run

or

python src/main.py

Controls / Keybinds

  • WASD: move the character
  • Space: jump
  • R: shoot
  • E: select object to manipulate in GUI
  • Mouse: direction of the character's view
  • Ctrl: run (changes FOV and character speed)
  • F: inspect weapon