Skip to content
Advertisement

Tag: game-engine

Incomprehensible object reassignment in javascript

I’ve been looking at the examples of this game engine and I really don’t understand why it reassigns the object, I code in java and I’m learning javascript, it may be a concept error. example https://blacksmith2d.io/Docs/Examples/Arcade-Physics/CollisionEvents onassetsLoaded() event he is setting object properties and then reassign it again below. also i don’t understand this part on if statement Answer About

Advertisement