Giter Site home page Giter Site logo

a2k / bullet-simulator Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 31.75 MB

2D particle rebound simulation with multiplayer

C++ 12.17% C 46.64% CMake 0.52% Objective-C 0.23% Makefile 0.80% Shell 9.54% M4 0.02% HTML 27.82% CSS 0.81% JavaScript 1.43% Lua 0.02%
sdl sdl2 sdl2-ttf sdl2-library sdl-ttf enet enetframework 2d 2d-graphics ttf

bullet-simulator's Introduction

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

bullet-simulator's People

Contributors

a2k avatar

Stargazers

 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.