Jump to content

  • Log In with Google      Sign In   
  • Create Account

#Actualfarmdve

Posted 16 December 2012 - 10:27 AM

Hi folks.
I am using SDL for my (first)2D game attempt, I am not using OpenGL, just SDL_FillRect and SDL_BlitSurface. For my 2D game I asked a lot of people and different people recommended different things, one side recommended to stick with SDL's BlitSurface, others recommended me to do it on OpenGL even if it was 2D. I think I will stick with just SDL for now, unless it is necessary. OpenGL is too hard for me at this point, especially when it requires more code to do the same thing I do with SDL with less functions.

Anyway, what I am trying to do is make my view/projection/map/whatever orthogonal, i.e I want the map to look like this game http://fortune3.to/game/ where it looks as if the map and character are viewed under an angle. Another game like that is https://s3.amazonaws...ld22/index.html. My map is tile-based right now, I use these sheets http://i.imgur.com/4cURq.png.
The red,green and..not sure what the other color is, square are what I walk on, the other things are the walls.

For my character I use these http://i.imgur.com/sUAE4.png Nothing fancy, at all. I just found them randomly and google, and decided to use them.
When you mash that, it looks like this http://i.imgur.com/LlPCt.png. The tiles it feels as if I am looking from above, but the character as if I am looking from the side. What I want it to look like is the games I showed you, not the same textures obviously, but I hope you got the point. But I have no idea whether a code change is needed, or the sprites need to be changed, or both.

Now, let me say this, the programming language I am using is C, because I have over a year experience with it, whereas C++ or say C# I have none, plus I don't like them, so using some game library/game engine which is written in C++ is not on my agenda(It's possible to mix C and C++, but you get why I don't want to use it). Actually, I want to write my own engine, just for myself of course, so I can use it for other projects. If possible, spare me the talk how C++ is better Posted Image.

#3farmdve

Posted 16 December 2012 - 10:00 AM

Hi folks.
I am using SDL for my (first)2D game attempt, I am not using OpenGL, just SDL_FillRect and SDL_BlitSurface. For my 2D game I asked a lot of people and different people recommended different things, one side recommended to stick with SDL's BlitSurface, others recommended me to do it on OpenGL even if it was 2D. I think I will stick with just SDL for now, unless it is necessary. OpenGL is too hard for me at this point, especially when it requires more code to do the same thing I do with SDL with less functions.

Anyway, what I am trying to do is make my view/projection/map/whatever orthogonal, i.e I want the map to look like this game http://fortune3.to/game/ where it looks as if the map and character are viewed under an angle. Another game like that is https://s3.amazonaws...ld22/index.html. My map is tile-based right now, I use these sheets http://i.imgur.com/4cURq.png.
The red,green and..not sure what the other color is, square are what I walk on, the other things are the walls.

For my character I use these http://i.imgur.com/sUAE4.png Nothing fancy, at all. I just found them randomly and google, and decided to use them.
When you mash that, it looks like this http://i.imgur.com/LlPCt.png. The tiles it feels as if I am looking from above, but the character as if I am looking from the side. What I want it to look like is the games I showed you, not the same textures obviously, but I hope you got the point. But I have no idea whether a code change is needed, or the sprites need to be changed, or both.

Now, let me say this, the programming language I am using is C, because I have over a year experience with it, whereas C++ or say C# I have none, plus I don't like them, so using some game library/game engine which is written in C++ is not on my agenda(It's possible to mix C and C++, but you get why I don't want to use it). Actually, I want to write my own engine, just for myself of course, so I can use it for other projects. If possible, spare me the talk how C++ is better Posted Image.

#2farmdve

Posted 16 December 2012 - 10:00 AM

Hi folks.
I am using SDL for my (first)2D game attempt, I am not using OpenGL, just SDL_FillRect and SDL_BlitSurface. For my 2D game I asked a lot of people and different people recommended different things, one side recommended to stick with SDL's BlitSurface, others recommended me to do it on OpenGL even if it was 2D. I think I will stick with just SDL for now, unless it is necessary. OpenGL is too hard for me at this point, especially when it requires more code to do the same thing I do with SDL with less functions.

Anyway, what I am trying to do is make my view/projection/map/whatever orthogonal, i.e I want the map to look like this game http://fortune3.to/game/ where it looks as if the map and character are viewed under an angle. Another game like that is https://s3.amazonaws...ld22/index.html. My map is tile-based right now, I use these sheets http://i.imgur.com/4cURq.png.
The red,green and..not sure what the other color is, square are what I walk on, the other things are the walls.

For my character I use these http://i.imgur.com/sUAE4.png Nothing fancy, at all. I just found them randomly and google, and decided to use them.
When you mash that, it looks like this http://i.imgur.com/LlPCt.png. The tiles it feels as if I am looking from above, but the character as if I am looking from the side. What I want it to look like is the games I showed you, not the same textures obviously, but I hope you got the point. But I have no idea whether a code change is needed, or the sprites need to be changed, or both.

Now, let me say this, the programming language I am using is C, because I have over a year experience with it, whereas C++ or say C# I have none, plus I don't like them, so using some game library/game engine which is written in C++ is not on my agenda(It's possible to mix C and C++, but you get why I don't want to use it). Actually, I want to write my own engine, just for myself of course, so I can use it for other projects. If possible, spare me the talk how C++ is better Posted Image.

#1farmdve

Posted 16 December 2012 - 09:59 AM

Hi folks.
I am using SDL for my (first)2D game attempt, I am not using OpenGL, just SDL_FillRect and SDL_BlitSurface. For my 2D game I asked a lot of people and different people recommended different things, one side recommended to stick with SDL's BlitSurface, others recommended me to do it on OpenGL even if it was 2D. I think I will stick with just SDL for now, unless it is necessary. OpenGL is too hard for me at this point, especially when it requires more code to do the same thing I do with SDL with less functions.

Anyway, what I am trying to do is make my view/projection/map/whatever orthogonal, i.e I want the map to look like this game http://fortune3.to/game/ where it looks as if the map and character are viewed under an angle. Another game like that is https://s3.amazonaws...ld22/index.html. My map is tile-based right now, I use these sheets http://i.imgur.com/4cURq.png.
The red,green and..not sure what the other color is, square are what I walk on, the other things are the walls.

For my character I use these http://i.imgur.com/sUAE4.png Nothing fancy, at all. I just found them randomly and google, and decided to use them.
When you mash that, it looks like this http://i.imgur.com/LlPCt.png. The tiles it feels as if I am looking from above, but the character as if I am looking from the side. What I want it to look like is the games I showed you, not the same textures obviously, but I hope you got the point.

Now, let me say this, the programming language I am using is C, because I have over a year experience with it, whereas C++ or say C# I have none, plus I don't like them, so using some game library/game engine which is written in C++ is not on my agenda(It's possible to mix C and C++, but you get why I don't want to use it). Actually, I want to write my own engine, just for myself of course, so I can use it for other projects. If possible, spare me the talk how C++ is better Posted Image.

PARTNERS