Jump to content
  • Advertisement

Gangi

Member
  • Content Count

    8
  • Joined

  • Last visited

Community Reputation

100 Neutral

About Gangi

  • Rank
    Newbie
  1. If you want to erase an object from the screen one thing you can do is draw the background again only on the SDL_Rect occupied by your object.
  2. Gangi

    Help for an absolute beginner

    For me, two good books to start are "Game Development with Python and Pygame - McGugan" and "Beginning_C++_Game_Programming". And as usual I recommend you to start with 2D games if you are more interested in programming. If you are only interested in 3D I recommend you a game engine like unity 3D (you need to know a little bit of programming) but to start I think it's better with 2D games.
  3. Gangi

    Where to handle input logic

    Serapath is right. But I think there are some exceptions depending on the results you want to achieve. For example, if you want to move a character inside a RPG game, one thing I like is use the arrow keys is to give priority to some movements. I mean, if I'm going down but I want to avoid an obstacle I have to turn right and then continue going down, what I do is give priority to the last pressed key. Differences in key pressing if you want to go down and avoid an obstacle between the two approaches: -Without priority: Press down_key + release down_key + press right_key + release right_key + press down_key -With priority: Press down_key + press right_key + release right_key With key priority I find it easier to drive a character and it's not obvious that you have to use a state array or something similar.
  4. No, the frames are of differents size so the problem is to locate them easily. In other games I did something like this to locate the frames in the image: next_frame.x = prev_frame.x + width. But now I can't because each frame has a different size. Yes, that's a good idea. I'm looking for an sprite editor program, until now I've found: - Sprite Vortex: This program locates (x,y,width and height) all the frames in an image and print the results in a XML file. Just what I want!! It's a pity it's only for windows. - Texture Packer - Sprite buddy Thanks for all your answers!!
  5. Hello!! I looked in the forum but I didn't find anybody with the same problem I have so I think I should ask. This is my situation: I have an image with a lot of sprites of the same character inside and I want to use this image to create an animation of the character in my game. In other images I used, all the sprites were equally spaced and had the same size so it was easy to locate them inside the image. Now my problem is that almost every sprite has a different size and position so it's very tedious to get the position of the sprites. Since I have 7 images with like a 50 sprites inside of each of them getting the position manually is not an option. I thought to make a program to detect the size and position of the sprites ( I did something similar to detect shapes using the Matlab image toolkit so it's possible). But I think there's no reason to reinvent the wheel, I suppose somebody should have the same problem sometime. How did you solved it? Is there any application that makes this? Thanks!!
  6. Gangi

    Y-Angle rotation from 3-d vector

    I dont't know how to do it but this books are pretty good so maybe you can find what you are looking for. 3D_Math_Primer_For_Graphics_And_Game_Development - WordWare Mathematics_for_Game_Developers - Thompson
  7. Hello!! I looked in the forum but I didn't find anybody with the same problem I have so I think I should ask. This is my situation: I have an image with a lot of sprites of the same character inside and I want to use this image to create an animation of the character in my game. In other images I used, all the sprites were equally spaced and had the same size so it was easy to locate them inside the image. Now my problem is that almost every sprite has a different size and position so it's very tedious to get the position of the sprites. Since I have 7 images with like a 50 sprites inside of each of them getting the position manually is not an option. I thought to make a program to detect the size and position of the sprites ( I did something similar to detect shapes using the Matlab image toolkit so it's possible). But I think there's no reason to reinvent the wheel, I suppose somebody should have the same problem sometime. How did you solved it? Is there any application that makes this? Thanks!!
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!