a simple keyboard game

Overview

Maxwell-Demon-Game

Powered by Taichi. a simple keyboard game

This is hw2 of Taichi course, as a basic exercise of class.

Rigid 2d bodies and resolve collision

Rigid bodies are non-deformable self-defined shapes, with no squashing or stretching allowed.

We provide a class Rigid2dBodies as general rigid bodies, and 2 shapes: Circles and AABB (Axis Aligned Bounding Boxes) as specific examples.

We care about the collision between rigid bodies. Specifically, Impulse will be calculated and applied.

Sinking of objects are not dealt with due to time reason.

Maxwell's Demon game

We simulate the movement of the balls in the game as 2d rigid circles with collision, instead of particles with repulsion. Walls are AABB with infinite mass.

Playing the game

The game starts by running MaxwellsDemonGame.py.

Fixed number of white balls and yellow balls(default 15 each) are randomly generated. your goal is to move the door by pressing UP and DOWN on the keyboard, and get all yellow balls to the left side and all white balls to the right. Press ESC to stop game immediately.

The game ends when the player successfully move all balls to the correct side, or the time counts down to zero. Your final score is the number of balls in the correct side devided by the total number of balls.

sample

You might also like...
Ice-Walker-Game - This repository is about the Ice Walker game made in Python.

Ice-Walker-Game Ce dépot contient le jeu Ice Walker programmé en Python. Les différentes grilles du jeu sont contenues dans le sous-dossier datas. Vou

Deal Or No Deal was a very popular game show. Even now, for a family party, it's a fun game to pass time

Deal Or No Deal was a very popular game show. Even now, for a family party, it's a fun game to pass time. I made a code to play the game right in your terminal/console. This isn't made to be a game which can be installed by everyone and played, I just made it as a fun project as I just started out with python. So if you have python installed and wanna have some fun, or just curious to see how I did this, feel free to check the code out!

Mastermind-Game - A game to test programming and logical skills

Bem vindo ao jogo Mastermind! O jogo consiste em adivinhar uma senha que será ge

Quiz Game: answering questions naturally with a friendly UI to enjoy the game
Quiz Game: answering questions naturally with a friendly UI to enjoy the game

About Quiz Game : The Game is about answering questions naturally with a friendl

Adventure-Game - Adventure Game which is created using Python

Adventure Game 🌇 This is a Adventure Game which is created using Python. Featur

Python module providing simple game networking

nethelper Python module providing simple game networking This module was originally created to facilitate a class on creating multiplayer games in Pyg

This is a simple game made using pygame.

Ball breaker This is a simple game made using pygame game view The game view have been updated wait for the new view to be uploaded Game_show.mp4 Lear

This is simple minesweeper-like Telegram game

This is simple minesweeper-like Telegram game. You need to open all "free" squares and put flags on squares with bombs on them. If you open a cell with a bomb, the game is over.

A simple hangman game for beginners trying to learn python

Hangman Game This is a simple hangman game for beginners trying to learn python. I have tried to keep it as simply as possible. Sample output Here is

Comments
  • Thanks for your great homework:)

    Thanks for your great homework:)

    Well done! Thanks for your contribution and we cannot wait to see your next awesome work soon : ) 同学你好,你的作业写得太棒啦!恭喜你获得太极图形精心定制的小礼品,请回复你的收货信息(地址+联系电话)到[email protected]。很快,你的太极周边就快马加鞭到你身边啦!(注:一定要确保信息完整准确哦~) 同时,如果你正在上太极图形课,也记得在论坛太极图形课作业区留下你的Github链接,让更多人欣赏到你的大作哦!https://forum.taichi.graphics/c/homework/14

    opened by taichiCourse01 0
Owner
null
Blender Game Engine Game Type Templates Logic Bricks (and Python script) based Game Templates for Blender

Blender-Game-Engine-Templates Blender Game Engine Game Type Templates Logic Bric

null 3 Oct 25, 2022
This is a simple telegram bot for the game Pyal, a word guessing game inspired by Wordle

Pyal Telegram Bot This is a simple telegram bot for the game Pyal, a word guessing game inspired by Wordle. How does it work? Differently from the ori

Rafael Omiya 4 Oct 6, 2022
Game-of-life - A simple python program to simulate and visualise the Conway's Game of life

Conway's game of life A simple python program to simulate and visualise the Conw

Dhravya Shah 3 Feb 20, 2022
Mandaw 2 Mar 1, 2022
Snake game mixed with Conway's Game of Life

SnakeOfLife Snake game mixed with Conway's Game of Life The rules are the same than a normal snake game but you have to avoid cells created by Conway'

Aidan 5 May 26, 2022
Lint game data metafiles against GTA5.xsd for Rockstar's game engine (RAGE)

rage-lint Lint RAGE (only GTA5 at the moment) meta/XML files for validity based off of the GTA5.xsd generated from game code. This script accepts a se

GoatGeek 11 Sep 18, 2022
HTTP API for FGO game data. Transform the raw game data into something a bit more manageable.

FGO game data API HTTP API for FGO game data. Transform the raw game data into something a bit more manageable. View the API documentation here: https

Atlas Academy 51 Dec 26, 2022
A near-exact clone of google chrome's no internet game, or the "google dinosaur game", with some additions and extras.

dinoGame A near-exact clone of google chrome's no internet game, or the "google dinosaur game", with some additions and extras. Installation Download

null 1 Oct 26, 2021
Quantum version of the classical Nim game. An automatic opponent allows to game to not be as easy as it seems.

Nim game Running the game To run the program just launch : python3 game.py Rules This game is inspiring from the Nim game. You are 2 players face to f

Michaël 1 Jan 8, 2022
Average Clicker Game (AVG) is a Python made game using tkinter

Average-Clicker-Game Average Clicker Game (AVG) is a Python clicker game not made with pygame but with tkinter, it has worker, worker upgrades, times

Zacky2613 1 Dec 21, 2021