You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this below code method, I've tested creating and removing entity, because I'm planning to create bullet pool this way.
public void build () {
Entity bulletTest1 = createBullet(0,0); // works perfectly but
removeEntity(bulletTest1); // after engine remove this bulletTest1 entity then
Entity bulletTest2 = createBullet(0,0); // recreate it, it doesn't work anymore
}
In this below code example I've create a BulletFactory that creates bullet entity made from engine.
The "it doesn't work anymore" means on the second creation of bullet, there's no texture and body created ,so I assume it doesn't work. Let me try the failing jUnit test.
In this below code method, I've tested creating and removing entity, because I'm planning to create bullet pool this way.
In this below code example I've create a
BulletFactory
that creates bullet entity made from engine.The text was updated successfully, but these errors were encountered: