about summary refs log blame commit diff stats
path: root/js/gg/game.js
blob: 0ba3d89dca59ac8392e60d7a829017133be2d78a (plain) (tree)



















                                                    
const buttons = {
  d: {
    up: () => document.getElementById("dUp"),
    down: () => document.getElementById("dDown"),
    right: () => document.getElementById("dRight"),
    left: () => document.getElementById("dLeft"),
  },
  ab: {
    a: () => document.getElementById("a"),
    b: () => document.getElementById("b"),
  },
  aux: {
    start: () => document.getElementById("start"),
    select: () => document.getElementById("select"),
  },
};

console.log(buttons.ab.a);

buttons.ab.a.style.backgroundColor = "pink";