Oo wait let me try
- Like
- Yes/Me too
- XD
- gasp!
- yippee!!
-
or happy
-
or disagree or HOW DARE YOU
Oo wait let me try
- Like
- Yes/Me too
- XD
- gasp!
- yippee!!
-
or happy
-
or disagree or HOW DARE YOU
I think i use break. I use it to stop a repeat # of times block if a condition is met(like the flappy bird falling into the void after hitting an object)
I use them in Javascript mostly
break is used in a switch/case statement to specify the end of the case or whatever, like this:
let var = randint(0,10)
switch(var) {
case 0:
//run code here if var == 0
break
case 1:
//run code for var == 1
break
//etc.
switch/case is basically an if statement, but because the condition doesn’t enclose its code in brackets ({}) you have to use break or it will run all the conditions’ code.
continue is used to skip out of a loop (like a for loop for example) so you can stop running it early, like this:
let var = randint(0,10)
let returnNum = 0
for (let i = 0; i < 10; i++) {
if (i == var) {
//Found the value of Var, so stop running the extra code
returnNum = i
continue
}
}
console.log("var = " + returnNum)
If for example var is only 2, then it’s not optimal to run this loop another 8 times when you’ve already found the value, so you’d use continue to exit the function early. In this example it doesn’t really matter (and you could just log var initially anyway) but for more code-heavy calculations and stuff you don’t want to run the same thing over and over if you don’t need to.
They’re not talking about Celeste, they’re talking about a game called Haiku the Robot
oh ye also break is for switch statements but that’s js only
I don’t really play Celeste classic, I just speedrun normal Celeste
@Richard will the next big jam happen in November or October
There’s probably not even enough global arcade game jam topics in total to create this many solutions much less enough so one person get its
shhhhhhhhhhhhhhhh (makecode this is a sentece and if you say otherwise i dont know what will happen)
It’s almost embarrassing how many replies I got on this
mm not a lemon sounds like @Not_a_Potato ! are you his long lost brother!!!?
your “continue” example is incorrect
should I change my pfp to something new agian…
Woofy
Idk why but I feel MakeCode forums are actually at their peak rn. I think it’s gonna grow for a while cause of the scratch ai thing but will plateau for like 5 months and then fall off I want to see if this prediction holds up so let’s see
Byw for all unenlightened people you can use <sentence>
And it will allow you to post without showing up
@Hulahoop you need to lock in also btw who is @AGuyThatCodes bro I have never even seen them
hey @Luke whaddya think of my pixal art?
Well you should try it if you haven’t, always good to see the original idea for a game you enjoy (kinda like playing LoZ LttP after playing BotW or TotK)