滚动背景 [英] Scrolling Background

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

问题描述

我正在像旧的街机游戏一样制作侧滚动游戏.如果有人可以给我一些代码来使我的背景从左向右移动,我将无法使背景滚动.我正在使用VB8,并且我是编码的新手,因此请使代码易于理解.

Hi I am making a side scrolling game for like the ones in the old arcade games. I am having some trouble making the background scroll if anyone could give me some code to make my background move from left to right. I am using VB8 and I am a novice at coding so please make the code easy to understand.

推荐答案

也许您应该考虑"answer"一词的含义在按下它来回复自己之前.要移动背景,只需从其他起点绘制背景,以使其看起来移动即可.您最好使用XNA,Winforms并不是适合编写游戏的框架,由于缓冲问题或在其他情况下您使用错误的工具来完成游戏,因此游戏有时会看起来很糟糕.
Perhaps you should consider what the word ''answer'' means before pressing it to reply to yourself. To move your background, just draw it from a different starting point, so that it appears to move. You''d do better to use XNA, Winforms is NOT a framework suitable for writing games, your game will look bad at some point due to buffering issues, or something else where you''re just using the wrong tool for the job.


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

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