GithubHelp home page GithubHelp logo

dunebuggy's Introduction

DuneBuggy

A 3D multiplayer dune buggy battle game written entirely in JavaScript.

Running the client

Open client/index.html in your WebGL capable browser. You'll have to run a simple webserver or enable local file access to load the models. See How to run things locally.

Controls

Accelerate: W / Up arrow / Gamepad Right trigger

Brake: D / Down arrow / Space / Gamepad Right bumper

Turn left: A / Left arrow / Gamepad left stick

Turn right: D / Right arrow / Gamepad left stick

Switch weapons: Q

Fire weapon: Control / Left mouse button / Gamepad left bumper

Nitrous: Shift / Gamepad X

Switch view: V

Toggle chase/turret camera: C

Toggle full screen: Enter

Starting a server

  1. Make sure you have NodeJS installed
  2. Do a npm install inside of server/
  3. Run node server/index.js

Technology

WebGL - Used to render the game environment

WebSockets - For real time client/server communication

WebWorkers - To ensure physics engine calculations do not block visuals

Node.js - As a server

HTML5 audio - To play sounds/music

Full-screen API - For a real desktop gaming experience

Pointer lock API - For smooth first-person style rotation of the turret

HTML5 Gamepad API - For gamepad support

Software used

Socket.IO - Socket communication for the client and server

three.js - Lightweight JavaScript 3D library

Physijs - A physics plugin for three.js that utilizes the ammo.js/Bullet physics engine

Credits

DuneBuggy couldn't have been made without the following freely available works:

Models

Dune buggy by wta

Oil tank by jo2bigornia

Walls by stuklek

Crate by Rick SL

Missile by piojoman

Barrels by PancakeMan96

Turret by Angryfly

Jet by PyrZern

Textures

Oil tank texture by DeathniteDT

Explosion by etayrien

Sounds

Missile Launch by Kibblesbob

Various sounds from Bolo © 1993 Stuart Cheshire

License

Copyright © 2013 Lawrence Davis

Licensed under the GPL license

dunebuggy's People

Contributors

lazd avatar

Watchers

 avatar  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.