Code Monkey home page Code Monkey logo

pyweek36's Introduction

Dark Odyssey

Our game for PyWeek36, September 2023.

Requirements

  • Pyglet == 2.0.9

Running the game

Windows

Execute DarkOdyssey.exe <path_to_the_repo>/Dark_Odyssey/dist/windows/DarkOdyssey

Linux

<path_to_the_repo>/Dark_Odyssey/dist/linux/DarkOdyssey

from source

cd <path_to_the_repo>/Dark_Odyssey
python run_game.py

Checkout README_dev.md for developer instructions.

About the Game

Voyage through the cosmos to unravel the mysteries of dark matter, all while facing formidable adversaries.

Controls

Use the mouse to aim and rotate your spaceship. Press 'A' to accelerate in the direction that the spaceship is pointing towards.

To build the game yourself

Setup

If using native pip then simply open a terminal and run the following from the repo.

cd <path_to_this_repo>/Dark_Odyssey
pip install -r requirements.txt

If using a conda/mamba environemnt, then make sure you have pip installed in it and then install requirements using pip.

Conda

conda create -n darkodyssey
conda activate darkodyssey
conda install python pip

cd <path_to_this_repo>/Dark_Odyssey
pip install -r requirements.txt

Mamba

mamba create -n darkodyssey
mamba activate darkodyssey
mamba install python pip

cd <path_to_this_repo>/Dark_Odyssey
pip install -r requirements.txt

Code structure

Folders

  • modules: Python files that implement individual components of the game.
  • resources: All resources like images, sounds, etc.

Files

  • The main game is written in game.py. This is like the stage.
  • The GameObject class in game_object.py is the abstract class to define all individual objects in the game - player, enemy, asteroid, boss, powerup and dark matter.
  • The Spawner class in spawner.py is the abstract class to spawm the above objects.
  • Assets for each of these objects are defined in the GameAssets class in game_assets.py.
  • Utility functions are defined in utils.py.
  • The file game_state.py has behind the scenes management.

Credits

  • Game Design, Programming, Artwork: ballipilla, ele-phant-astic, pillitoka, dark knight
  • Sounds: freesound.org. Individual licences are mentioned next to the specific files
  • Music: Patreon Goal Reward Loops - Track10 - Layer_04.wav Track by Abstraction (http://abstractionmusic.bandcamp.com/)

License

This work (apart from files mentioned specifically) is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

pyweek36's People

Contributors

krishnamanaswid avatar tejaswid avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.