开发者

How to move a bitmap object around a screen, and have multiple objects using the same bitmap

See above.

I need to move my bitmaps around a Form, or perhaps inside a PictureBox in a f开发者_开发百科orm. I have not been able to find any tutorials on this specific subject, and even the base GDI+ stuff is a bit confusing. I am looking for a simple and THOROUGHLY explained way on how to do this.

I am needing this for a rendering engine for an 8-bit game I am collaborating on.


GDI+ may not be the best option.

Sprites are generally drawn using "blitting". However, I've read (perhaps outdated?) claims that GDI+ blit operations are slow because they're not hardware accelerated.

If this is 8-bit game rendering, maybe you don't care - but maybe you could use SDL.NET.

In particular, try this tutorial. You should probably follow that first bit of advice (do the hello world first) but this is worth a skim through first to see if it fits.

EDIT - actually, there's not much tutorial there ATM. The main SDL docs (for the C version) are probably OK, but it's still a bit of a pain. Oh well.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜