Click here for free DL of the app version that can save data.
No:19701 53
Prev Next
Make a controller that moves around
Developer User8786|Date and time 23/10/6 1:45:02
Build time 14.291 sec|Game capacity 2.519KB|Script

Sure! I can provide you with a basic code snippet that creates a game controller using pictograms and allows you to move it around on a smartphone screen. Please find the example below:


Up
Left Right
Down


In the above code, we have a game controller represented by pictograms (up, left, right, and down arrows) enclosed in `<img>` tags. Each image has an `onclick` attribute that calls the `move()` function with the respective direction as a parameter. The `move()` function updates the position of the controller by changing the `top` and `left` styles of the `controller` div. You would need to replace the `emozi_rabbit.png`, `emozi_hamuster.png`, `emozi_dog.png`, and `emozi_himawari.png` with the actual image files you want to use as pictograms. Please note that the provided code is a basic example and can be further enhanced based on your specific game requirements.

Prev Next   Back  0  0 Menu 

[PR]現在のプレゼントランキング

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

(C)2023 HisashiApp