• What is a good 2D game framework?
    17 replies, posted
  • I have started building a 2D game, and would like to know what the programmers of facepunch use as their 2D framework, as I cannot find one that I stay happy with.
  • [QUOTE=decamonos;34704741]I have started building a 2D game, and would like to know what the programmers of facepunch use as their 2D framework, as I cannot find one that I stay happy with.[/QUOTE] ...what exactly makes you not happy with any of them?
  • Depends on the language, The good ones I've found are C# SFML.net SDL.net C++ SFML XNA is good for cross platform support but the 2d drawing is really limited, it's really for 3D.
  • Why would you recommend SDL.net for C# but not SDL for C++? this is very backwards
  • [QUOTE=Vbits;34706675]Depends on the language, The good ones I've found are C# SFML.net SDL.net C++ SFML XNA is good for cross platform support but the 2d drawing is really limited, it's really for 3D.[/QUOTE] what do you mean with "limited"?
  • I wouldn't say XNA is limited for 2D drawing, you can use stuff like GraphicsDevice.DrawUserPrimitives and so on to draw arbitrary polygons, SpriteBatch.DrawString for strings and SpriteBatch.Draw for textures. It might be lacking in some ares but it's still more than enough for most games and anything it does lack can be done using the Direct3D interfaces.
  • [QUOTE=Chris220;34708746]I wouldn't say XNA is limited for 2D drawing, you can use stuff like GraphicsDevice.DrawUserPrimitives and so on to draw arbitrary polygons, SpriteBatch.DrawString for strings and SpriteBatch.Draw for textures. It might be lacking in some ares but it's still more than enough for most games and anything it does lack can be done using the Direct3D interfaces.[/QUOTE] that's what I thought, xna provides you spritebatch which is quite powerful on it's own, but if you need more you can still go deeper to lower level function and do whatever you want basically.
  • SDL works for both C and C++ but is not object oriented. SFML is SDL with object oriented in mind. You can also use cocos2d if your looking into 2d iPhone game development.
  • [QUOTE=zoiijoue;34826129]Why can you recommend SDL.internet for C# although not SDL for C ?[/QUOTE] Because SDL is wrapped into an object-oriented library for C#.
  • [QUOTE=zoiijoue;34826129]Why can you recommend SDL.internet for C# although not SDL for C ?[/QUOTE] SDL.Net doesn't mean SDL.internet Unless I understood that wrong.