List list = Arrays.asList(new Point(1, 5), new Point(2, 3),new Point(2, 8), new Point(9, 13));int sum = list.get(0).y - list.get(0).x,currenty=list.ge...
分类:
其他好文 时间:
2014-06-28 19:25:36
阅读次数:
183
A robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The robot can only move either down or right at any point ...
分类:
其他好文 时间:
2014-06-28 16:02:43
阅读次数:
214
XNA 中的 Game 类,是所有神奇事情发生的地方。几乎游戏中所有的事情都由它来操办。 它是项目中的王者,让我们深入窥探一番: 虚方法 Game 本身从众多其它地方继续了许多能力才能完成游戏中的事情。因而它必然会重写一些方法, 以更好地完成任务。我们已经看到了一些: Initialize ,如你所...
分类:
其他好文 时间:
2014-06-28 13:55:08
阅读次数:
186
One Person GameTime Limit:1 Second Memory Limit:32768 KB Special JudgeThere is a very simple and interesting one-person game. You have 3 dice, namelyD...
分类:
其他好文 时间:
2014-06-24 10:08:41
阅读次数:
251
如果一个页面的内容呈现,需要根据url上传递的参数来进行渲染。很多时候可能是这样子写:xxx.com/xx?c=x&m=x& t=..,而我们看到的url往往是这样子的(以新浪微游戏的咖啡恋人为例) game.weibo.com/ilovecoffee….这种URL设计看上去比前一种更好一点:)如果...
分类:
Web程序 时间:
2014-06-24 09:19:23
阅读次数:
279
相信大家对highchats这个图表控件并不陌生,最近在项目中用到它,但是某些字段需要显示为小数点,顾查找资料文档发现下面两个方式可以实现:初始化时候添加如下两个参数tooltip:{ formatter:function(){ return''+this.point.name+': '+Math....
分类:
其他好文 时间:
2014-06-23 00:54:47
阅读次数:
252
广义地说,Unity有2种光源。1.动态光源 2.Backed Lighting1.动态光源就是实时计算的。只要摆光源就可以了2.Backed Lighting提前处理好光照贴图。贴在物体上。Point: 角度无关紧要Directional: 位置无关紧要Spot: 角度和位置都有影响Area (B...
分类:
其他好文 时间:
2014-06-23 00:54:24
阅读次数:
258
//variable.h 定义该程序用到的全局变量#ifndef _VARIABLE_H#define _VARIABLE_H#define GAME_BOARD_WIDTH 50#define GAME_BOARD_HEIGHT 64#define PIXEL_PER_CUBE_X...
分类:
其他好文 时间:
2014-06-21 08:24:31
阅读次数:
236
微软近期Open的职位:ATG Engineer - GeneralistReady to work on some of the most advanced hardware on the planet and solve mind-bending game development problem...
分类:
其他好文 时间:
2014-06-20 23:50:25
阅读次数:
391
表达式求值/*** 功能:表达式求值(0到9)* 时间:2014年6月15日08:02:31* 作者:cutter_point*/#include#include#include#includeusing namespace std;stack intStack; //存放数值的栈st...
分类:
编程语言 时间:
2014-06-18 00:06:54
阅读次数:
234