Posts Tagged ‘pacman’

  • Phaser Coding Tips 5

    Phaser Coding Tips is a free weekly email – subscribe here.

    phaser-tips-header1

    After a couple of weeks spent working on platform game mechanics I felt we ought to take a small break. Therefore this weeks tutorial is based on an often requested feature on the forum: grid movement. Or more specifically, “How to move around a grid smoothly like Pacman”.

    We’ll cover the code needed to gracefully slide around a tilemap, turning on a dime and create the full core of a Pacman game.

    Get the source

    I’m only going to highlight the most important parts of the code here. So please always look at the source first. If you’ve questions about something I didn’t cover then ask on the forum.

    Run / Edit the Cars code on jsbin or codepen
    Run / Edit the Pacman code on jsbin or codepen

    Clone the phaser-coding-tips git repo.

    lets-code-header

    The Basic Set-up

    We’ll need a player sprite and a tilemap. The tilemap contains the layout of the level. Here we’ve drawn a simple level in Tiled:

    tiled

    This is exported as a JSON file and loaded into our game, along with the tileset. In the create method we set our objects up:
    Read More

  • Announcing Turbo Stripe Software

    I was digging through some boxes in our attic when I came across an old folder. It contained computer magazines and comics I had made back in the mid 1980s, aged around 10 years old. I used to sit there and literally draw my own magazines. I’d draw the covers, the layout, even screen shots for the games I was reviewing. One such magazine I called Arcade & Software. Very much inspired by Computer + Video Games (C+VG) of the mid 80s:

    Arcade and Software Magazine Cover

    Here is the cover of issue 1. I only ever made 2 issues. The two games I’ve drawn on the cover are Knight Tyme (on the left) and Alien 8 on the right. Not that the robot looks a thing like the robot in Alien 8 mind you.

    While flicking through Arcade & Software what caught my eye however was the inclusion of the Turbo Stripe Sofware Catalogue. This catalogue contained a list of games that as a 10 year old I really wanted to be making myself, complete with box cover artwork, short descriptions and even prices and ordering instructions.

    These games never existed, I didn’t actually code them back then. I simply wasn’t capable of doing so at that age. It would be a couple more years before I started programming for myself. Reading through this fictitious catalogue there was something captivating about knowing that several decades ago this is what I really wanted to be doing. And these were the sorts of games a 10 year old me wanted to making.

    So you know what? It’s time to fulfil a small part of that childhood dream and actually make one of those games. But which one? To decide let’s push embarrassment aside for a moment and dive right in …

    … I present to you, in all its time-warped yellow-sellotaped glory the Turbo Stripe Software Catalogue (1987). Please excuse the horrendous spelling. And I claim no responsibility for copyright infringement re: the game ideas shown.

    Turbo Stripe Software Catalogue Page 1

    So here’s the front cover. The first thing to explain is that as a child I owned a Toshiba MSX 8-bit computer. In hindsight this was an incredible machine. It had a built-in cartridge port for which you could get some amazing games from the likes of Capcom and Konami. Games such as Nemesis (Gradius), Road Fighter, Sky Jaguar and Castlevania. It also had a tape recorder for the cheap tape-based games from Mastertronic, Ocean, Gremlin and other software houses of the day.

    It was a great computer, even if virtually no-one else owned one (which made acquiring games in the school playgroup extremely difficult).

    Obviously the kid playing on the MSX on this front cover is doing so with some kind of advanced invisible Wiimote. Turning the page …

    Turbo Stripe Software Catalogue Page 2

    And here we have the first two games. I’ll give you no clues as to what Hoppin Harry was going to be a clone of. As you can see collecting the “lady frog” would net you “bounes points” [sic]. I think the 00010 number is the ordering code. Obviously leaving room for another 99,000 or so titles of similar quality.

    Turbo Driver was my version of the bastard child of Spy Hunter and Super Sprint. Needless to say this would have incredible graphics too (at least I managed to spell that correctly this time). I’m not entirely sure how this game would play or look, I think it’s just filling space to be honest 🙂

    Turbo Stripe Software Catalogue Page 3

    Ahh the classic Lock In Man. No, it has nothing to do with after-hours at a pub/bar. Instead you are trapped in a maze with “pellets” to eat and ghosts to avoid. I’m not sure why I didn’t just call it Pacman and be done with it. The one thing I remember most about my plans for this game, and which is alluded to in the description, is that it would ship with a level editor. I always got bored of the single level layout of Pacman and figured it’d be fun to create your own. I still think there is a shred of inspiration in that idea. Perhaps the maze could literally change around you as you play? So it becomes not so much about reflex based survival as it does puzzle solving.

    The final game in the catalogue is Chalic. That’s my 10 year olds spelling of chalice (i.e. a cup/goblet). This was going to be a hybrid Gauntlet / Rogue game with more fantasy RPG overtones. As you can read in the description you’d be trapped in an ever-changing maze, and are trying to rescue a chalice before the Wizards monster does. I’ve no idea on earth why a chalice would need “rescuing”. I mean it’s just a bloody cup. But obviously it was in danger. Maybe if the Wizard drank from it, the world would be forever enslaved and “Prince Hugh” would wither and die? Who knows. I wrote the damned thing and even my mind is still reeling.

    It’s worth noting that “Chalic” was only going to have “good” graphics rather than “excellent”. I find it interesting that I wrote it would have a “good title page”. Obviously game title pages were very important to me at the time. And the more I reflect on that I realise that actually they still are important to me today. I will often spend a disproportionate amount of time on the title pages for my games.

    Coming soon was SOS North Sea and Ship-T11. SOS North Sea was a blatant rip of Chop Lifter. Ship-T11 was just going to be a shmup, the T11 part being the name of my calculate I had at the time. I’m not including these two games as being eligible for creation.

    Which of these four gems do I feel is worth of being converted to Flash? It’s a tough choice.. personally I’m favouring “Chalic”, but I’ll open this up to the couple of you insane enough to have read this far. Which would you like to play? 🙂