Sign in to follow this  

How do I write an isometric 2D engine?

Recommended Posts

A little about myself:

I've programmed a couple of tiled 2D RPGs already, using SDL. I'm also familiar with some "advanced" math, like transformation matrices and what not.


On to the problem, then!


I want to create an isometric 2D RPG game, but I have no idea where to start. I'm familiar with the concept as such, but I have no experience whatsoever with the implementation. For instance, SDL has a function called SDL_BlitSurface() that blits rectangles, that I've used to copy the texture onto the map. How I'd do the same with an isometric tile, however, I cannot fathom.


So, where do I begin? I've searched for both tutorials and actual code, but found nothing that left me any wiser.

Share this post

Link to post
Share on other sites

The world is still a grid.


You just need to:

-Make sprites from an isometric point of view

-Instead of rendering them next to each other, you need to somehow convert the x,y world coordinate to the screen so that the rows/columns are diagonally. (take the x,y point and rotate it around the center of the map by 45 degrees, or something similiar. Not sure if you need to scale the resulting y values by some factor...)


You can easily use the algorithm you transform the points to the screen the other way, to transform mouse coords to your isometric world.


I have never used isometric view (This far i have achieved a grid of rectangles >.<) but this seems logical to me.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this