Skip to content

tomduggan85/drive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Drive

Live demo

In-browser 3D driving game experiment, using React, three.js, physijs.

How to run

  1. cd client
  2. npm start
  3. Open http://localhost:3000 in your browser. WASD controls the left vehicle, Arrow keys control the right vehicle.

Remote control

A small websocket server exists in /server, to enable remote control of vehicles in a browser session from another browser:

  1. cd client
  2. npm start:matchserver
  3. In host browser, start a match (i.e. http://localhost:3000/match/1234)
  4. In remote browser, join the same match as a remote control: http://localhost:3000/match/1234/remote

It's currently only possible to control the left vehicle, as there's no player / vehicle selection built yet. It's possible to start two ngrok tunnels to remotely control a localhost match from an external device (i.e. an iphone) - instructions and a boolean switch are in DriveMatchSocket.js.

3D assets

lada by Renafox
50s by Renafox
its_a_volvo by filipeb2011
wheels by filipeb2011
pontiac by Renafox
cruiser by Renafox
work_truck by Renafox
woodywagon by filipeb2011
amc by Renafox
chicago_limo by Seismic3d
thunderbird by Renafox
vg30 by 248
untitled by Renafox

About

In-browser 3D driving game, three.js, Physijs, React, Redux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages