首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > tinyshock

tinyshock

  • 资源大小:7.02 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: javascript html

资 源 简 介

About TinyShock is a very small cross-browser 2D Javascript game engine for use with the HTML5 canvas element. Get TinyShock Download the latest version from the download tab above, or alternatively get the latest version by checking it out through Mercurial (you must have Mercurial installed): hg clone https://code.google.com/p/tinyshock Why TinyShock? TinyShock handles things like: * Mouse position * Keyboard events * Image and sound loading * Specified Beats-Per-Second. Without you having to mess with complicated, non-cross-browser code. As an example, look at this standard Javascript code for finding the mouse position: document.getElementById("screen").addEventListener("mousemove", function (event) { if (event.offsetX) { mouseX = event.offsetX; mouseY = event.offsetY; return; } else if (event.layerX || event.layerY) { mouseX = event.layerX;

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.219345s