Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Nice! The challenge level is about right. My high score:

This is a pretty faithful recreation of the original. I think it works pretty well. Some minor improvements would be consistent icons/images, add sound.

The movement works well. One thing to consider would be diagonal moving (and could be reused in other programs as well). If that was the case

I made a little example of one way that could work. There are more sophisticated ways as well:

//moving on a diagonal
let x,
  y,
  xspeed = 0,
  yspeed = 0;

//i left out setup() boilerplate

function draw() {
  if (keyIsPressed) {
    if (keyCode == RIGHT_ARROW) {
      xspeed = 2;
    }
    if (keyCode == LEFT_ARROW) {
      xspeed = -2;
    }
    if (keyCode == DOWN_ARROW) {
      yspeed = 2;
    }
    if (keyCode == UP_ARROW) {
      yspeed = -2;
    }
  } else {
    xspeed = 0;
    yspeed = 0;
  }
  x += xspeed;
  y += yspeed;
  circle(x, y, 10); //or draw player here
}