Tekkaman

导航

 

2014年1月19日

摘要: 【Working with Sprites】 1、An SKSpriteNode object can be drawn either as a rectangle with a texture mapped onto it or as a colored, untextured rectangle... 阅读全文
posted @ 2014-01-19 23:18 Tekkaman 阅读(323) 评论(0) 推荐(0)
 
摘要: 【SpriteKitCommonUse】 1、SKView中提供了显示FPS和NodeCount(当前view)的方法,如下: 展现一个scene:1 - (void)viewWillAppear:(BOOL)animated2 {3 HelloScene* hello = [[Hel... 阅读全文
posted @ 2014-01-19 23:09 Tekkaman 阅读(270) 评论(0) 推荐(0)
 
摘要: 【SpriteKit】 Sprite Kit provides a graphics rendering and animation infrastructure that you can use to animate arbitrary textured images, or sprites。S... 阅读全文
posted @ 2014-01-19 21:58 Tekkaman 阅读(349) 评论(0) 推荐(0)
 
摘要: 【计算几何复习要点】 1、向量加法的几何含意: a+b的释意为:a的尾连上b的头,新建一条从a的尾指向b的头的向量。 2、向量减法的几何含意: a-b的释意为:尾部相连,新建一个从b的头指向a的头的向量。 3、点积,内积: 对于向量a(Xa,Ya)、向量b(Xb,Yb),a与b的点积为:Xa*Xb+ 阅读全文
posted @ 2014-01-19 20:11 Tekkaman 阅读(549) 评论(0) 推荐(0)
 
摘要: 【左手坐标系&右手坐标系】 左手坐标系的正方向。从原点看到某轴正向时,逆时针即为正方向。相反地,从某轴正方向看看原点时,为顺时针即为正方向。 如果判断左手坐标系下叉积的方向。如果A、B向量首尾相连为顺时针,则叉积方向为从屏幕指向自己;否则相反。 阅读全文
posted @ 2014-01-19 19:56 Tekkaman 阅读(1119) 评论(0) 推荐(0)
 
摘要: 【iOS's GCD Note】 1、默认有四种全局concureent queue,如下: 通过以下函数来引用: 2、官方文档上并发队列有3种,实际上main就是serial。 1)serial,用一个线程来按序取task执行。so task的顺序可以保证。 2)concurret... 阅读全文
posted @ 2014-01-19 19:44 Tekkaman 阅读(291) 评论(0) 推荐(0)