最近有一个游戏叫围住神经猫,报道说是使用html5技术来做的。 html5的跨平台的优良特性很不错,对于人手不足,技术不足,选用html5技术实现跨平台的梦想真是不错。
最近在看coco2d-js这个跨平台游戏开发框架,很不错,写了一个demo程序供大家参考。
/**
* Created by caicai on 14-7-27.
*/
var Ball = cc.Sprite.exten...
分类:
Web程序 时间:
2014-07-27 23:49:39
阅读次数:
448
Swift操作符可以自行定义, 只需要加上简单的标志符即可.
@infix 中置运算. 如+,-,*,/运算
@prefix 前置运算. 如-
@postfix 后置运算. a++, a--
@assignment 赋值运算. +=, -=, --a, ++a
//
// main.swift
// SwiftBasic
//
// Created by yao_yu on 14-...
分类:
移动开发 时间:
2014-07-27 23:39:19
阅读次数:
388
IOS开发数据库篇—SQLite模糊查询一、示例说明:本文简单示例了SQLite的模糊查询1.新建一个继承自NSObject的模型该类中的代码: 1 // 2 // YYPerson.h 3 // 03-模糊查询 4 // 5 // Created by apple on 14-7-27. 6...
分类:
移动开发 时间:
2014-07-27 22:32:49
阅读次数:
413
【Render Texture】 Render Texturesare special types ofTexturesthat are created and updated at runtime. To use them, you first create a new Render Textu....
分类:
其他好文 时间:
2014-07-27 21:54:49
阅读次数:
227
题意:给你n,k,问你是否满足 所有偶数项减前一项绝对值的和 - 所有偶数项减前一项和的绝对值 = 2×k 解题思路:因为K 的范围适合所以就直接构造了解题代码: 1 // File Name: 359b.cpp 2 // Author: darkdream 3 // Created Time: ....
分类:
其他好文 时间:
2014-07-26 16:50:31
阅读次数:
273
最终效果图:
方式1,用字典
BeyondViewController.h
//
// BeyondViewController.h
// 10_tableView
//
// Created by beyond on 14-7-25.
// Copyright (c) 2014年 com.beyond. All rights reserved....
分类:
移动开发 时间:
2014-07-26 15:23:23
阅读次数:
312
最终效果图:
ViewController.h
//
// ViewController.h
// PinYin4Objc汉字转拼音演示demo
//
// Created by beyond on 14-7-26.
// Copyright (c) 2014年 com.beyond. All rights reserved.
//
#import...
分类:
移动开发 时间:
2014-07-26 15:08:40
阅读次数:
291
//
// main.swift
// helloSwift
//
// Created by cyteven on 14-7-23.
// Copyright (c) 2014年 cyteven. All rights reserved.
//
import Foundation
//打印字符串
println("Hello, World!")
//变量定义...
分类:
其他好文 时间:
2014-07-26 15:06:50
阅读次数:
215
/**
*?Created?by?YCXJ-wanglihui?on?2014/7/25.
?*?@module?utils
*/
‘use?strict‘;
/**
?*?@class?日历类?Calendar
?*?@constructor
?*?@param?{Number}?year
?*?@param?{Number}?mon...
分类:
编程语言 时间:
2014-07-26 03:36:07
阅读次数:
349
最终效果图:
BeyondViewController.h
//
// BeyondViewController.h
// 7_scrollView大图展示
//
// Created by beyond on 14-7-24.
// Copyright (c) 2014年 com.beyond. All rights reserved.
//
#import...
分类:
移动开发 时间:
2014-07-26 02:49:16
阅读次数:
217