RPGDXThe center of Indie-RPG gaming
Not logged in. [log in] [register]
 
 
Post new topic Reply to topic  
View previous topic - View next topic  
Author Message
ShurikeN
Lowly Slime


Joined: 27 Feb 2008
Posts: 4

PostPosted: Wed Feb 27, 2008 5:10 am    Post subject: SDL Isometric [quote]

does SDL support isometric views??
Back to top  
Hajo
Demon Hunter


Joined: 30 Sep 2003
Posts: 779
Location: Between chair and keyboard.

PostPosted: Wed Feb 27, 2008 9:14 am    Post subject: [quote]

I feel tempted to answer "Yes". But only in the sense that you can place a bitmap anywhere on the screen, including isometric placement. The position calculation is up to you, though.

I have done an isometric game with SDL, two actually, so I stick to "yes" ;)
Back to top  
dbest
Milk Maid


Joined: 02 May 2007
Posts: 41

PostPosted: Wed Feb 27, 2008 9:45 am    Post subject: [quote]

I was about to use SDL for a simple isometric demo, but i dropped the idea.


That does not mean, that you cannot use SDL for isometric views. Alll you would have to do is set the position of the surface you are blitting on....
Back to top  
Hajo
Demon Hunter


Joined: 30 Sep 2003
Posts: 779
Location: Between chair and keyboard.

PostPosted: Wed Feb 27, 2008 10:44 am    Post subject: [quote]

If i and j are the map coordinates and x and y are the screen coordinates it's something like

x = (j-i)/2;
y = (j+i)/2;

Needs some scaling (tile-size, y-shrink) and so, but that's the basic formula.
Back to top  
Post new topic Reply to topic Page 1 of 1 All times are GMT
 



Display posts from previous:   
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum