I have been looking for ages for a game idea I have. I have just started off with JQuery and I want to know how to make a game where you click a button then it respawns in a different position.
All I know is that I would have too make a canvas then generate 2 numbers in the canvas then move it to that position.
How can this be done?
This can be done very simply by manipulating the CSS applied to the button. Here is an example:
JavaScript:
HTML: