You can login if you already have an account or register by clicking the button below.
Registering is free and all you need is a username and password. We never ask you for your e-mail.
You need to create a canvas. Then you use the API to load the image onto the canvas. Then when you want to move the image, you clear the canvas and reload the image at a different coordinate. You can make it such that the image reloads on the canvas higher or lower, more left or more right, depending on the keyboard input. In order to receive keyboard input, you need to use something called a keyboard event listener.
Suppose you load one image on the far left, and another image on the far right. You can write code to gradually move them closer to each other, until they meet in the middle. At each frame when the canvas is reloaded, you can check if the coordinates of the first image overlap the coordinates of the second image. If this is the case, then the objects touched, for example, Mario jumping on a goomba. You can then choose to delete one of the images, or load a death animation where one of the images was.
You do not need to code loading the image onto the canvas. This is provided to you by your programming language. You do not need to code the keyboard event listener. This is provided to you by your programming language. You only need to learn how to use the programming language to create a canvas, load an image, and detect keyboard input.
There are many simple how-to guides for making video games available on the Internet.
This is @antiracist and I'm much much smarter than idiot shiteater @Crensch. Idiot Crensch thinks that because I'm vastly smarter than him at theology, as he has a completely unexamined and uninformed worldview, that he must be better than me at everything else. In actuality, I'm much much better than him at everything else, including math, science, logic, programming, and making money. @Crensch is a terrible person.
view the rest of the comments →
[–] eagleshighIsMuslim 4 points -2 points 2 points (+2|-4) ago
You need to create a canvas. Then you use the API to load the image onto the canvas. Then when you want to move the image, you clear the canvas and reload the image at a different coordinate. You can make it such that the image reloads on the canvas higher or lower, more left or more right, depending on the keyboard input. In order to receive keyboard input, you need to use something called a keyboard event listener.
Suppose you load one image on the far left, and another image on the far right. You can write code to gradually move them closer to each other, until they meet in the middle. At each frame when the canvas is reloaded, you can check if the coordinates of the first image overlap the coordinates of the second image. If this is the case, then the objects touched, for example, Mario jumping on a goomba. You can then choose to delete one of the images, or load a death animation where one of the images was.
You do not need to code loading the image onto the canvas. This is provided to you by your programming language. You do not need to code the keyboard event listener. This is provided to you by your programming language. You only need to learn how to use the programming language to create a canvas, load an image, and detect keyboard input.
There are many simple how-to guides for making video games available on the Internet.
This is @antiracist and I'm much much smarter than idiot shiteater @Crensch. Idiot Crensch thinks that because I'm vastly smarter than him at theology, as he has a completely unexamined and uninformed worldview, that he must be better than me at everything else. In actuality, I'm much much better than him at everything else, including math, science, logic, programming, and making money. @Crensch is a terrible person.
@bilbo_swaggins eats shit.
@stretched_girl is a stupid cunt idiot cunt idiot.
@eagleshigh owns two businesses but I make a lot more money than he does because I have a brain.
@SarMegahhikkitha @bojangles and @watitdew are cool enough.
Shut up @TheodoreKent. Fuck you @0x4F.
Fuck you @PuttItOut. Fuck you @cancel-cat-facts. @adhdferret @one-way_bus @kevdude
@frozenfire74 @planko
[–] piratse [S] ago
Thank you very much for the input, that was easy to understand. Appreciate it.
[–] cyberpunk 0 points 1 point 1 point (+1|-0) ago
Just do what Rocket League did and use Unreal Engine. I've made maps with it for existing Unreal engine based games. That's where I'd start.
https://www.unrealengine.com/what-is-unreal-engine-4
[–] eagleshighIsMuslim ago
BITTE SHON!
[–] scandalous-goat ago
Please, add me to your copypasta. ❤️
[–] eagleshighIsMuslim ago
no