Code Monkey home page Code Monkey logo

cse210-05cycle's Introduction

Cycle

Description

Cycle is a game where the players try to cut each other off using cycles that leave a trail behind them.

Project Structure

cycle/
├── constants.py
├── game/
│   ├── casting/
│   │   ├── actor.py
│   │   ├── cast.py
│   │   ├── cycle.py
        ├── food.py
│   │   └── score.py
│   ├── directing/
│   │   └── director.py
│   ├── scripting/
│   │   ├── action.py
│   │   ├── control_actors_action.py
│   │   ├── draw_actors_action.py
│   │   ├── handle_collisions_action.py
│   │   ├── move_actors_action.py
│   │   └── script.py
│   ├── services/
│   │   ├── keyboard_service.py
        ├── stopwatch_services.py
│   │   └── video_service.py
│   └── shared/
│       ├── color.py
│       └── point.py
├── __main__.py
└── README.md

Rules

Cycle is played according to the following rules.

Players can move up, down, left and right... Player one moves using the W, S, A and D keys. Player two moves using the I, K, J and L keys. Each player's trail grows as they move. Players try to maneuver so the opponent collides with their trail. If a player collides with their opponent's trail... A "game over" message is displayed in the middle of the screen. The cycles turn white. Players keep moving and turning but don't run into each other.

Requirements

The program must also meet the following requirements.

The program must include a README file. The program must include class and method comments. The program must have at least 16 classes. The program must remain true to game play described in the overview.

Getting Started


Make sure you have Python 3.8.0 or newer and Raylib Python CFFI 3.7 installed and running on your machine. You can install Raylib Python CFFI by opening a terminal and running the following command.

python3 -m pip install raylib

After you've installed the required libraries, open a terminal and browse to the project's root folder. Start the program by running the following command.```

python3 cycle

You can also run the program from an IDE like Visual Studio Code. Start your IDE and open the 
project folder. Select the main module inside the hunter folder and click the "run" icon.

## Project Structure
---
The project files and folders are organized as follows:

root (project root folder) +-- cycle (source code for game) +-- game (specific game classes) +-- main.py (entry point for program) +-- README.md (general info)


## Required Technologies
---
* Python 3.8.0
* Raylib Python CFFI 3.7

cse210-05cycle's People

Contributors

felipesud avatar

Watchers

 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.