Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Beernutts

Pages: [1]
1
Graphics / "Tilting" a 2D view...
« on: December 21, 2011, 09:34:38 pm »
Hi,

I'm wondering if it's possible to "tilt" a 2D view.

What I mean is, consider a top-down view.  Now, I want to be able to "tilt" the camera up, so the view seems wider at base, but elongated at the top, and it stretches further in the game worlds view.

I'm basically trying to make a 2D racing game, where I have a track laid-out on a 2D map.  I could do it with a top-own view, but I'd rather have the player be able to see further in front of him.

Is there a fairly easy way to do with with SFML and 2D graphics?

Thanks!

2
SFML projects / 2d Game Making blog...
« on: October 24, 2011, 05:21:26 am »
Hey All,

I've started making a 2d game using SFML, and i plan on documenting it to hopefully help others who want to make games:
http://2dgamemaking.blogspot.com/

Anyway, just wanted to share it here.

Thanks!

3
Graphics / rotating Screen around central player (sfml 2.0)...
« on: May 11, 2011, 04:46:44 pm »
Hi Guys,

I currently have a solution for this, but I'm not that satisfied with it, and I thought there might be a better way to do it that I'm not familiar with.

I want to have my player stay in the middle of the screen always pointing "up" for a top-down game.  He is controlled with a mouse (like an fps), so the screen is constantly rotating around him as the mouse moves back and forth.

The solution I've choosen is to create a RenderImage larger than the screen, blit my map onto the screen, then rotate the screen absed on the players angle in the map.  The problem is, I have to create a very large RenderImage (about twice the x/y dimensions of the screen), because, when it rotates, the corners would be cut off if the player was at a 45 degree angle.

I attempted to use views, and I found a solution, but I had to zoom in so much, it wasn't a good solution.

Is there a better way to do this that I can't find without using so much memory and have to blit my tiles and map onto the large render surface?

Thanks.

Pages: [1]