使用文本文件中的图块创建2D Sidescroller地图 [英] Creating a 2D sidescroller map with tiles from a text file

查看:62
本文介绍了使用文本文件中的图块创建2D Sidescroller地图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个学校项目,需要创建2D侧滑游戏,但是我需要一个2D地图,我的角色可以左右移动,但我不确定如何创建 使角色沿着此方向移动,并使系统 从先前存在的文本文件中绘制地图.有人可以帮我解决这个问题吗?预先非常感谢.

I am doing a school project where I need to create a 2D sidescroller game, however I  need a 2D map where my character can move left, right, and jump, but I am unsure as to how to create the  make the character move along this, and make the system draw a map from a preexisting text file. Can somebody please help me with this issue? Thank you very much in advance.

推荐答案

好吧.到目前为止你做了什么?如果不是太大,请向我们显示您的代码.

Well that is quite a bit. What have you done so far? Show us your code if not too big.

我建议采取更小的步骤.即如何读写文件.如何绘制.如何绘制文件.如何在您绘制的文件等内部移动播放器.您已经知道什么?

I would suggest smaller steps. ie How to read and write a file. How to draw. How to draw the file. How to move players inside the file you drew etc. What do you already know?


这篇关于使用文本文件中的图块创建2D Sidescroller地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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