简体   繁体   中英

faster and better way of making 2d platform?

I tried to make a 2d platform with WPF by using various shapes classes, such as ellipse and rectangle. What I learned is that these shapes are not the most amazing resources i can use. They are slow. I want to have many different objects such as bullet enemy, hero, blocks and so on. So i concluded using canvas tool is not the best option I have. I would like to know the other faster ways of rendering images.

DirectX 2D and XNA 2D are high-level interfaces (compared to controlling the graphic adapters directly) that allow you to create fast 2D and 3D graphics animations. Tutorials, which helped me a lot, are Riemer's 2D & 3D XNA Tutorials .

You should have a look for a game engine instead of coding all the graphics related stuff by yourself. Have a look at this list:

http://content.gpwiki.org/index.php/Game_Engines

Also if you want to go more low level and only intereste in the drawing aspects (no physics engine etc.) SharpDX and SlimDX might be options because you can call them through c#.

http://slimdx.org/

http://code.google.com/p/sharpdx/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM