Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Starting 2D Game Creation


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
6 replies to this topic

#1 Justin Wells   Members   -  Reputation: 100

Like
0Likes
Like

Posted 17 April 2012 - 12:12 PM

Hey everyone,

I know that this forum runs rampant with these sort of posts, and I've read through many of them to no avail, but I thought I had a few more specific questions that I was just wondering if you could help me with. I am a computer science major in college and know console c++ programming fairly well. I am interested in creating a 2D Strategy/RPG game and was wondering what SDK I should use.

DirectX
I have been messing around with DX9 but I'm not sure whether I should be using textured quads or Sprites. The only thing I really need is the ability to do overlay FX and tile tinting. I think the biggest problem that I'm running into is the fact that whenever I start blitting Sprites onto the screen using Draw, it renders them incredibly awkwardly. They are smashed or skewed. I'm using power of 2 sprites. 16x16 to be exact. Also, I tried doing a matrix transformation of 2x on my sprite and it made it awkwardly blurry.. (which is not at all wanted). If you guys could be of help with any of this (via board, email or messenger) just message me on here or leave a post.

OpenGL
I'm not opposed to the idea of using OpenGL if it would be more easy to adapt to the blitting procedures since this is my first game. This is more of an indie side-project-type thing that will most likely never go online, but if-someday-I wanted to make it have fairly simple online features, would DirectX be a more adequate choice?

That other SDK that starts with the letter 'S'
I believe it was called SMFL or something to that extent. If this would be a more appropriate library, I'd be glad to look into it. I don't want something that has zero control over the sprites, though.

I really appreciate you guys reading this and any help will be appreciated.

Thanks,
Justin

Sponsor:

#2 bd36   Members   -  Reputation: 118

Like
0Likes
Like

Posted 17 April 2012 - 12:19 PM

That other SDK that starts with the letter 'S'
I believe it was called SMFL or something to that extent. If this would be a more appropriate library, I'd be glad to look into it. I don't want something that has zero control over the sprites, though.


I would recommend SFML for 2D graphics. What do you mean zero control over the sprites? SFML allows for easy movement, scaling and rotation of sprites with a simple function call. What else would you need to do?

#3 Justin Wells   Members   -  Reputation: 100

Like
0Likes
Like

Posted 17 April 2012 - 12:32 PM

I would really only need to color certain tiles. The spirtes are low-detail but I just need to be able to render them cleanly. I'll look into SFML. Thank you for the reply!

#4 bd36   Members   -  Reputation: 118

Like
0Likes
Like

Posted 17 April 2012 - 03:44 PM

No problem for coloring a tile you could use a RectangleShape object to make a tile of whatever size wherever you need it and then use setColor() to make it whatever color you need it to be. Or if you have your own images you can load them as textures and create sprites to manipulate.

#5 Marvel Magnum   Members   -  Reputation: 333

Like
0Likes
Like

Posted 17 April 2012 - 10:49 PM

You may also want to check out this free (but awesome) 2D engine (http://roswellgames.com/gadget2d/). Posted Image

#6 Malabyte   Members   -  Reputation: 589

Like
0Likes
Like

Posted 18 April 2012 - 05:25 AM

Forgive me for sounding ignorant (I not sure about this yet), but isn't it rather easy to create anim gifs that you can use? Or am I completely off center now?

- Awl you're base are belong me! -

- I don't know, I'm just a noob -


#7 BitMaster   Crossbones+   -  Reputation: 4261

Like
0Likes
Like

Posted 18 April 2012 - 06:33 AM

It is 'easy' to created an animated gif. It is rather difficult to do something useful with it. Even if you have a system with built-in support for animated gifs (like a web page displayed in a browser) you have no control over the animation or can pick different animations.

An animated gif does not magically become animated when you load it. The loader is responsible for loading the individual frames from the gif file and displaying them. There is nothing gained over loading the animation frames from several files or a sprite sheet. In fact, it will probably be more difficult because the GIF format is limited and old and generic image libraries might not even support it out of the box (or are unable to read the subsequent animation frames).




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