Hi,
I've just updated my EE version, and as I noticed there are some major differences (which also sound good).
I've changed the code of my project to use this version, but I encountered some problems...
Especially the UInt return parameter of drawPrepared isn't working correctly for me (or I'm using it wrong).
In the previous version of EE I used this code to draw a grenade with explosion:
Code:
void Grenade::draw() {
//only draw grenade, if LifeSpan is valid -> grenade is still alive/no explosion
if(LifeSpan != -1)
__super::draw();
switch(Renderer()) {
case RM_BLEND :
case RM_PALETTE:
explosion.draw();
}
}
I changed it like to this code block to work with the current version:
Code:
UInt Grenade::drawPrepare() {
//only draw grenade, if LifeSpan is valid -> grenade is still alive/no explosion
if(LifeSpan != -1)
__super::drawPrepare();
switch(Renderer()) {
case RM_BLEND :
case RM_PALETTE:
explosion.draw();
}
return EE::IndexToFlag(RM_BLEND) | EE::IndexToFlag(RM_PALETTE);
}
The grenade is drawn correctly, but the explosion isn't drawn at all...
I don't know how to return the UInt, that's the problem I'm facing...
regards,
Kevin