Can anyone tell me how the tile engine in exult works?
I'd like to know how we make to draw the tiles in the correct order, for instance a column must be drawn over the avatar is this one is behind.
Or colum tiles must be over floor tiles...
What is the algorithm used?
Some kind of z buffer?
thanks a lot for your help!
HOW IT WORKS?
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Re: yes
Funny... two posts from the same IP range on the same topic within 4 minutes of eachother written in the same style. What a coincidence... *cough*
Anyway, to summarize: we're not using a z-buffer, but we're sorting the shapes based on a very complex shape compare function.
Anyway, to summarize: we're not using a z-buffer, but we're sorting the shapes based on a very complex shape compare function.
only a joke
yes i am confuse...
Just a joke and to (sorry) help people think it is a VERY interesting subject
next time i'll change of computer...no i'll won't do that again...
And sorry for my style but i am french and i 'am trying to do my best to communicate in the shakespeare's language
Can you tell me a bit more about this sort function, what's the name of the source file please...
thank you
Just a joke and to (sorry) help people think it is a VERY interesting subject
next time i'll change of computer...no i'll won't do that again...
And sorry for my style but i am french and i 'am trying to do my best to communicate in the shakespeare's language
Can you tell me a bit more about this sort function, what's the name of the source file please...
thank you
Re: only a joke
> Just a joke and to (sorry) help people think it is a VERY interesting subject
We already think exult is a VERY interesting subject
> And sorry for my style but i am french
There's nothing wrong with your english. I was just pointing out that the writing style was the same in the two messages.
> Can you tell me a bit more about this sort function, what's the name of the source file please...
It's in objs/objs.cc. The function is Game_object::lt
We already think exult is a VERY interesting subject
> And sorry for my style but i am french
There's nothing wrong with your english. I was just pointing out that the writing style was the same in the two messages.
> Can you tell me a bit more about this sort function, what's the name of the source file please...
It's in objs/objs.cc. The function is Game_object::lt
Re: thanks!
I'm from the Netherlands.
Re: hou hou
Generally, only objects within a chunk (16x16 tiles) are compared with each other, or sometimes with objects in an adjacent chunk. Also, objects don't need to be compared if they're images don't overlap, since it then doesn't matter which is drawn first.