Allegro.cc - Online Community
Post Reply

Allegro.cc Forums » The Depot » Deluxe Pacman 2 updated

rss feed Print
Deluxe Pacman 2 updated
Neil Roy
Member #2,229
April 2002
avatar

This seems too empty so...

My Deluxe Pacman 2 game (Allegro 5 + MinGW) was just updated with the newest Allegro 5 build (thanks Edgar) and is available along with older versions here for free, if you're curious. No strings attached, I mainly made it for my wife years ago.

http://home.cogeco.ca/~nroy15/games_index.html

Gameplay video...

video

Note: the above video was recorded with NVidia's Share (ALT+Z to bring up the interface), for anyone curious.

--
Deluxe Pacman
"I am not ashamed of my belief in God."

Eric Johnson
Member #14,841
January 2013
avatar

Seems like a fun game. Too bad I'm banned from playing it. ::)

Neil Roy
Member #2,229
April 2002
avatar

;D

--
Deluxe Pacman
"I am not ashamed of my belief in God."

Eric Johnson
Member #14,841
January 2013
avatar

Silliness aside, I really do enjoy Deluxe Pacman 2. When I first played it, I expected it to be a one-to-one clone of Pac-Man; but to my surprise, it was so much more! You've really done a great job at improving upon the classic Pac-Man formula. Movement is smooth, the sound effects are nice, and the items are a blast to collect. I played for a few hours the other night and was surprised at how much new stuff the game kept throwing my way. Well done! :)

Neil Roy
Member #2,229
April 2002
avatar

Thanks. It's been fun to work on. Did you like my Bible in there? :)

--
Deluxe Pacman
"I am not ashamed of my belief in God."

Eric Johnson
Member #14,841
January 2013
avatar

I sure did! I like how it protects the player. :) The one power-up that threw me off though was the skull. I should've known better. :P

Neil Roy
Member #2,229
April 2002
avatar

Yeah, you just needed to read the HELP section, it describes all of them... well... except the skull, it just says "Guess" beside it. ;D

The reason why I threw the skull in there was because I figured with the question mark tool, which gives you one of the tools at random, I figured there needed to be some risk grabbing it. So one of the tools there is a risk of getting is the skull. :)

Have you tried the level editor yet? It's in there too and very simple to use, you just pick a line set and draw (left mouse button held down and drag).

I wonder if I could make a Javascript version of this? I only played around with Javascript a little one day when I follow3ed a Youtube tutorial on it.

--
Deluxe Pacman
"I am not ashamed of my belief in God."

Eric Johnson
Member #14,841
January 2013
avatar

Yeah, I've tried the level editor. It's surprisingly easy to use and works well. I'm not a very good level designer though, but that's my own problem. :P

It's definitely possible to make a JavaScript version of Deluxe Pacman 2. C/C++ and JavaScript are different in a lot of minute ways though, so depending on what your code looks like, it might require a lot of rewriting.

If you're interested in going deeper into JavaScript, I recommend watching some tutorials on YouTube to learn the ins and outs of the language. Much of it is similar to C, but it has its own quirks. It's an easy language to get into if you've already mastered C though. Anyway, once you've got JavaScript as a language down, I recommend looking into the canvas API (which is what I use), or looking into a library that abstracts all of that for you.

Feel free to shoot me a message if you have any questions about JavaScript and/or the canvas API. I'd be more than happy to lend a helping hand.

Neil Roy
Member #2,229
April 2002
avatar

The tutorial I already followed (and programmed myself while watching it) used canvas where he had you make a simple JS game, whack-a-mole. :) I did like how programming with canvas worked.

I'm mainly a C programmer (not C++, I do pure C, with a C compiler) and have always loved it. My games are all in pure C. I usually program with the 2011 C standard, which is what I did with this, though I don't think I used any 2011 specific code (using commandline "-std=gnu11" which is the 2011 C standard with gnu extensions). I am not a fan of classes, I actually enjoy seeing if I can do stuff in C that is similar to C++. I liked C++ vectors for example, and I wanted a stack style function (you know, with PUSHing and PULLing to and from the stack), so I wrote my own in C (I used it in DP2). Worked well and I was surprised at how easy it was to implement, so long as you're comfortable with pointers and allocating memory, which seems to frighten C++ programmers to no end, ;D.

--
Deluxe Pacman
"I am not ashamed of my belief in God."

Eric Johnson
Member #14,841
January 2013
avatar

Neil Roy said:

I liked C++ vectors for example, and I wanted a stack style function (you know, with PUSHing and PULLing to and from the stack), so I wrote my own in C (I used it in DP2).

Wow! :o How long did that take you to implement?

The biggest fundamental difference between C and JavaScript is the lack of pointers and references in the latter. You can pass by reference in JavaScript if you turn variables into object literals (which are kind of like structs) first, but it's not the same. So anything that uses a pointer or a reference would have to be rewritten in JavaScript.

Somewhat related, I tried recreating the API and functionality of Allegro 5 in JavaScript a few months back. It wrapped around the canvas API and I called it "allegro5.js". I stopped developing it when I hit a major snag in creating an event-driven system for inputs though. That's when I started my own library, Momo, which handles inputs more like Allegro 4 did. Check it out if you're interested. I got tired of writing lots of boilerplate code all the time, which prompted me to wrap it all in a small library.

Neil Roy
Member #2,229
April 2002
avatar

Wow! :o How long did that take you to implement?

An afternoon, just a few hours maybe? I attached a Code::Blocks project I created at the time to test it out as I created it, it has the source etc... if you're curious. I modified this and simplified it for my game, but this is essentially what I use in my game.

I did get some help understanding certain aspects in these forums, so it may have been a day or two, but total time wasn't that much and I probably spent more of that time implementing it in my game, as I had to rewrite large portions of my code to accommodate this new way to do things.

--
Deluxe Pacman
"I am not ashamed of my belief in God."

SiegeLord
Member #7,827
October 2006
avatar

Always nice to have a completed, polished game made with Allegro. Too bad I suck at Pacman... died on the second stage >_<.

"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18
[SiegeLord's Abode][Codes]:[DAllegro5]:[RustAllegro]

Post Reply
Go to: