HTML5 games

  • 7 Replies
  • 1704 Views
*

FlatAssembler

  • 670
  • Not a FE-er
HTML5 games
« on: October 10, 2017, 02:24:41 AM »
Hey, guys! I've just made a simple HTML5 game for my new website.
http://flatassembler.000webhostapp.com/pacman.html
It's made primarily for smartphones (it's playable on computer by mouse). It's supposed to have two interfaces. One of them, as in classical Pacman, you control the Pacman by pressing the buttons (in this case, on the screen, below the labyrinth). The other one is that, when you tap somewhere in the labyrinth, the Pacman follows your finger.
I've only managed to test it on Samsung Galaxy S3 Mini. There, both interfaces work.
Can you tell me how it works in the browser of your smartphone?
Fan of Stephen Wolfram.
This is my parody of the conspiracy theorists:
https://www.theflatearthsociety.org/forum/index.php?topic=71184.0
This is my attempt to refute the Flat-Earth theory:

*

FlatAssembler

  • 670
  • Not a FE-er
Re: HTML5 games
« Reply #1 on: October 11, 2017, 10:58:44 PM »
Look, guys, you don't need to know JavaScript to help me now (though it would be favorable). Just tell me what smartphone you have and whether the game I linked to works on it!
Fan of Stephen Wolfram.
This is my parody of the conspiracy theorists:
https://www.theflatearthsociety.org/forum/index.php?topic=71184.0
This is my attempt to refute the Flat-Earth theory:

*

Bullwinkle

  • The Elder Ones
  • 21053
  • Standard Idiot
Re: HTML5 games
« Reply #2 on: October 11, 2017, 11:05:26 PM »
I scored 77 on a PC. Had to look away to steer my guy.
The ghosts didn't seem to care where I was headed.

*

Username

  • Administrator
  • 17670
  • President of The Flat Earth Society
Re: HTML5 games
« Reply #3 on: October 12, 2017, 05:05:20 PM »
You can test most of the ios based devices using xcode if you have a Mac. When I get home from vacation, I'll plug in a test device and see how it runs on a real device as well and report back.
The illusion is shattered if we ask what goes on behind the scenes.

*

Username

  • Administrator
  • 17670
  • President of The Flat Earth Society
Re: HTML5 games
« Reply #4 on: October 12, 2017, 11:56:51 PM »
Also, look into cordova for publishing it to devices.
The illusion is shattered if we ask what goes on behind the scenes.

*

FlatAssembler

  • 670
  • Not a FE-er
Re: HTML5 games
« Reply #5 on: October 17, 2017, 06:58:43 AM »
Quote
I scored 77 on a PC.
It was primarily meant to be for smartphones, but thanks anyway.
Quote
Had to look away to steer my guy.
On smartphones, the Pacman is supposed to follow your finger, in the direction where you last tapped.
Quote
The ghosts didn't seem to care where I was headed.
Yes, on the first level, they move at random. On the second level, the orange starts to use DFS to get away from you (so that it's harder to score by killing it). On the third level, the red one starts to use BFS to get to you, and the orange starts to use DFS to away from it (to catch you when you run away from the red one), while the pink one starts to use the greedy algorithm to get to you (which is pretty much effectively random).
I believe my high-score was something around 6'000.
Quote
You can test most of the ios based devices using xcode if you have a Mac.
When it comes even the most basic animations, there is no guarantee that an app that works in a simulator would really work on iOS.
Quote
Also, look into cordova for publishing it to devices.
Thanks! I actually knew about Cordova, and it wasn't my intention to publish it to mobile devices. I just wanted to learn more about HTML5 and perhaps create some simple game for my new website. Besides, on Samsung Galaxy S3 Mini, it also works offline if downloaded and started in Chrome (though I suppose not many people know how to do that).
Fan of Stephen Wolfram.
This is my parody of the conspiracy theorists:
https://www.theflatearthsociety.org/forum/index.php?topic=71184.0
This is my attempt to refute the Flat-Earth theory:

*

FlatAssembler

  • 670
  • Not a FE-er
Re: HTML5 games
« Reply #6 on: April 21, 2020, 09:06:48 AM »
I got banned from 000webhost from hate speech, so I migrated my site to GitHub pages. The new URL of that PacMan is:
https://flatassembler.github.io/pacman.html
I've improved it in multiple ways.
Fan of Stephen Wolfram.
This is my parody of the conspiracy theorists:
https://www.theflatearthsociety.org/forum/index.php?topic=71184.0
This is my attempt to refute the Flat-Earth theory:

*

FlatAssembler

  • 670
  • Not a FE-er
Re: HTML5 games
« Reply #7 on: March 24, 2021, 10:00:15 PM »
Can you help me with this, please: https://stackoverflow.com/questions/66781588/ghost-eyes-in-svg-pacman-are-rendered-correctly-in-firefox-but-not-in-other-bro
I have managed to make eyes on the ghosts in the PacMan game I am making render in Firefox, but not to make them render in other browsers. I do not know what I am doing wrong.
Fan of Stephen Wolfram.
This is my parody of the conspiracy theorists:
https://www.theflatearthsociety.org/forum/index.php?topic=71184.0
This is my attempt to refute the Flat-Earth theory: