GomaGames / Spawn-RPG

RPG version of SpawnHero2
MIT License
0 stars 0 forks source link

Build a SIMPLE level with obstacles, where you collect 10 coins to win. #71

Open kellishouts opened 8 years ago

kellishouts commented 8 years ago

Do not use collectables. Do not use interactables except for signs (non critical logic). Use only walls (objects), enemies, freeze, slow, speed, & coins. Use one of the pre-made maps.

kellishouts commented 8 years ago

Put walls only on coordinate points, like this: // Set a variable for the tile size. var tile_size = 40;

// Set a variable to use for all walls. var wall = "assets/images/brick.png";

// Place some walls on the game map. Spawn.object(0_tile, 0_tile, wall); Spawn.object(1_tile, 0_tile, wall); Spawn.object(2_tile, 0_tile, wall); Spawn.object(3_tile, 0_tile, wall); Spawn.object(4_tile, 0_tile, wall); Spawn.object(5_tile, 0_tile, wall); Spawn.object(6_tile, 0_tile, wall); Spawn.object(7_tile, 0_tile, wall); Spawn.object(8_tile, 0_tile, wall); Spawn.object(9_tile, 0_tile, wall);

Or like this:

var tile_size = 40; var wall = "assets/images/brick.png"; for (i = 0; i < 10; i++){ Spawn.object([i]_tile_size, 0_tile_size, wall); }