Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Starting C++ game. Need some help.


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
9 replies to this topic

#1 KuHS   Members   -  Reputation: 100

Like
0Likes
Like

Posted 16 August 2011 - 01:55 AM

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. :)

Sponsor:

#2 RiemannZetaFunction   Members   -  Reputation: 104

Like
0Likes
Like

Posted 16 August 2011 - 02:28 AM

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.

#3 0Circle0   Members   -  Reputation: 343

Like
1Likes
Like

Posted 16 August 2011 - 05:15 AM

C++ has some good libraries. SDL, Allegro and SMFL are ones that come to mind. All easy to learn and use.

Sprite Creator 3 VX & XP

WARNING: I edit my posts constantly.


#4 Serapth   Crossbones+   -  Reputation: 5978

Like
1Likes
Like

Posted 16 August 2011 - 06:34 AM

I put together this link with a summary of tools, books and resources for new C++ game developers.

#5 KuHS   Members   -  Reputation: 100

Like
0Likes
Like

Posted 16 August 2011 - 07:32 AM

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.

#6 rip-off   Moderators   -  Reputation: 9498

Like
0Likes
Like

Posted 16 August 2011 - 07:40 AM

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?

#7 KuHS   Members   -  Reputation: 100

Like
0Likes
Like

Posted 16 August 2011 - 07:58 AM

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.

#8 0Circle0   Members   -  Reputation: 343

Like
1Likes
Like

Posted 17 August 2011 - 05:50 AM

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.

Sprite Creator 3 VX & XP

WARNING: I edit my posts constantly.


#9 lukeymoo   Members   -  Reputation: 106

Like
0Likes
Like

Posted 24 August 2011 - 07:47 PM

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.

#10 Nice Try   Members   -  Reputation: 104

Like
0Likes
Like

Posted 25 August 2011 - 03:31 PM

From the information I gathered from these posts, it sounds like your game won't be highly graphically intensive.

Because of this, I would not suggest coding in C++. Why? You do not need to manage memory that much if at all if the game is what I'm thinking it will be. I would suggest C# or Python/Pygame. Or even HTML5. But, it's your game and your code, use whatever language you want. This is just my suggestion. You will wind up having way more code than a game like this will need if you code in C++, and for little to no benefit.

Your question about what methods to use when drawing certain things is a bit confusing. Here's my answer:

If you're drawing simple shapes, draw them in code. There are plenty of libraries for all languages that will let you draw 2D shapes with ease, and their documentation will explain exactly how to do it.

If you're creating animations for 2D objects, use sprite sheets. Primitive fighting games used sprite sheets for animations. Actually, almost ALL primitive games use sprite sheets for animations. Even new games with crazy 3D graphics use sprite sheets for things like particle effects. They are extremely efficient.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS