Master JavaScript Object Functions - Ultimate Guide
Here’s what I wanted to do, for example (it doesn’t work obviously but I want to show y’all what I mean): let animations = { ‘jump’: function(){player.velocity.y += 15}, ‘fall’: function(){player.velocity.y -= 15} } let x = ‘jump’; animations.x(); Idk if this is the most convenient way to do things by the way, but I really like the cleanliness of syntax it’ll afford me. The original question,…










