Flight

A Game by Philipp Welsch

In a nutshell

Endlos

 

Zufällig generiert

 

So weit wie möglich fliegen

 

Pick-Ups einsammeln

Warum?

Crossy Road

Winter Rush

Was?

Flight

Endloses ,zufällig generiertes Level

 

 

 

Endgültiger Score hängt ab von:

 

  • Erreichter Distanz
  • Geschwindigkeit

3 Pick-Ups

+ Speed

- Speed

x2 Score

Wie?

 

 

node.js

 

MongoDB

Client

Server

JavaScript

 

WebGL

 

THREE.js

function render () {
    controls.update(clock.getElapsedTime())
    score += Math.floor(controls.velocity.z * -2 / 1000) * multiplicator
    checkCollisions()
    //Check state of timers and update them
    handlePickups()
    drawUI()
    animatePickups()
    //remove all passed objects, spawn new ones and update enviroment
    reloadWorld()
    stats.update()
    if (controls.hasBoost)
      console.log('vrooom')
  }

  function animate () {
    if (stop) return
    requestAnimationFrame(animate)
    render()
    renderer.render(scene, camera)
  }

Demo!

deck

By Philipp Welsch