Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Pixelbox

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

Ability to import the main functions

A topic by davidnorth created Apr 23, 2020 Views: 183 Replies: 1
Viewing posts 1 to 2
(+1)(-1)

Its a bit of nuisance dealing with all the undefined errors for global functions like 'sprite', 'camera' etc. Would it be possible to import them instead? e.g. 

    import 'camera' from 'pixelbox'

Thanks for the suggestion.

This is now possible in version 2.0.2