Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (109)
games submitted by our members
Games in WIP (536)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Where can I find a simple, clean open-source PacMan?  (Read 5981 times)
0 Members and 1 Guest are viewing this topic.
Offline Lewisham

Senior Newbie




Indeed


« Posted 2009-07-30 01:05:19 »

Hi guys,
I'm looking for a simple, good open-source object-orientated implementation of PacMan to modify for my PhD research (which will in turn be open-source). I've seen a couple of PacMac clones, which are either:

  • not open source
  • not OOP at all
  • overly complex (PacDasher, while a great implementation, has about 50 Classes files at a rough guess!)
  • incomplete

I've looked through the forums here, and while Millenium PacMan is great, it's not open-source, and a bunch of other ones I found were dead links.

I'm sure the people of the Java Gaming boards know of plenty of awesome PacMan games, but I'm having difficulty finding them!

Any and all help is very much appreciated!
Offline Lewisham

Senior Newbie




Indeed


« Reply #1 - Posted 2009-07-30 01:21:39 »

Oops! Double post...
Online kappa
« League of Dukes »

JGO Kernel


Medals: 75
Projects: 15


★★★★★


« Reply #2 - Posted 2009-07-30 01:22:11 »

Well you could just write one, if you can't find a clean open source version?

btw why do you need PacMan? is it for learning?

if you just need source code for learning the basics of how you would write a game in Java, I'd say have a look at the excellent Space Invaders tutorial over at http://www.cokeandcode.com/spaceinvaderstutorial its very good for learning.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Lewisham

Senior Newbie




Indeed


« Reply #3 - Posted 2009-07-30 01:55:10 »

Well you could just write one, if you can't find a clean open source version?

btw why do you need PacMan? is it for learning?

if you just need source code for learning the basics of how you would write a game in Java, I'd say have a look at the excellent Space Invaders tutorial over at http://www.cokeandcode.com/spaceinvaderstutorial its very good for learning.

There are good reasons I haven't stepped up and written one myself Smiley

I'm developing a new game framework for my research, and part of the story of my paper is to say "this works on games people have actually written, I haven't just written ones myself that happen to work with this thing." This ideally requires me to use others' code for it.

It's funny you should mention that Space Invaders game, as that is the first game I adapted to the framework, and it worked! I now need to take a step up in complexity, which is where PacMan came in. This has AI opponents, as well as movement constraints and such, that make it interesting. By complexity, I am specifically looking at the rules of the game. While say, Asteroids, can be quite complicated, much of it is a geometry problem, not a game design problem.

PacMan isn't a requirement, just something along that sort of complexity, with a recognizable game to someone who will never play it (they'll just read the paper). I've been trying to get PacDasher to work, but it's reliance on an old XML parser library that doesn't exist (JDOM instead of W3C DOM) means the entire XML parser would have to be rewritten to build, which is a pain, given that the code is already pretty complicated  Undecided
Online kappa
« League of Dukes »

JGO Kernel


Medals: 75
Projects: 15


★★★★★


« Reply #4 - Posted 2009-07-30 02:10:22 »

well ok, not sure i know of any good java pacman games that are open source, however there is one tutorial written for javafx, I know its rather different but should be pretty easy to convert to pure java, it can be found at http://www.javafxgame.com/how-to-write-pac-man-game-javafx/
Offline Lewisham

Senior Newbie




Indeed


« Reply #5 - Posted 2009-07-30 02:35:20 »

well ok, not sure i know of any good java pacman games that are open source, however there is one tutorial written for javafx, I know its rather different but should be pretty easy to convert to pure java, it can be found at http://www.javafxgame.com/how-to-write-pac-man-game-javafx/

Yeah, I found that one, and then considered killing a man when I found out JavaFX doesn't make Java readable objects easily, so my framework won't bolt on. You're right though, converting the code to Java might be the way to go. It's a good, simple implementation.
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #6 - Posted 2009-07-30 11:33:10 »

sry for the newby question, I am curious what exactly does you framework do?
Offline Lewisham

Senior Newbie




Indeed


« Reply #7 - Posted 2009-07-30 19:37:26 »

sry for the newby question, I am curious what exactly does you framework do?

It's not a newbie question, I purposefully withheld it when I wrote my posts Smiley I don't want to get scooped http://www.phdcomics.com/comics/archive.php?comicid=789, you see.

I won't tell you what it does, but I will tell you that it does it via reflection and accessing object methods, so a good architecture is important for it to work correctly. Some PacMac clones are written like they've been done in C, which makes it almost impossible for the framework to work.

I think I'm going to edit that JavaFX version back to POJO (Plain Old Java Objects) for the characters, and leave JavaFX on the GUI end and work with that.
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #8 - Posted 2009-07-30 20:31:44 »

fine I guess taht would suck very badly.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CogWheelz (18 views)
2014-07-30 21:08:39

Riven (27 views)
2014-07-29 18:09:19

Riven (16 views)
2014-07-29 18:08:52

Dwinin (14 views)
2014-07-29 10:59:34

E.R. Fleming (35 views)
2014-07-29 03:07:13

E.R. Fleming (13 views)
2014-07-29 03:06:25

pw (44 views)
2014-07-24 01:59:36

Riven (44 views)
2014-07-23 21:16:32

Riven (30 views)
2014-07-23 21:07:15

Riven (31 views)
2014-07-23 20:56:16
List of Learning Resources
by SilverTiger
2014-07-31 18:29:50

List of Learning Resources
by SilverTiger
2014-07-31 18:26:06

List of Learning Resources
by SilverTiger
2014-07-31 13:54:12

HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!