Also how is console development going?
I mean we will create the basic functions in blocks (startup screen, shield point system, main menu, in-game store, etc.) and then when those are all finished we will turn it to JavaScript so we can easily copy-paste games into the console.
Pretty slow, it should pick up tho after CK5, as I’m currently competing in that.
Oh yeah and @teaeat100 @CodeTycoon you are welcome to post betas and unfinished versions of your projects here, just remember that they will not be programmed into the console until they are finished.
I feel there is a better way to do loops that won’t require a new if block for each one. That might lead to many, many loops doing nothing in the background. A better method might be to put each game in its own function, all the JavaScript code. That way you can just set up a new “scene” for each game. Using scene.push or whatever it’s called. That scene logic is how the system menu runs without the game loops running in the background.
So how does that work? would I add a custom file, almost like an extension, of each game?
Also, please remember to make your 64 by 48 pixel thumbnail in the DEFAULT PALETTE.
Here’s an example project! I had to work around something I don’t understand, which I’ll ask the makecode team about.
Hey @makecode, any idea why running
game.pushScene causes game.over() to crash? I suspect it has something to do with the scene stack, obviously, but idk what. I’ve tried init-ing the current scene, though it should be initialized when the old scene is pushed. Idk how to fix this.
@eugeneredwing8, if this issue can’t be figured out, you might not want to use this method even though I’ve made a workaround for the game over issue in the example project, as there may be other things broken that you would find out about only when importing games.
@makecode it seems this issue is probably not my fault? I think the issue happens when the game.over code calls _scene.destroy(), which only occurs when the scene has been pushed because that While loop only runs if the scene stack has scenes in it. You can easily recreate this issue by creating a system menu button that calls game over when pressed, causing an error. I suppose this isn’t really that simple, but here’s the code for it:
scene.systemMenu.addEntry(()=>{return "IDK"}, ()=>{game.over(true)}, img`.`)
So, in this method is it possible to use the game.pushScene function in a Mini menu (@richard’s mini menu extension)? I’m trying to make selectable games.
Yes, I don’t see why not. The menu is a sprite, so it’s tied to the current scene, so when the scene is pushed it should disappear just like my makeshift title screen.
Here’s A Basic Demo Of What The Game Will Be Like, https://makecode.com/_ea4Wge9FE6jF It Will Be Subject To change And I’m Open To Any Criticism
This is really cool! I’ll definitey be adding this to the console!
eugeneredwing, how far away are you from completing this console? (I wanna show it off in my direct thingamabob)
Well, as I’m competing in CK5, development is very slow, but thanks to @WoofWoof I have a better strat for the making of this console, so maybe in like 7-10 days?
What real life game console do you envision this console’s home screen to be the most similar to? Also, are you planning on making a GitHub repo for this?
@eugeneredwing8 I’ve decided I’m going to put a different game I’ve already been developing for some time now. It’s the most in depth 3D version of Portal on MakeCode Arcade. It’s got tons of variables that I will convert when the time comes but I will post the current version of it here. A is a blue portal B is an orange portal. Also there is an energy pellet which you can use portals to put into an energy receptacle which opens a door which currently goes nowhere. Again, this is not the final version and it currently is not tuned to your requirements but it will be eventually. Also there is not yet a logo.
I Have Made Most Of The Soundtrack I want to use for warped, again, may change : https://makecode.com/_PA0hTdeU9h89
“zipper hehe”?
is he gonna put on a jacket or somthing??
ok so using @WoofWoof’s strat I was able to make this quick demo project!