New course! Every coder should learn Generative AI!
Try a free lesson+ 12
If youre persuing game programming youre going to have to think extremely literally.
E.g...
How do these logos appear?
Its an image [take an image] that is there for some time [create a timer] during bootup [place logic in the boot state]. Sometimes it fades away [reduce global alpha], accelerates right [update X], etc.
you can do it in html the same way except you will have to mess with dom and css instead of the plain image.
Personally I prefer to do everything on canvas, but many people here use all 3
+ 5
https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/Image
This website is extremely helpful overall
+ 4
Up there, in your original question buddy 👆
Pick 'Edit' from menu to the right, and it's all good 👍
+ 2
by adding game state possibly ?
if(gamestate == LOGO_SCREEN)
return drawImage(imagelogo, 0, 0, canvas.width, canvas.height);
you can also start a timer to change the gamestate at the start.
setTimeout(()=>{gamestate = MAIN_MENU}, 5000);
+ 2
Please put 'HTML canvas game' in Relevant Tags section, just to improve context clarity 👍
+ 2
you have to learn CSS art for the purpose
+ 1
pure html ? or you're using canvas ?
0
You can do it with css stylesheet. I'm still learning and I'm a novice. So, can't write the code right now. But I saw this kind of stuff being done by css.
0
https://drive.google.com/file/d/1-5NAQAHdrmW7ynUdRytCcn4Mb2PlRt4h/view?usp=drivesdk
Wish you could get some help form it. I created the image file, by rotating and opening as a layer in gimp.
0
you said to comment regardless of experience so... good luck?
0
Hahaha 😂😂😂
0
bad luck then.
0
I've seen it. It's looking like you're hosting a competition
0
when you finish the game let me know i want to try it.
0
didnt you say you were making a game?if not my bad.
0
ok thx ill check it out
0
I'm a novice. And I want to do it also.
Let's not copy the codes from other sources and try to learn by practicing.
Zachary Miguel Marinha
0
Something in the comments
0
I am beginner so I don't know that much