# Roadtrain javascript game

**URL:** https://discourse.threejs.org/t/roadtrain-javascript-game/16549
**Category:** Showcase
**Tags:** cannonjs
**Created:** [June 25, 2020, 12:06pm UTC](https://discourse.threejs.org/t/roadtrain-javascript-game/16549 "2020-06-25T12:06:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![makannew](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/makannew/32/11873_2.png) [@makannew](https://discourse.threejs.org/u/makannew)
#### Post date: [June 25, 2020, 12:06pm UTC](https://discourse.threejs.org/t/roadtrain-javascript-game/16549/1 "2020-06-25T12:06:14Z")

</div>

Hi,

[Roadtrain](https://makannew.github.io/roadtrain/) is a game based on Three.js and Cannon.js.

![roadtrain](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/5/57c736d89ba7eed84c1f7926cabf73373e29c63e.gif)

I made it a while ago to experiment physic simulation with Javascript. Roadtrain is a complicated vehicle to make it with just coding, so I decided to simulate a real physic word with gravity, momentum and friction (Thanks to Cannon.js) then leave the roadtrain there!

Except arrow keys to turn steering to right or left there is zero game logic to control the scene, everything comes from physic word interactions!

It doesn’t have a long plot, but I guess it is interesting. Hopefully you like it.

---

<div class="post-metadata">

### Author: ![DolphinIQ](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/dolphiniq/32/3510_2.png) [@DolphinIQ](https://discourse.threejs.org/u/DolphinIQ)
#### Post date: [June 26, 2020, 5:31pm UTC](https://discourse.threejs.org/t/roadtrain-javascript-game/16549/2 "2020-06-26T17:31:25Z")

</div>

Its a cool concept but I think it needs a little more polish to be an enjoyable game. The controls seem somewhat clunky to me.

---

<div class="post-metadata">

### Author: ![makannew](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/makannew/32/11873_2.png) [@makannew](https://discourse.threejs.org/u/makannew)
#### Post date: [June 27, 2020, 3:18am UTC](https://discourse.threejs.org/t/roadtrain-javascript-game/16549/3 "2020-06-27T03:18:11Z")

</div>

Thanks @DolphinIQ . You right. For this one is too late but I condider it for my next projects. I realy appreciate your feedback.

---

<div class="post-metadata">

### Author: ![Fyrestar](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/fyrestar/32/52793_2.png) [@Fyrestar](https://discourse.threejs.org/u/Fyrestar)
#### Post date: [June 27, 2020, 4:00pm UTC](https://discourse.threejs.org/t/roadtrain-javascript-game/16549/4 "2020-06-27T16:00:21Z")

</div>

It’s funny ^^ though i got stuck at the spinning planets
