commented out testing games and anim

in-situ-instructions
Fabien Benetou 8 months ago
parent d0999b87e0
commit 9d05fc4b6f
  1. 4
      index.html

@ -27,8 +27,9 @@ AFRAME.registerComponent('startfunctions', {
addGames()
// example of adding a game programmatically
/*
let newEl = document.createElement('a-entity')
//let gamename = "checkers"
let gamename = "checkers"
let gamename = "carcassone"
newEl.id = gamename
newEl.setAttribute(gamename, "")
@ -39,6 +40,7 @@ AFRAME.registerComponent('startfunctions', {
let biggu = document.querySelector("#biggu")
biggu.setAttribute("animation__translation", "property: position; to: 0 0 0.5; dur: 10000;")
biggu.setAttribute("animation__waddle", "property: rotation; from: 0 -20 -10; to: 0 20 10; dur: 1000; loop:true; easing: linear; dir:alternate;")
*/
}
})

Loading…
Cancel
Save