最近,我对创建JS游戏感到很有兴趣(虽然我没有相关经验,但这个领域很吸引我)。
我知道有几个适用于JS的游戏引擎,但我并不想创建一个游戏。相反,我很好奇事情是如何工作的/如何创建一个游戏。
我有几个问题:
Anyone with suggestions on where can I read about it? Prerequisite (what knowledge is needed).
I tried making a small game of something walking in a rectangular. By binding keyup to the window and checking the
event.which
to get the key that was pressed. I realized that if i clicked on 2 buttons same time only 1 of them is being registered. how can i overcome that?$(window).keyup(function(event){ globalEvent = event.which; });