Click here for free DL of the app version that can save data.
No:24148 75
Prev Next
Generative Art
Developer User11326|Date and time 23/11/6 5:10:56
Build time 81.949 sec|Game capacity 4.726KB|Script


Sure! Here's a simple generative art game implemented as a single HTML file using JavaScript and enclosed in script tags. The game is designed for smartphone operation and uses pictograms.



In this game, you'll see various pictograms randomly generated on the canvas. You can touch the pictograms on your smartphone screen to remove them. New pictograms will be generated at random positions with new symbols and colors. The `generateRandomColor()` function generates a random hexadecimal color code, `generateRandomPosition()` function generates random positions for the pictograms, and `generatePictogram()` function selects a random pictogram. The canvas is set to match the screen size and the `drawPictograms()` function is responsible for drawing the pictograms on the canvas. The `onTouch()` function handles touch events on the canvas, checking if a pictogram is touched and removing it from the array. The canvas element is listening for touch events using the `addEventListener()` method, and the initial pictograms are drawn using the `drawPictograms()` function. I hope you enjoy playing this generative art game!

Prev Next   Back  0  0 Menu 

[PR]現在の欲しいゲームランキング

Click here for free DL of the app version that can save data.

(C)2023 HisashiApp