r3b0rn
@r3b0rn
In this fun little game there is no ending. Just keep serving the people of Monkeyville with best pizzas in town! Hope you enjoy!
HTML, CSS, JS
In this update, I started playing around with "localStorage". In the console, type window.localStorage or just localStoage and it will show you all of
HTML, CSS, JS
How do you edit text files using js not node js but js
SixBeeps To further elaborate on what @EpicGamer007 said:
If browser JS had access to the local file system, that would mean anyone could make a website to simply delete all of your files in one go, all without user input. Not good.
Instead, if you were to use Node.js, that works in the application scope rather than in the internet scope. Thus, there'd be no danger in allowing access to the local file system.
What exactly are you looking to achieve by editing a file on the local system?2 years ago
can anyone teach me a node js chat app. I just cant understand. just write sure and ill invite you!
EpicGamer007 I can help you but the best tutorial i have seen is on the socket.io website made with socket.io: https://socket.io/get-started/chat2 years ago
Suggestions:
None
Bugs:
None yet
Updates:
-Harder
-Bug Fixes
-Canvas Border Visible
Enjoy!
HTML, CSS, JS
Created by: @r3b0rn
Suggestions:
None yet
Bugs:
Ball glitching out of map-fixed
player occasionally leaving map-fixing
HTML, CSS, JS
tipollae Great game! You should also use a jquery (jquery is a javascript library) for the player movement, it will make your movement for the player more smooth, I will link the code:
https://playermovement.cheesehasman.repl.co/jquery.js
How to use this library:
copy paste that code you see in it and put it in a new script in your repl/project, link the script to the HTML: "
now that you have done that copy this code and put it on your script for the game (not the jquery script):
//wasd controller 2 years ago
tankerguy1917 Noice. I glitched it out and made the ball disappear, so infinite points.
RUUNN!2 years ago
how do i detect if the ball hits the square (collison)
HTML, CSS, JS
Coder100 you could check if the x and y position of the circle is greater than the x of the rect and the y of the rect respectively and also if it is less than the x+width of the rect and y+height of the rect respectively too.
if (x > rx && y > ry && x < rx + width && y < ry + height)
where x and y is the position of the circle and rx and ry is the position of the rect and width and height is the width and height of the rect.2 years ago
Im making a game, its like a platformer and I want my character to move around everywhere using arrow keys. Can someone show me how to do this
ruiwenge2 you can do this:
document.addEventListener("keydown", function(e){
if(e.key == "ArrowLeft"){
// do something
} else if(e.key == "ArrowRight"){
// do something
} else if(e.key == "ArrowUp"){
// do something
} else if(e.key == "ArrowDown"){
// do something
}
});
`2 years ago