Skip to content

enita88/webvr-experiments

 
 

Repository files navigation

webvr-experiment

experimenting with webvr.

Thanks to @borismus and his fantastic work on webvr-polyfill

Show, Don't tell

WebAR

  • modify webvr-polyfill to provide positional tracking with jsartoolkit
  • video in the back
  • works in mobile web. so android and google glass
  • makes ar as easy to code as normal 3d

Game idea

  • like a game in a foire
  • little gltf duck are pumping up
  • you hit them with a hammer

Reticle

  • TODO THREEx.Reticle.signals.nearingStart/nearingStop signals
    • signals triggered when the reticle is near a potential target
    • Reticle UI is using it to make the reticle smaller when it isnt near a target
  • make the reticle close to the target - thus no focus trouble
  • dispatch the intersecting object in signals
    • thus people can code feedback on intersecting object too

TODO

  • make a start screen - get a instruction screen

  • remove font-awesome and put svg icon

  • have a player death leading to a instruction screen ?

  • make game.html playable

    • aka able to shoot at enemy, die if enemy touch
    • thor hammer as enemy
    • stop sound when reseting enemy position
    • handle state via Promise
    • minimap
    • make score
  • make it tell a story

    • zombies running into you
    • you squashing kittens with a horrible guns
    • something with kitten and heart
  • TODO what is the state automata for player/enemies/game

    • game state automata
    • instruction screen -> wait for use to start
    • startGame (loading resource) -> gameStarted()
  • THREE.Reticle could be useful in three.js

    • API similar to raycaster
    • signals mouseEnter/mouseLeave/click
  • pointerlock while on desktop - https://github.com/mrdoob/three.js/blob/master/examples/misc_controls_pointerlock.html <<<<<<< HEAD

b95f90417db7b78c6f16a11035025503c46bc4ce

Changelog

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 85.7%
  • HTML 14.2%
  • Other 0.1%