I am trying to build an app with HTML5.
Is there a certain syntax to follow when making objects for games? Anyone tried that and what are good practices to follow?
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.
Basically there are two main options: a) using canvas and raycasting b) using game engine to achieve the 3D effect in HTML5.
Have a look at the following cool tutorials and posts: