自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(107)
  • 资源 (5)
  • 收藏
  • 关注

原创 Brainiac Designer

http://blog.csdn.net/l_jinxiong/article/details/45767383 http://blog.csdn.net/l_jinxiong/article/details/45767731 http://www.ithao123.cn/content-8157442.html

2015-12-30 20:17:55 630

原创 书-Programming Game AI by Example

http://edu.gamfe.com/tutor/d/10141.html http://download.csdn.net/detail/yinfei1224/1212908

2015-12-30 20:15:17 976

原创 app annie

http://www.199it.com/archives/tag/app-annie

2015-12-30 20:11:34 425

原创 js模拟php的shuffle函数,用来打乱一维数组

Array.prototype.shuffle = function() { var len = this.length; var i = len; while (i--) {  var p = parseInt(Math.random() * len);  var t = this[i];  this[i] = this[p];  this[p] = t; }

2015-12-30 20:08:54 423

原创 graviy默认y如果不声明

2015-12-30 20:06:16 409

原创 call

2015-12-30 20:03:39 273

原创 getEntitiesByType( EntityPlayer )[0];

update: function() {   // Update all entities and BackgroundMaps  this.parent();   // screen follows the player  var player = this.getEntitiesByType( EntityPlayer )[0];  if( player ) {

2015-12-30 20:01:01 344

原创 随机选择出口

var exit_spawns = this.getEntitiesByType(EntityExitSpawn).shuffle();    for (var j = 0; j      if (j === 0) this.exit = this.spawnEntity(EntityExit, exit_spawns[j].pos.x, exit_spawns[j].pos.y); 

2015-12-30 19:58:23 332

原创 数组取出使用某一个entiti

数组取出使用某一个entiti

2015-12-30 19:55:46 327

原创 get by name

this.spawnEntity(EntityButton, 20, 170, {    img: "credits.png",    name: "creditsButton",    size: {     x: 77,     y: 32    }   });          var continueButton = this

2015-12-30 19:53:08 402

原创 '+n+'

2015-12-30 19:50:30 385

原创 大屏幕自适应

2015-12-30 19:47:53 508

原创 .sortEntities()is called this array is sorted by the entities.zIndex.

.sortEntities() is called this array is sorted by the entities .zIndex.

2015-12-30 19:45:15 384

原创 逐渐变暗

2015-12-30 19:41:35 268

原创 ||1

2015-12-30 19:38:58 348

原创 distanceto

2015-12-30 19:36:21 804

原创 timer提高效率

碰到才开始timer

2015-12-30 19:33:43 414

原创 敌人跟随

2015-12-30 19:31:06 276

原创 临时变量提高效率

2015-12-30 19:28:28 369

原创 挤死collideWith: function(other, axis) { if (other.touches(this)) { other.kill(); } }

collideWith: function(other, axis) {   if (other.touches(this)) {    other.kill();        }   }

2015-12-30 19:25:50 221

原创 如果flip,y方向的offset不能太大

2015-12-30 19:23:12 248

原创 line

http://www.open-open.com/lib/view/open1402479198587.html使用Node.js+Socket.IO搭建WebSocket实时应用  到blog                  nodejs  https://cnodejs.org

2015-12-30 19:17:54 249

原创 level改bake

2015-12-30 19:15:16 208

原创 flip.X在update才行

2015-12-30 19:11:36 357

原创 shoot按钮button居中

margin auto必须的

2015-12-30 19:08:58 615

原创 错误

如果'replace' of null就是因为有东西entities或者level复制了副本,但是没有使用 index注意 button之类没有资源引入 容易出不来  地形没有指定图片 有声音文件引入和play全部删除 浏览器缓存清除了为毛也没报错换浏览器 少写个.png

2015-12-30 19:06:20 183

原创 MULTTOUCH

2015-12-30 19:03:43 210

原创 真实速度

vel: {x: -200, y: 0}, //real: 1s:181px 1s   update:62次

2015-12-30 19:01:03 277

原创 .alpha debris

this.currentAnim.alpha = this.timer.delta().map( -4, 0, 1, 0);

2015-12-30 18:58:25 212

原创 preload image

preload image tile  避免卡

2015-12-30 18:55:47 564

原创 防止二维数组出错

2015-12-30 18:53:09 238

原创 if (this.getEntitiesByType('EntityPlayer').length < 1)

if (this.getEntitiesByType('EntityPlayer').length

2015-12-30 18:50:31 223

原创 屏幕晃动

this.screen.y +=this.fuhao ;      this.screen.x +=this.fuhao ;   if(this.shaketimer.delta()>0) {   this.fuhao=0-this.fuhao;  this.shaketimer.reset() }

2015-12-30 18:47:53 302

原创 handleMovementTrace

handleMovementTrace: function(res) {   this.parent(res);   if (res.collision.x || res.collision.y) {    this.timer = this.timer || new ig.Timer(3);   }  }

2015-12-30 18:45:16 179

原创 currentAnim.frame === 3) this.kill();

if (this.currentAnim.frame === 3) this.kill();

2015-12-30 18:41:34 222

原创 var player = ig.game.getEntitiesByType( EntityPlayer )[0];

var player = ig.game.getEntitiesByType( EntityPlayer )[0];

2015-12-30 18:38:56 202

原创 scrollScreen

// scrollScreen: function() {        // if (this.player.pos.x > (ig.game.collisionMap.width * ig.game.collisionMap.tilesize - ig.system.width / 2)) {        // this.screen.x = ig.game.collisionMap

2015-12-30 18:36:18 389

原创 friction就是走了会停下,必须一直按键才能一直走

friction就是走了会停下,必须一直按键才能一直走

2015-12-30 18:33:40 290

原创 编辑器里面不出现的entity wmignore

_wmIgnore:true,

2015-12-30 18:31:01 183

原创 if( !ig.global.wm )只产生一次就够了

/* Add Health Bar */  if( !ig.global.wm )        {        ig.game.spawnEntity(EntityHealthBar,this.pos.x , this.pos.y,{ Unit: this });        }

2015-12-30 18:28:23 201

php独家笔记

php笔记note 独家

2013-07-29

c++mfc答案

c++mfc答案 mfc的文档

2013-07-03

C++题目答案

C++题目答案非常简单 而且有详尽的解释

2013-07-03

大学物理课件资料复习

大学物理大学物理大学物理大学物理大学物理大学物理大学物理大学物理大学物理大学物理大学物理

2013-04-21

常用反三角函数公式

常用反三角函数公式常用反三角函数公式常用反三角函数公式常用反三角函数公式常用反三角函数公式常用反三角函数公式常用反三角函数公式常用反三角函数公式常用反三角函数公式常用反三角函数公式常用反三角函数公式常用反三角函数公式

2012-11-18

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除