2.2 前缓冲区(Front buffer)
通过QPinter来绘制tile实际上就是要绘制存储在前缓冲区里的pixmap。没有前缓冲区的tile意味着它不需要绘制。
2.3 后缓冲区(Backend Buffer)
后缓冲区充当tile内容的屏下(off-screen)后缓冲区并且可以采用Qt的画笔绘制到Qt widget上。在更新后缓冲区的过...
分类:
其他好文 时间:
2015-03-03 01:13:33
阅读次数:
255
一、通知形式 在windowsphone系统中,通知有很多中形式,如下图(Tile磁贴在前一博文已复习过,Badge形式与tile类似)1、Toast它主要是利用xml文件来编写的,xml代码如下:1 2 3 4 headline text 5 body ...
分类:
其他好文 时间:
2015-02-28 18:17:48
阅读次数:
171
一、前言 动态磁贴在WindowsPhone8.1和Windows8.1都是其特色,有人喜欢有人讨厌,不过我觉得还是挺好的,可以让使用者很快知道App内的内容和吸引使用者打开App。下面来学习下怎样添加动态磁贴,其实挺简单的。二、磁贴的模板(tile's templates) windows8......
分类:
其他好文 时间:
2015-02-25 16:55:57
阅读次数:
190
Tiled是款不错的地图编辑器,不过快捷键真是隐蔽啊,不看github上得wiki根本不知道,用的过程中查英文文档总是觉得慢,所以翻译成了中文。通用右键点击图块(tile):复制图块到图章刷(拖动可以复制更大的区域)Ctrl+鼠标滚轮:缩放图块集或地图Ctrl+加号/减号:缩放地图Ctrl+0:调整...
分类:
其他好文 时间:
2015-02-16 06:46:16
阅读次数:
215
Problem Description
The 15-puzzle has been around for over 100 years; even if you don't know it by that name, you've seen it. It is constructed with 15 sliding tiles, each with a number from 1 to 15 on it, and all packed into a 4 by 4 frame with one tile m...
分类:
编程语言 时间:
2015-02-15 09:29:04
阅读次数:
1023
【唠叨】还记得我们小时候玩的小霸王里面的游戏吗?大部分都是基于Tile地图的游戏,如坦克大战、冒险岛、魂斗罗、吞食天地等。而在手游中,基于瓦片地图的游戏也很常见。如:《保卫萝卜》。瓦片地图有专门的地图编辑器:TiledMapEditor。先给大家看个酷炫的图吧。此图来自:htt..
分类:
其他好文 时间:
2015-02-11 09:26:05
阅读次数:
389
概述
在游戏中常常会有丰富的背景元素,如果直接使用大的背景图实现,这会造成资源浪费。TileMap就是为了解决这问题而产生的。Cocos2d-x支持使用Tile地图编辑器创建的TMX格式的地图。
Cocos2d-x为我们提供了TMXTileMap和TMXLayer两个类来处理瓦片地图。通过使用TMXTileMap和TMXLayer,我们可以很方便的加载TMX格式的地图文件,获取地图上的...
分类:
其他好文 时间:
2015-02-07 16:01:16
阅读次数:
142
Problem Description
Consider the problem of tiling an n×n chessboard by polyomino pieces that are k×1 in size; Every one of the k pieces of each polyomino tile must align exactly with one of the ch...
分类:
其他好文 时间:
2015-01-29 09:38:32
阅读次数:
140
DescriptionThere is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a...
分类:
其他好文 时间:
2015-01-27 21:43:01
阅读次数:
170
There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he c...
分类:
其他好文 时间:
2015-01-20 13:31:48
阅读次数:
148