A Game by Philipp Welsch
Endlos
Zufällig generiert
So weit wie möglich fliegen
Pick-Ups einsammeln
Crossy Road
Winter Rush
Flight
Endloses ,zufällig generiertes Level
Endgültiger Score hängt ab von:
3 Pick-Ups
+ Speed
- Speed
x2 Score
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)
}