A very basic base for a DHTML game (Advanture?)

By Lochard | As a newbie programmer | 21 Aug 2022


Seeing someone said that she wants to make a game for her boyfriend birthday's on another website but seemed to be convinced that there won't be enough time to learn and code a simple game. Since I am also a beginner on coding, I was interested and coded a very crude base of the game which is around one hundred lines to show that the basics of coding ain't really that hard. I would like to share it here as well (and might be somewhere else). There is no comment in the code though.

It is still very bland with just one kind of event that pop an image (and the image is just a line). The event can be triggered by clicking on any corner of the background if you have not clicked the "Change Location" button.

You maybe find the sample page and the code via links below if you are interested.

How do you rate this article?

2


Lochard
Lochard

20240228 Arrived in the UK for about 2 week. All my fears persist. Some are even getting worse. https://github.com/locharp/asylum_diary/


As a newbie programmer
As a newbie programmer

Sharing entry level codes. My snippets on GitHub https://github.com/locharp/code-snippets

Publish0x

Send a $0.01 microtip in crypto to the author, and earn yourself as you read!

20% to author / 80% to me.
We pay the tips from our rewards pool.