摘要: Flash调用Lua脚本: 1Flash调用Lua脚本: 2Flash调用Lua脚本: 3Flash调用Lua脚本: 4有了前几章的积累:现在可以给大家展现一下完整的项目了。这是一个平台的游戏界面接下来看看脚本是怎么样写的:具体可以看这里的完整演示:http://rc.qzone.qq.com/100641772这个机器人AI仿真引擎。使用Flash作为宿主,Lua作为脚本。与通常不同:利用脚本编程,设计AI智能,使机器人自主行动。这是一个有趣的编程平台,使用几行简单的代码,就能够创建一个活生生的机器人。 (1)可以用一种直观的方式学习Lua语言,而免去安装配置环境的麻烦,打开输出窗口,就是一 阅读全文
posted @ 2012-10-30 11:52 向恺然 阅读(2228) 评论(0) 推荐(1) 编辑
摘要: for(int i=1;isetDelayPerUnit(0.2f); log("%d",sizeof(str[0])); char t = 'q'; log("char %d",sizeof(t)); float a = 10.30; ... 阅读全文
posted @ 2014-06-04 17:07 向恺然 阅读(4607) 评论(0) 推荐(0) 编辑
摘要: //#include #pragma once#include "cocos2d.h";#include "iconv\include\iconv.h"//#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) // 编译链接的时候指定静态库 //#pragm... 阅读全文
posted @ 2014-06-04 17:02 向恺然 阅读(1517) 评论(0) 推荐(0) 编辑
摘要: 在导入 cocos-ext.h 时项目会报错。需要在 Additional Include Directories 中增加 $(EngineRoot) 并置顶(试验,不置顶也可以)如果找不到当前目录文件,需要增加 .\ 阅读全文
posted @ 2014-05-16 15:39 向恺然 阅读(200) 评论(0) 推荐(0) 编辑
摘要: (1)游戏类型:横版过关a.轻度游戏,中低难度,更强调游戏的愉悦感,着力设计打击感。b.增加叙事因素,除了动词之外,增强代入感,但不挖R坑。c.增强目标性,过三关。d.增加交互性(2)用户的问题a.画面华丽,打击感若,节奏感差,堆光效b.无R寸步难行c.持续性差d.不遗余力地奖励玩家(不仅仅是金币这些,也包括动画,效果等等)最重要的就是有用户,没有用户就不能存在(3)收费模式a.免费进入b.道具收费c.新开关卡收费d.异步交互收费(4)核心价值:一款愉快的,手感好,有打击感的横版轻度动作游戏(5)游戏的口碑宣传 阅读全文
posted @ 2014-03-26 10:50 向恺然 阅读(268) 评论(0) 推荐(0) 编辑
摘要: There is an old Spanish Proverb which states, "Tomorrow is often the busiest day of the week". How many times have we put off our dreams until tomorrow? I’d say, way too many. Our dreams should not, and cannot wait. We have to go for them now! Here’s why.有句古老的西班牙谚语:明天常常是一周中最忙碌的一天。有多少次我们曾把梦 阅读全文
posted @ 2013-12-16 14:56 向恺然 阅读(202) 评论(0) 推荐(0) 编辑
摘要: var url2:String = "http://thirdapp0.qlogo.cn/qzopenapp/fa5d80ebf9fc89aaa1d7ddb0e1b861e58d77b409f0f85a1b/50"; var urlrequest2:URLRequest = new URLRequest(url2); var lo2:Loader = new Loader(); lo2.contentLoaderInfo.addEventListener(Event.COMPLETE, funct... 阅读全文
posted @ 2013-11-08 16:46 向恺然 阅读(255) 评论(0) 推荐(0) 编辑
摘要: package fwm.byte100.composeBmp{ import com.sociodox.theminer.data.InternalEventEntry; import flash.display.Bitmap; import flash.display.Loader; import flash.display.Sprite; import flash.events.Event; import flash.events.MouseEvent; import flash.net.FileReference; import flash... 阅读全文
posted @ 2013-11-04 18:08 向恺然 阅读(1081) 评论(0) 推荐(0) 编辑
摘要: package fwm.byte100.goodsMode{ import flash.display.Sprite; import fwm.assist.bit101.components.Label; /* description: * author: fwm * date: 2013-10-16 下午9:35:15 * project: ByteGame100 * http://www.byte100.com * copyright 2013~2015 by lzn */ public class KlineBg extends Sprit... 阅读全文
posted @ 2013-10-16 23:38 向恺然 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 8.28.13早来了几十分钟,学习一下神器。VIM(1)Esc :切换模式 i Insert模式(2)q! :不保存退出(3)a :光标后插入(4)o:行前插入新行(5)O:行后插入新行(6)cw:替换光标位置起到单词结尾的字符(7) hjkl :移动光标(8)u: Undo 阅读全文
posted @ 2013-08-28 09:09 向恺然 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-08-16 15:20 向恺然 阅读(445) 评论(0) 推荐(0) 编辑

我必须说的是:我崇尚开源,但鄙视剽窃。本博客所有引用的图片,文章,和代码,均只作为研究学习使用,不作为商业应用。如果我无意中冒犯了您,请发消息留言,我将立即删除。