# Using Makecode Starting with Nothing?

**URL:** <https://forum.makecode.com/t/using-makecode-starting-with-nothing/47009>\
**Category:** Help\
**Created:** [November 6, 2026, 1:49am UTC](https://forum.makecode.com/t/using-makecode-starting-with-nothing/47009 "2026-11-06T01:49:41Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)\
**Post date:** [November 10, 2026, 12:14am UTC](https://forum.makecode.com/t/using-makecode-starting-with-nothing/47009/21 "2026-11-10T00:14:45Z")

</div>

the point of game—light is that you code that yourself I believe 😛

---

<div class="post-metadata">

**Author:** ![TheGooberEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thegooberearth/32/36693_2.png) [@TheGooberEarth](https://forum.makecode.com/u/TheGooberEarth)\
**Post date:** [November 10, 2026, 12:14am UTC](https://forum.makecode.com/t/using-makecode-starting-with-nothing/47009/22 "2026-11-10T00:14:46Z")

</div>

I think it’s because they are “generated”

---

<div class="post-metadata">

**Author:** ![TheGooberEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thegooberearth/32/36693_2.png) [@TheGooberEarth](https://forum.makecode.com/u/TheGooberEarth)\
**Post date:** [November 10, 2026, 6:50am UTC](https://forum.makecode.com/t/using-makecode-starting-with-nothing/47009/23 "2026-11-10T06:50:40Z")

</div>

I need that to import the browser events extension wait I found a fix just remove all uses in a custom ts file I’ll post that here soon

---

<div class="post-metadata">

**Author:** ![TheGooberEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thegooberearth/32/36693_2.png) [@TheGooberEarth](https://forum.makecode.com/u/TheGooberEarth)\
**Post date:** [November 10, 2026, 6:54am UTC](https://forum.makecode.com/t/using-makecode-starting-with-nothing/47009/24 "2026-11-10T06:54:35Z")

</div>

oh great voxel may you bestow upon me the source code for namespace helpers normally edit I found it its here: in assetTemplates.ts in Game folder code if anyone needs it

```auto
//% helper=getTilemapByName
//% pyConvertToTaggedTemplate
//% blockIdentity="tiles._tilemapEditor"
function tilemap(lits: any, ...args: any[]): tiles.TileMapData { return null }

//% helper=getTilemapByName
//% pyConvertToTaggedTemplate
function tilemap8(lits: any, ...args: any[]): tiles.TileMapData { return null }

//% helper=getTilemapByName
//% pyConvertToTaggedTemplate
function tilemap16(lits: any, ...args: any[]): tiles.TileMapData { return null }

//% helper=getTilemapByName
//% pyConvertToTaggedTemplate
function tilemap32(lits: any, ...args: any[]): tiles.TileMapData { return null }

//% helper=getTilemapByName
//% pyConvertToTaggedTemplate
function tilemap4(lits: any, ...args: any[]): tiles.TileMapData { return null }

namespace assets {
    //% helper=getTilemapByName
    //% pyConvertToTaggedTemplate
    //% blockIdentity="tiles._tilemapEditor"
    export function tilemap(lits: any, ...args: any[]): tiles.TileMapData { return null }

    //% helper=getImageByName
    //% pyConvertToTaggedTemplate
    //% blockIdentity="images._spriteImage"
    export function image(lits: any, ...args: any[]): Image { return null }

    //% helper=getTileByName
    //% pyConvertToTaggedTemplate
    //% blockIdentity="images._tile"
    export function tile(lits: any, ...args: any[]): Image { return null }

    //% helper=getAnimationByName
    //% pyConvertToTaggedTemplate
    //% blockIdentity="animation._animationFrames"
    export function animation(lits: any, ...args: any[]): Image[] { return null }

    //% helper=getSongByName
    //% pyConvertToTaggedTemplate
    //% blockIdentity="music._songFieldEditor"
    export function song(lits: any, ...args: any[]): Buffer { return null }
}

namespace helpers {
    export type TilemapFactory = (name: string) => tiles.TileMapData;
    export type ImageFactory = (name: string) => Image;
    export type TileFactory = (name: string) => Image;
    export type AnimationFactory = (name: string) => Image[];
    export type SongFactory = (name: string) => Buffer;

    interface Factory {
        kind: string;
        factory: (name: string) => any;
    }

    let factories: Factory[];

    export function _registerFactory(kind: string, factory: (name: string) => any) {
        if (!factories) factories = [];
        factories.push({
            kind,
            factory
        });
    }

    export function _getFactoryInstance(kind: string, name: string) {
        if (factories) {
            for (const factory of factories) {
                if (factory.kind === kind) {
                    let data = factory.factory(name);
                    if (data) return data;
                }
            }
        }
        return null;
    }

    // Deprecated; use helpers._registerFactory("tilemap", name)
    export function registerTilemapFactory(factory: TilemapFactory) {
        _registerFactory("tilemap", factory);
    }

    export function getTilemapByName(name: string) {
        return _getFactoryInstance("tilemap", name);
    }

    export function getImageByName(name: string) {
        return _getFactoryInstance("image", name);
    }

    export function getAnimationByName(name: string) {
        return _getFactoryInstance("animation", name);
    }

    export function getTileByName(name: string) {
        return _getFactoryInstance("tile", name);
    }

    export function getSongByName(name: string) {
        return _getFactoryInstance("song", name);
    }
}

```

also link with this added for any people who need this:

> **[game-light fixed with assets working](https://arcade.makecode.com/S08785-08418-34659-87742)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

have fun!

---

<div class="post-metadata">

**Author:** ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)\
**Post date:** [November 11, 2026, 12:19am UTC](https://forum.makecode.com/t/using-makecode-starting-with-nothing/47009/25 "2026-11-11T00:19:01Z")

</div>

the link is [https://github.com/microsoft/pxt-common-packages/blob/master/libs/game/assetTemplates.ts](https://github.com/microsoft/pxt-common-packages/blob/master/libs/game/assetTemplates.ts)

---

<div class="post-metadata">

**Author:** ![TheGooberEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thegooberearth/32/36693_2.png) [@TheGooberEarth](https://forum.makecode.com/u/TheGooberEarth)\
**Post date:** [November 16, 2026, 7:12pm UTC](https://forum.makecode.com/t/using-makecode-starting-with-nothing/47009/26 "2026-11-16T19:12:41Z")

</div>

Uhh @richard?? I could open some sort of merge or smth dunno how tho

[Previous page](https://forum.makecode.com/t/using-makecode-starting-with-nothing/47009.md?page=1)
