View previous topic - View next topic |
Author |
Message |
ShurikeN Lowly Slime
Joined: 27 Feb 2008 Posts: 4
|
Posted: 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.
|
Posted: 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
|
Posted: 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.
|
Posted: 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 |
|
|