• Advertisement
Sign in to follow this  

Starting C++ game. Need some help.

This topic is 2435 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi. I have few ideas about my 'new' game. It hasn't been started yet because i want to know the best solution for starting it. The game would look simple fighter, stick figures, animations, white/black colours. That's all what i want for starting. I have four years experience with Pawn, some weeks with Java and C++. I think i know C++ basics kinda good, but as you see im not really good at programming language terms. I would prefer to use C++ language. And my questions are: what's the most suitable 2D graphics (maybe psyhics, animation) engine would be? And how to do animations? Basiclly i imagine the theory of moving pictures, but that's crazy idea. I think there's easier way to do it. Thank you for reading. :)

Share this post


Link to post
Share on other sites
Advertisement
You can look at SMFL for drawing your game. It's very easy to learn and use 2D library. As for the animation you could just use a series of images and have a controller class that draws the correct frame of animation that you require. Always remember google is your friend.

Share this post


Link to post
Share on other sites
Thanks for answers. Just got started working with SFML. Now how about animations? I think i would do it like moving lines, circles... is it worth to do so or it's better to use images? Btw. Later i'll need to detect collision, hit spots, walking, jumping etc.

Share this post


Link to post
Share on other sites
I don't understand your question. If your art style is primitive shapes, then use moving primitive shapes. If your art style is animated pictures, then use images. For other art styles, you might render a 3D scene from a 2D perspective.

What is your art style?

Share this post


Link to post
Share on other sites
I want to draw shapes and move them like a whole sticky fighter. But im not sure it's the best way to do it.

Share this post


Link to post
Share on other sites
You'll find that creating a character(sprite) sheet with each stage of the animation will be easier than calculating the movements and where to draw each line on the fly. Not to mention a lot less lines of code.

Share this post


Link to post
Share on other sites
Create a sprite sheet for the character with all it's frames, use a timer, and variable to animate it at good speeds, I don't know how to do this in SFML, but I've done it in Allegro.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement