XMoto的HTML5端口 xmoto.js

码农软件 · 软件分类 · HTML5开发相关 · 2019-03-07 09:11:45

软件介绍

xmoto.js 是XMoto的HTML5端口,使用CoffeeScript,2D Canvas 和 Box2DWeb。

demo

Image

用法:

  • 上传"data", "lib" 和 "bin"文件夹到静态的Web 服务器上(放在根目录“data”文件夹中)

  • 包括你的网页上的/ lib/和/bin/xmoto.js中所有的JavaScript文件

  • 调用$.xmoto('l1.lvl')或$.xmoto('l1.lvl',选项),其中“l1.lvl”是水平的名称和选项:

{
  canvas:  '#xmoto'   # canvas selector
  loading: '#loading' # loading selector
  chrono:  '#chrono'  # chrono selector
}

安装

  • brew install nodejs:安装 NodeJS (on MacOS)

  • sudo npm install -g coffee-script: 安装 CoffeeScript

  • npm install express: 安装 Express

工作环境

  • coffee -j bin/xmoto.js -wc src/*.coffee src/*/*.coffee 实时编译为JavaScript

  • node server.js 启动HTTP服务器(

    http://localhost:3000)

本文地址:https://www.codercto.com/soft/d/806.html

Computing Patterns in Strings

Computing Patterns in Strings

Bill Smyth / Addison Wesley / 2003 / $ 75.00

The computation of patterns in strings is a fundamental requirement in many areas of science and information processing. The operation of a text editor, the lexical analysis of a computer program, the......一起来看看 《Computing Patterns in Strings》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

随机密码生成器
随机密码生成器

多种字符组合密码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试