tilegame / TileExperiments

experiments with tiling systems for web games.
https://tilegame.github.io/TileExperiments/
0 stars 0 forks source link

Game object should reflect directory structure #6

Closed fractalbach closed 5 years ago

fractalbach commented 6 years ago

Currently the game object is a bit disorderly.

Some ideas for directories that can match game object:

Look at the structure different language's standard libraries for ideas on good names.

For easy to type commands, maybe try


$game = { } 

$game.moveTo = (x,y)=> game.player.me.moveTo(x,y) 

Which could allow for easy aliases for commands that are likely to be used by humans in the console.

fractalbach commented 6 years ago

game.logic

game.net

game.util

game.graphics

fractalbach commented 5 years ago

will be handled in #15