131 : Create items

Balthazar:

Add key

Balthazar:

We'll add a key as an item. and support items just like we do for monsters where we have an array that describes the items that we want to create.

function init_level_defaults(level) { level.player_start_x = 0; level.player_start_y = 0; level.platforms = []; level.monsters = []; level.items = []; }
Balthazar:

This initializes all of the levels.

GOTO 133 if you already have the Sprite II - Image badge.

GOTO 132