- 博客(17)
- 资源 (1)
- 收藏
- 关注
转载 Away3D-3 含有动画的模型的加载与设置
1 package 2 { 3 import away3d.textures.*; 4 import away3d.tools.helpers.*; 5 import away3d.animators.data.*; 6 import away3d.animators.nodes.*; 7 import...
2013-05-06 00:09:00
241
转载 Away3D-2 简易火焰粒子系统
1 package 2 { 3 import away3d.tools.helpers.*; 4 import away3d.animators.data.*; 5 import away3d.animators.nodes.*; 6 import away3d.animators.*; 7 impor...
2013-05-01 12:00:00
189
转载 Away3D-1 模型加载与光照
1 package 2 { 3 import away3d.materials.lightpickers.StaticLightPicker; 4 import flash.display.*; 5 import flash.events.*; 6 import flash.ui.*; 7 import...
2013-04-30 19:27:00
197
转载 Away3D-0 网页中的全屏
1 package 2 { 3 import away3d.entities.*; 4 import away3d.materials.*; 5 import away3d.primitives.*; 6 import away3d.utils.*; 7 import flash.display.*; 8 ...
2013-04-30 12:53:00
165
转载 LUA-3 String库
本文转自:http://www.cnblogs.com/whiteyun/archive/2009/09/02/1541043.html在string库中功能最强大的函数是:string.find(字符串查找)string.gsub(全局字符串替换)string.gfind(全局字符串查找)string.gmatch(返回查找到字符串的迭代器)这些函数都是基于模式匹配的。与其他脚本语...
2012-08-05 15:02:00
144
转载 LUA-2 lua中的全局(global)
lua中有一个全局的表,_G,这个表包含了所有的全局变量.例如:a = 123;d = {a,444};这样的两个变量实际上就会被lua存储到_G表中去.也就是说_G["a"]就是变量a._G["a"] = _G["d"];这样的语句和a=d;是完全一样的.当然,既然_G也是一个表,那么我们就可以设置_G表的__index等函数来达到控制_G表的访问权限了.当然我们也...
2012-08-05 14:21:00
1191
转载 LUA-1 Table中的Metatables和Metamethods
table是lua中的唯一的一个数据结构.而且,table中的数据可以是任意类型的,当然也可以是函数类型.例如:a = {};-->声明一个tablea[1] = function() print("a"); end; -->这样就给a[1]赋予了一个函数.也就是说,table里可以存储各种各样的东西.同时如果a[2] = a;-->这也是可行的...
2012-08-05 13:49:00
141
转载 LUA-0 Lua的基本语法
Lua的语法实际上和c的语法很接近,看起来也比较的简洁.(Lua5.1版本)Lua的关键字如下: and break do else elseif end false for function if in local nil not...
2012-08-04 13:19:00
275
转载 HGE-8 HGE的中文显示
HGE本身并不支持中文的显示,因此我使用由 微妙的平衡 大神提供的解决方案.大神提供的代码本来包含gfxfont.h和gfxfont.cpp文件,只需要将这两个文件添加到工程中即可使用.但是我实在太懒,为了避免每次都添加两个文件到工程中去,于是我擅自将cpp的代码全部移到了.h文件中并做了一些细微的改动.这样每次使用的时候就只需要将gfxfont.h引入工程就够了,当然我把这...
2012-08-02 20:04:00
238
转载 HGE-7 模拟太阳和月亮的运转
1 /* 2 ** Haaf's Game Engine 1.8 3 ** Copyright (C) 2003-2007, Relish Games 4 ** hge.relishgames.com 5 ** 6 ** hge_tut08 - The Big Calm 7 */ 8 9 10 // 复制"font2.fnt...
2012-08-01 16:39:00
386
转载 HGE-6 两千只兔子
1 /* 2 ** Haaf's Game Engine 1.8 3 ** Copyright (C) 2003-2007, Relish Games 4 ** hge.relishgames.com 5 ** 6 ** hge_tut07 - Thousand of Hares 7 */ 8 9 10 // 复制"font...
2012-08-01 16:11:00
174
转载 HGE-5 自定义控件
1 /* 2 ** Haaf's Game Engine 1.7 3 ** Copyright (C) 2003-2007, Relish Games 4 ** hge.relishgames.com 5 ** 6 ** Tutorial 06 - Creating menus 7 */ 8 9 // 文件名:menuitem.h,自定义控件类的声...
2012-08-01 15:52:00
343
转载 HGE-4 形变网格(DistortionMesh)
1 /* 2 ** Haaf's Game Engine 1.8 3 ** Copyright (C) 2003-2007, Relish Games 4 ** hge.relishgames.com 5 ** 6 ** hge_tut05 - Using distortion mesh 7 */ 8 9 10 // 复制"...
2012-08-01 14:23:00
298
转载 HGE-3 渲染目标(RenderTarget)
1 /* 2 ** Haaf's Game Engine 1.8 3 ** Copyright (C) 2003-2007, Relish Games 4 ** hge.relishgames.com 5 ** 6 ** hge_tut04 - Using render targets 7 */ 8 9 10 // 复制"p...
2012-08-01 12:25:00
328
转载 HGE-2 粒子系统
1 /* 2 ** Haaf's Game Engine 1.8 3 ** Copyright (C) 2003-2007, Relish Games 4 ** hge.relishgames.com 5 ** 6 ** hge_tut03 - Using helper classes 7 */ 8 9 10 // 从"pr...
2012-08-01 01:49:00
189
转载 HGE-1 图元和音效的使用
1 /* 2 ** Haaf's Game Engine 1.8 3 ** Copyright (C) 2003-2007, Relish Games 4 ** hge.relishgames.com 5 ** 6 ** hge_tut02 - Using input, sound and rendering 7 */ 8 9 ...
2012-08-01 00:46:00
208
转载 HGE-0 HGE引擎初始化
以下内容翻译自HGE自带的tutorial中的tutorial01. 1 /* 2 ** Haaf’s Game Engine 1.8 3 ** Copyright (C) 2003-2007, Relish Games 4 ** hge.relishgames.com 5 ** 6 ** hge_tut01 – Minimal HGE application...
2012-07-31 18:34:00
254
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人