Jump to content
IGNORED

Try my Pacman clone I wrote in pure HTML5


Recommended Posts

Hi everyone. I thought I could get some feedback on my clone pacman I wrote in pure html5 and Javascript. 

 

Here is the link.

https://www.icode.com/pacman

 

Let me know what you think?

 

I am thinking of doing a video series on how to write pacman in 5 days for new game developers.

  • Like 4
  • Thanks 1
2 hours ago, bent_pin said:

Very responsive!

Are the controls event driven or do you poll inputs on a fixed schedule?

 

@PacManPlus Have you seen this?

Not until now... thank you for the head's up!

 

Nice job - looks and plays great! :) 

Edited by PacManPlus
  • Like 1
5 hours ago, OldSchoolRetroGamer said:

Very good but DAMN I suck using arrow keys! 😝

in addition to arrow key buttons on the screen, you can use your keyboard or even swipe different directions on your phone or touch screen.  I will add gamepad support next week :)

  • Like 1
7 hours ago, bent_pin said:

Very responsive!

Are the controls event driven or do you poll inputs on a fixed schedule?

 

@PacManPlus Have you seen this?

for Mouse/Touch screen/screen buttons its is event driven input.  For keyboard, it polls 60 times per sec.

Edited by Tantan
  • Thanks 1
6 minutes ago, Tantan said:

for Mouse/Touch screen/screen buttons its is event driven input.  For keyboard, it polls 60 times per sec.

I've always felt a miniscule lag on pacman 2600. Yours absolutely does not have that.

The kb polling is client-side js?

  • 4 weeks later...

Looks and plays very nice. Just one observation: If the intent is to match the arcade game as much as possible (I'm not sure if it is), then the controls don't exactly match.

 

e.g. if you let go of the keys and "tap" a perpendicular direction while going down a path, your pacman will automatically take in the next available passage in that tapped direction. In the arcade game if you do the same thing, Pacman will not take the next turn but instead reach the end of the tunnel and simply face the tapped direction.. if that makes any sense.

  • Like 1
2 hours ago, NE146 said:

Looks and plays very nice. Just one observation: If the intent is to match the arcade game as much as possible (I'm not sure if it is), then the controls don't exactly match.

 

e.g. if you let go of the keys and "tap" a perpendicular direction while going down a path, your pacman will automatically take in the next available passage in that tapped direction. In the arcade game if you do the same thing, Pacman will not take the next turn but instead reach the end of the tunnel and simply face the tapped direction.. if that makes any sense.

 

Some would say you're overthinking it.  While I definitely view you as wise beyond your years,...I was imagining what it would be like if any of us got to play this (for free,  let's say) back in 1981 or so...I think it would register as somewhere between "Holee Shiiit!"  and (spoken with bravado like someone who played a lot of Pac-Man (even though I was a punk who almost never played it)) "It's almost Exactly like the Arcade, Man!" ...

9 hours ago, NE146 said:

Looks and plays very nice. Just one observation: If the intent is to match the arcade game as much as possible (I'm not sure if it is), then the controls don't exactly match.

 

e.g. if you let go of the keys and "tap" a perpendicular direction while going down a path, your pacman will automatically take in the next available passage in that tapped direction. In the arcade game if you do the same thing, Pacman will not take the next turn but instead reach the end of the tunnel and simply face the tapped direction.. if that makes any sense.

Thanks so much for the feedback!

 

Yes, intent is to match arcade version as much as possible. I will check into the direction control. I sure like that you can let the system know ahead of time of your intent but I will make it an option after I check the arcade version. 

Yeah np.. I guess just to be clear, as an example:

 

1) If you start on left side of the very bottom corridor, then push right, pacman will start moving to the right.

2) Then quickly "tap" up  (push up for a moment then let go)

  a) In your version, once he passes the first upward corridor, he will go into it, even though you're not touching the controls. 

  b) In the arcade game pacman will still continue to the right until he reaches the dead end on the bottom right side of the corridor (he then faces upward but remains at a stop)

 

Not too huge a deal at the end of the day 😛 I think it's a great job as it is tbh!

 

 

 

Edited by NE146
  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...