等距的精灵 [英] Isometric Sprites

查看:194
本文介绍了等距的精灵的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是一个愚蠢的问题,但我被困住,不能通过它。我正在做一个等距游戏,我有我的地图建立使用瓷砖,我只是按照本教程来建立地图, http://www.binpress.com/tutorial/creating-a-city-building-game-with-sfml/137 。但现在我不知道如何添加字符精灵。我必须添加这些精灵使用瓷砖,或者我只是把画面的位置。

This might be a stupid question but I'm stuck and can't get passed it. I'm making a isometric game and I have my map built using tiles, I just followed this tutorial to build the map, http://www.binpress.com/tutorial/creating-a-city-building-game-with-sfml/137. But now I don't know how to add character sprites. Do I have to add these sprites using tiles as well or do I just draw the the sprites into position of the screen. Any help would be much appreciated.

推荐答案

至于我可以从引擎中得知,只需遵循贴图和动画引导和绘制动画到屏幕后,你画了瓷砖。这不是一个复杂的引擎,所以你只有工作的2D精灵绘制到屏幕上(3D效果只是画​​家的算法的技巧,使其工作...没有z轴从教程指示)

As far as I can tell from the engine, just follow the "Textures and Animations" guide and draw the Animation to the screen after you have drawn the tiles. This isn't a complicated engine, so you are only working with 2D sprites being drawn to the screen (the 3D effect is merely tricks of painter's algorithm to make it work...there is no z-axis from what the tutorial indicates)

这篇关于等距的精灵的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆