@richard Is it possible to make a Makecode arcade game starting with absolutely nothing? By that I just mean no sprite class, no scene handler, etc. I think it could improve performance a bit, and it seems interesting to me. Either I could go into pxt.json and add something, or maybe just manually reset everything, what could I do?
It wouldn’t be possible to code I’m pretty sure
@VoxelMaster64 yup.
what you probably want is the game—light extension, which rips out pretty much everything except the bare necessities.
things it removes:
- sprites
- physics
- animations
- tilemaps
- info/score
- multiplayer
things it keeps:
- screen/images
- controller buttons (player 1 only)
- onUpdate, onPaint, and onShade in the game namespace
- an extremely minimal scene system
- music
- all the basic javascript stuff like strings, arrays, etc.
looks like we accidentally broke game—light when we added tilemaps to the gallery, but i went ahead and made you a project that fixes it. you can import it from this share link:
note that if you choose to use this, you basically lock yourself out of using all extensions since basically all of them rely on the basic game extension in some way or another.
ooh this is cool one question how would you ever render anything to screen the screenrenderable function is gone
you guys should host a game jam with this extension as a requirement
so what you say is all we can do is recreate those @VoxelMaster64 I think it would be best to just fork pxt arcade and remove unnessesary functions
Wait i can make my own game engine now… particle extension is getting delayed once again
It’s just an “On Start” block, that’s not a game, that’s a new PROJECT.
You can draw to the screen inside the game.onPaint or game.onShade
oh God the dungeon crawler seems to be getting less and less makecodey(maybe I make elemental in this) also I have a big brain idea just remove it all ![]()
that is actually correct and I use game.onPaint all the time for my 3D engine
I also want to do the same thing with pxt-common-packages, but that would remove some sim functions.
@TheMarkyGoober look at the left, the Sprites category is gone! Same with many others! Oh, did I mention game is mostly empty?
not sure if that’s possible or not
The dungeon crawler (Curse of Nythar) will be in the normal makecode game engine, but i was thinking about making a game with ortographic 3d, or a spaceflight-simulator clone. Both of these dont need the default engine features. But i will finish my dungeon crawler first
probably
the
assets.image`insertImageNameHere`
causes many errors most of which come from the helpers namespace not having register factory
the link is here:
the only way as I see it is to just register a bunch of inline images in consts and then use the const to access them
time for you to learn how jres files work! (images.jres and images.ts usually have the assets in them) Note that I still don’t fully understand how the work
(mainly because I don’t care that much
)
I was talking about “Game-Light” not “Makecode lite version”
there actually called images.g.jres and images.g.ts for some reason
@RICHARD PLEASE GRANT ME OH YOUR GREAT WISDOM AND REIMPLEMENT SCENESTACK AND SCENE PUSH
HANDER AND SCENE POP HANDLER AND MY LIFE IS COMPLETE!!!/HJ