Skip to content

2D particle rebound simulation with multiplayer

Notifications You must be signed in to change notification settings

A2K/bullet-simulator

Repository files navigation

Bullet Simulator

animation.gif

Controls

Movement
  • WASD or Arrows - up/left/down/right
  • LMB - shoot
  • RMB - place wall
  • MMB - toggle laser sight

Time control

  • Tab - reverse time
  • 1...9 - time acceleration
  • Shift+1...9 - time deceleration
  • 0 - freeze time

Debug

  • ~ - open console
  • ; or F9 - toggle debug overlay
  • ' or F10 - toggle events history overlay
  • F5 - reset world

Window

  • F11 or Alt+Enter - toggle fullscreen
  • Escape - exit

Networking

Press ~ to open the console. Type help.

Example commands:

  • host 1234 - start a server at port 1234
  • join 127.0.0.1 1234 - connect to port 1234 at 127.0.0.1
  • sync - refresh world state from server

Configuration options

  • Press ~ to open the console.
  • Type list to get full list of available variables and their values.
  • To get variable current value type get VariableName.
  • To set variable value type set VariableName value.
  • Example: set DestroyWallsOnCollision false
  • The values are not preserved between restarts

Libraries used

  • SDL
  • SDL_ttf
  • ENet