# Game Development Tips

**URL:** <https://discourse.codecombat.com/t/game-development-tips/31661>\
**Category:** Scribe\
**Created:** [December 26, 2021, 2:10pm UTC](https://discourse.codecombat.com/t/game-development-tips/31661 "2021-12-26T14:10:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aya](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/aya/32/42680_2.png) [@Aya](https://discourse.codecombat.com/u/Aya)\
**Post date:** [December 26, 2021, 2:10pm UTC](https://discourse.codecombat.com/t/game-development-tips/31661/1 "2021-12-26T14:10:40Z")

</div>

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**
>
> ```python
> 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**
>
> ```python
> okar = game.spawnXY("goliath",60,60)
> okar.stomp()
> 
> ```

- Changing the damage of a method (for example cleave)

> **Code**
>
> ```python
> player = game.spawnHeroXY(40, 36)
> player.cleaveDamage = 30
> 
> ```
