Making Friends
posted to Share by bearbearmo

@Ov3R10rd I don't know what you mean by a money related aspect, but if you explained it slightly I'm sure I could add it

Node.js Impossible Nims AI
posted to Share by bearbearmo

@nithilan4 that's the point, you can't beat it

🧠 Connect 4 AI
posted to Share by LucHutton

Not sure the AI always works:

Basic Platformer With Javascript and HTML
posted to Learn by LucHutton

@Reader8765 I agree, if you read How To Make A Puzzle Platformer this problem is addressed and fixed. All you have to do is change the !== "1" in the horizontal collisions to === "0" so that it only allows movement when the space in front is a non solid block ("0"). This also allows you to create new blocks that automatically have horizontal collisions.

How To Make A 1 Player Nims Game - Node.js
posted to Learn by bearbearmo

@EduardoRicardez Oh sorry, I edited the code after posting this and it starts on 12 instead of 21 like the tutorial says, the version you played would have been impossible. I'll change it back to 21, and your first go should be 1, and then stick to multiples of 4

Making Friends
posted to Share by bearbearmo

@AkhilGupta I designed it so that you have to collect all possible coins, if you get them all then you should be able to get to the last level. And I can't claim to be very good at level design at all, I just needed levels so you can actually play it

Making Friends
posted to Share by bearbearmo

@ebest

if(Number.isInteger(parseInt(window.localStorage.getItem("speedSave")))){
  slider.value = window.localStorage.getItem("speedSave");
}
else{
  slider.value = 1;
}

if(Number.isInteger(parseInt(window.localStorage.getItem("moneySave")))){
  money = window.localStorage.getItem("moneySave");
}
else{
  money = 10;
}

if(Number.isInteger(parseInt(window.localStorage.getItem("levelSave")))){
  level = window.localStorage.getItem("levelSave");
}
else{
  level = 1;
}

I used window.localStorage whenever something i want to save (speed, money and level) changes I set it in localStorage

slider.oninput = function(){
  window.localStorage.setItem("speedSave", slider.value)
}

function level_up(){
  window.localStorage.setItem("levelSave", level)
}

In hindsight I should have just saved them when you restart the level

Making Friends
posted to Share by bearbearmo

@timmy_i_chen I've added a level counter underneath the canvas

Space Runner (Please look, I barely have any upvotes)
posted to Share by GameMaster1928

@GameMaster1928


classes are nice functions, personally I prefer them, I was wondering if there was a specific reason for not using them but if not that's fine

Space Runner (Please look, I barely have any upvotes)
posted to Share by GameMaster1928

I had a look at the code, I'm interested why you used functions for the majority of what could have been done with classes, I may be very wrong but from what I understand classes would be better. Also, you use

var

where let or const would be better
The game itself is very good, although i would say the movement is a little sluggish, I don't know if that's intentional but it stopped me from playing after I died.

Making Friends
posted to Share by bearbearmo

@ebest I'm impressed you managed to get through all the levels already there, I'll try and make 2 or 3 incredibly difficult ones

Making Friends
posted to Share by bearbearmo

@PYer I've added a slider which allows you to adjust your speed, going slower than the starting speed can be a bit jumpy but there's nothing i can do about that

Making Friends
posted to Share by bearbearmo

@Ov3R10rd Oh right, thanks

Making Friends
posted to Share by bearbearmo

@PYer I can definitely try

Making Friends
posted to Share by bearbearmo

@amasad I have now added that, I'm afraid you will still have to manually restart the level if you manage to soft-lock yourself, but touching black walls now restarts automatically.

Making Friends
posted to Share by bearbearmo

@amasad That's a good idea, thank you

Making Friends
posted to Share by bearbearmo

@MorganEriksson It's mainly done in javascript, with a tiny bit of CSS and HTML

Making Friends
posted to Share by bearbearmo

@Steven_The_GuyT I could, but it's very difficult coming up with ideas that would be challenging. If you have any suggestions I'd be happy to give them a go.

How To Make A 1 Player Nims Game - Node.js
posted to Learn by bearbearmo

@QuinnRunnenburg It's not impossible, you just have to follow the same method as the computer, It's all down to your first go.

How To Make A Puzzle Platformer In HTML5 And Javascript
posted to Learn by bearbearmo

@Fhillis Thank you very much