Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Knockout — using real 2D collision dynamics, friction modeling, and adjustable physical properties.

Notifications You must be signed in to change notification settings

andrew-juang/knockout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Knockout

Description

Knockout is a two-player game where players try to knock out each other's pucks in a turn-based manner. Players will observe how varying physical variables including the masses of individual pucks, the elasticity of the collisions, and the frictional force (by changing the material the field is made out of) alters the mechanics of the game.

Physics Concepts Incorporated

  • 2-Dimensional Collisions by Circular Objects of Varying Masses (elastic and inelastic)
  • Frictional Force

Instructions and Controls

To play this game, TODO

  • Each player starts three pucks on one side of the field.
  • Set up the field by selecting the field type, elasticity constant, and masses of each puck by using LEFT CLICK on the provided buttons.
  • Using CURSOR and LEFT CLICK, Player A decides in which direction and with what speed each of their pucks will travel by drawing an arrow emanating from each of their pucks. Player B does the same.
  • By using LEFT CLICK on the Shoot button, the selected movements simultaneously occur and pucks that collide will have their trajectory altered accordingly based on physical laws.
  • All pucks eventually come to a stop due to friction. Pucks with an end position outside the field are eliminated and the state is reset for the next turn.
  • The player who eliminates all of their opponent’s pucks first wins.
  • Players may reset the game by pressing r.

Run The Executable

  1. Click on this link and download the executable.zip file https://drive.google.com/file/d/1Yya7hT6bhiJ_XD0KtULNM6kO29Ine88f/view?usp=sharing
  2. Go to your downloads folder and unzip the executable.zip (double click the executable.zip file),
  3. You should see a folder called build. Go into that folder and you should see another folder called exe.macosxblah. Click into that folder.
  4. You should see a bunch of .py and .dylib files. Look for the Unix Executable File called knockout and open/double click it.
  5. If you get an unidentified developer warning, you into Security and Privacy in your settings and allow the file to be opened.
  6. The game should open and you should be able to play.

Contributors

  • Andrew Juang
  • Arthur Liang

Screenshots

default playing end

About

Knockout — using real 2D collision dynamics, friction modeling, and adjustable physical properties.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •