1
HTML & templates / Re: Trying to learn how to code server side with hfs macros
« on: May 13, 2015, 11:06:31 PM »
Or maybe someone could give me a quick brief example on how to macro program, like say I had a simple html5 canvas game where you move a circle around. Two people are playing on different computers. The position of the player's circle is located with variables that contain an x an y coordinate, we can call these variables, xPos and yPos. The players press the arrow keys to call a function that changes the xPos and yPos variables, thus moving the circle. How would I use the macros to update the xPos and yPos variables so that when the guy on one of the computers is moving his circle, the guy on the other computer can see the other guy's circle moving? Thanx!