将工程samples下的WebSockets工程的src/scenes 复制到自己的工程app/scenes/下
main.lua game.lua WebSockets.lua 复制到自己工程mian.lua同等级目录下,就可以运行了了。
其中使用到的接口函数--connect阶段
function MainScene:onConnectClicked()
if self.websoc...
分类:
Web程序 时间:
2015-03-29 15:12:32
阅读次数:
169
练习3-65原文Exercise 3.65. Use the series
ln2 = 1- 1/2 + 1/3 - 1/4 + ……
to compute three sequences of approximations to the natural logarithm of 2, in the same way we did above for . How rapidly do the...
分类:
其他好文 时间:
2015-03-29 09:30:17
阅读次数:
165
Sometimes we'll want to sort a collection by something other than its natural order. For example, suppose we wanted to sort strings by their length in...
分类:
其他好文 时间:
2015-03-20 16:17:47
阅读次数:
107
################导入类#################路径 类型 后缀名/tasker/profiles/ 配置 .prf.xml/tasker/projects/ 项目 .prj.xml/tasker/scenes/ 场景 .scn.xml/tasker/tasks/ 项目 .t...
分类:
其他好文 时间:
2015-03-19 20:04:05
阅读次数:
125
Course Description Teaching Assistants Peng Qi Course Notes (updated each week)?Detailed Syllabus Class Time and Location Spring quarter (March - June, 2015). Lecture: Monday, Wednesday 11:00-12:...
分类:
其他好文 时间:
2015-03-17 16:07:25
阅读次数:
1021
uva 11129 An antiarithmetic permutation
A permutation of n+1 is a bijective function of the initial n+1 natural numbers: 0, 1, ...
n. A permutation p is called antiarithmetic if there is no...
分类:
其他好文 时间:
2015-03-07 15:47:10
阅读次数:
132
Description描述You task is to find minimal natural number N, so that N! contains exactly Q zeroes on the trail in decimal notation. As you know N! = 1*2...
分类:
其他好文 时间:
2015-03-07 14:03:59
阅读次数:
167
Behind the scenes in the computer's memory, color is always talked about as a series of 24 bits of information for each pixel. In an image, the color with the largest proportional area is called the d...
分类:
其他好文 时间:
2015-03-06 15:53:34
阅读次数:
137
MainScene.luarequire("src.app.scenes.MainSceneEx")local MainScene = class("MainScene", function() return display.newScene("MainScene")end)function ...
分类:
其他好文 时间:
2015-03-05 14:16:32
阅读次数:
97
Behind the scenes in the computer's memory, color is always talked about as a series of 24 bits of information for each pixel. In an image, the color ...
分类:
其他好文 时间:
2015-03-02 12:35:12
阅读次数:
129