摘要: ROFL. Well, at least technically, it is. You don't get to see yourself, you only shoot at enemies. In some test version I also tried to scale the aliens to give a feeling of depth and them coming from far away, but it's hard to shoot small sprites on Android using your finger, so I gave up on the idea. 阅读全文
posted @ 2013-11-04 22:01 北漂梧桐 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://www.cnblogs.com/xuekai-to-sharp/p/3407402.html在clr var c#一书中,作者描述当用sealed修饰类时,可以提高系统性能而且建议大家也养成用sealed来修饰类的习惯。由于对性能二字比较敏感,所以本文先测试一下用sealed分别修饰和不修饰类时,new1亿次的时间,然后说一下我的看法,如果有更好的测试方法,欢迎大家在此交流。 首先上我的测试代码:class Program{ static void Main(string[] args) { for (int j = 0; j < 10; j... 阅读全文
posted @ 2013-11-04 21:24 北漂梧桐 阅读(205) 评论(0) 推荐(0) 编辑