karl5252 / Toolio

n this game, players guide a character through a series of dynamic environments filled with obstacles, enemies, coins, and hazardous beer pits.
MIT License
1 stars 0 forks source link

Add mobile browser support #27

Open karl5252 opened 7 months ago

karl5252 commented 7 months ago

Few times questiona rose -why i cant play it on mobile?

It wasnt intended. BUT it would be good to consider such option.

  1. Touch Controls: Mobile devices don’t have arrow keys, so I’ll need to implement touch controls. I could use on-screen buttons for left, right, and jump actions. These buttons would call the same functions as keypress events.
  2. Screen Size: Mobile devices have a wide range of screen sizes. I’ll need to make sure my game scales properly and is playable on small screens. This might involve adjusting the layout or size of game elements, or even changing the way game plays on smaller screens...
  3. Performance: Mobile devices are generally less powerful than desktop computers, so I might need to optimize game to run smoothly on lower-end devices. This could involve further optimiziatiion of my code, or reducing the number of entities in game world.
  4. Orientation: To consider whether I want my game to be playable in portrait mode, landscape mode, or both, and implement design accordingly.
  5. Testing: Test game on a variety of devices and browsers to ensure compatibility.

This is the moment I wish I had used a framework for JS games ;) But on the other hand idea was to build something from scratch as learning expereince,

karl5252 commented 5 months ago

To be developed in Toolio ver 2.0