Game Development Tips

So here we can share stuff related to Game Development. It can help new players not to get confused. I made it a wiki so we can all add stuff.

  • So firstly, game development levels aren’t solvable by writing code, it is a clicking game. You click on an enemy to attack it
  • To move, you can click anywhere on the map or use WASD keys.
  • And in order to make an action based on pressing a random key (I haven’t discovered how with a specific key it works) here’s the code in Python:
Code
def onKey(event):
    # Do something

game.on("keydown", onKey)
  • Clicking the “C” key on the keyboard makes the player cleave.
  • Feel free to add anything here!
  • hitting “F” pays respects to the ogres (joke)
  • Stomping using Okar (credit: escaper10101)
Code
okar = game.spawnXY("goliath",60,60)
okar.stomp()
  • Changing the damage of a method (for example cleave)
Code
player = game.spawnHeroXY(40, 36)
player.cleaveDamage = 30
1 Like