123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|622|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz -> isometric games?

Thu, 12 Jul 2007, 16:55
spinal
Just wondering, does anyone know of any easy to follow tutorials for making isometric games? Google's being useless again.




[off topic] Jay, I can't find a search button anywhere. Is there one? |edit| No, there isn't! |edit|

-=-=-
Check out my excellent homepage!
Thu, 12 Jul 2007, 17:02
Blitz3Dman
oooh, good question. I've wondered that for a while.

-=-=-
There are 10 kinds of people in this world -

( Insert 16 remarks about to what extent people know hex here )
Thu, 12 Jul 2007, 17:36
spinal
Preferably not on specific to blitz, I intend coding it in C, but blitz is easyer to follow.

-=-=-
Check out my excellent homepage!
Thu, 12 Jul 2007, 17:48
Jayenkai
I've tried doing Isometric a few times, but the blocks are really tricky to line up correctly, and it usually winds up looking a mess.

Basically you want to draw objects at...

DrawX=(X * SpriteWidth )+( (Y Mod 2) * (SpriteWidth/2) )
DrawY=(X * (SpriteHeight/2) )+(Y * (SpriteHeight/2) )

Or at least I think that's right..

Might not be, though.

And, of course, that's for plain cubic objects existing within a cubic world. No dealing with nice moving objects here! Just animate mid points, it'll be fine

If you're adding angles in, then you've a whole load more stuff to deal with! (But that could probably be dealt with in the graphics, rather than the code)

If you're adding height to your objects, just add Z*SpriteHeight to your Y co-ords.

-=-=-
''Load, Next List!''
Thu, 12 Jul 2007, 22:59
power mousey

cough cough!

True. I have taken a fancy,liking,love and
even addiction to Python and Pygame.

But this may help you....perhaps


www.pygame.org/projects/9/167/


cheers
power pygame mousey
Fri, 13 Jul 2007, 10:20
shroom_monk
I made an isometric engine about a month ago! It sucked, and was really slow, but I'll try and find it for you...

-=-=-
A mushroom a day keeps the doctor away...

Keep It Simple, Shroom!
Fri, 13 Jul 2007, 10:32
shroom_monk
Oh, I can't be bothered to package all the files together, so the gist of it is: you need to convert the xyz coords into onscreen xy coords, and you do this by totaling the distance across the axis * cos(direction) * spacer for the onscreen X for each axis, and the same but with sin for Y. That's a lot of stuff compressed into a small amount of text there, so if you have some trouble getting it, I'll explain in more detail.

-=-=-
A mushroom a day keeps the doctor away...

Keep It Simple, Shroom!