Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Pixelbox

Create 2D games in JavaScript, made easier · By Cedric Stoquer

how do i import a map?

A topic by alchuni11 created May 28, 2021 Views: 221 Replies: 1
Viewing posts 1 to 2

well i created a map for the game and i do not know how to import it.

Assuming your map is named “map” (you can change its name from the map editor) In your game code, add the following:

var map = getMap('map');
draw(map, 0, 0);