• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
ronenkre

Original Pac-man documented source code

20 posts in this topic

[size=2]Hi.[/size]

[size=2] [/size]

[size=2]I'm not much of a gameprogrammer, but as many I wanted to be for a very long time. While reading whatit takes to be a game programmer, I believe it was here, someone suggested towrite a Tetris, breakout and Pacman games for starters. I got only as far asTetris (just the game, no welcome screen, save game, players, etc. )[/size]

[font=Arial, sans-serif]But I always wanted toprogram a Pac-man clone, and after reading on the Internet that Pac-man was a deterministicgame, I wanted to make the EXACT clone.[/font]

[size=2]As I mentioned before,never got to that. But I did get as far as finding the original ROM assembler(US version I believe, not puck-man, but they are pretty much the same)[/size]

[size=2]and tried to find outthe ghosts AI. I must admit I was blown away by the sophistication of this 4kgame. [/size]

[size=2] [/size]

[size=2]My humble contributionfor this site, is a commented asm file with what I got (I think it haslike 80% percent of the code, but there bound to be some mistakes, I wastired throughout most of the process)[/size]

[size=2] [/size]

[size=2]I hope someone will findit useful, and maybe someone someday will complete the work.[/size]

[size=2] [/size]

[size=2]Enjoy.[/size]



0

Share this post


Link to post
Share on other sites
1. Where can we find this?
2. You should submit this somewhere more accessible also. Maybe as an article? It's going to get lost here within a day, and it's fairly cool so put it somewhere where it won't get ignored. :)
3. Kudos.
0

Share this post


Link to post
Share on other sites
[quote name='way2lazy2care' timestamp='1319656884' post='4877306']
1. Where can we find this?
2. You should submit this somewhere more accessible also. Maybe as an article? It's going to get lost here within a day, and it's fairly cool so put it somewhere where it won't get ignored. :)
3. Kudos.
[/quote]



1. My bad. Did not notice it won't upload asm files
2. Thanks for Tip, rookie mistake
3. Thanks

[Download removed by moderator]
0

Share this post


Link to post
Share on other sites
There is also the [url="http://home.comcast.net/%7Ejpittman2/pacman/pacmandossier.html"]Pacman Dossier[/url] for an exhaustive amount of Pacman info (I believe the author of this also went through the assembly to get some of his information).

p.s. I would definitely check on copyright issues before posting somebody else's code...
0

Share this post


Link to post
Share on other sites
[quote name='TheUnbeliever' timestamp='1319658468' post='4877314']
So this is the assembly source to the original Pac-Man? Why is this not a copyright violation?
[/quote]

I found this code on the Internet and matched the assembly against a ROM I found for [url="http://mamedev.org/"]MAME[/url]
I don't know how the other guy got the original ROM to disassemble it, but I don't think running a disassembler on an assembly you've got, is a copyright violation.
Well, at least is sounds right to me.

BTW, google: "pacman original source code" it's the first result
0

Share this post


Link to post
Share on other sites
[quote name='ronenk' timestamp='1319661023' post='4877327']I don't know how the other guy got the original ROM to disassemble it, but I don't think running a disassembler on an assembly you've got, is a copyright violation.[/quote]

It's not. Distributing that assembly online is. "He was doing it too" isn't a valid legal defense. On the other hand, perhaps the copyright owners have put it in the public domain and I don't know this...
0

Share this post


Link to post
Share on other sites
[quote name='ronenk' timestamp='1319657312' post='4877309']
[quote name='way2lazy2care' timestamp='1319656884' post='4877306']
2. You should submit this somewhere more accessible also. Maybe as an article? It's going to get lost here within a day, and it's fairly cool so put it somewhere where it won't get ignored. :)
[/quote]
2. Thanks for Tip, rookie mistake
[/quote]

Not a mistake. DEFINITELY CHECK ON COPYRIGHT STUFF. If there are no problems though I'd definitely put it somewhere else also.
0

Share this post


Link to post
Share on other sites
I'm really curious about the purpose of this thread.[img]http://public.gamedev.net/public/style_emoticons/default/unsure.gif[/img]

You post copyrighted code in assembly language for an unspecified processor that is most likely no longer in production and which no development platforms exist in the beginners forum.[img]http://public.gamedev.net/public/style_emoticons/default/blink.gif[/img] How does this help someone starting out in game development? [img]http://public.gamedev.net/public/style_emoticons/default/huh.gif[/img] The code cannot be assembled, chances are few visiting this forum understand assembly language enough to even make an educated guess as to what is going on and a Pac Man clone is very simple to make in a higher level language anyway.

It should also be mentioned that Namco enforces their copyrights aggressively.
0

Share this post


Link to post
Share on other sites
[font="Verdana, sans-serif"]The [/font][font="Verdana, sans-serif"][i]Pac-Man[/i][/font] [font="Verdana, sans-serif"]ROMs are under copyright to NAMCO Bandai, LTD and are their intellectual property.[/font]
0

Share this post


Link to post
Share on other sites
[quote name='Gaiiden' timestamp='1319716417' post='4877523']
We have nothing against discussing this type of stuff, but as it's been mentioned don't go posting actual code here for people to download. If they go somewhere else to download fine but we can not and will not host copyrighted material in any capacity without proven prior permission of the original copyright holders
[/quote]

First of all I'd like to apologize for what seems quite a mess I've created.
I guess I should have putten more thaught into this.

First of all I guess I should thank you for removing the source. If you could please help me remove it from the Article I published and can not seem to find it now.
My sole purpose was to show the code, with what I think, clear comments to help anyone how wants to create a Pac-man clone.

As far as I know disassembly is not illegal and I found a refernce on the Internet [url="http://digital-law-online.info/cases/24PQ2D1561.htm"]here[/url]. As you can see, If done for understanding purposes when no other means are available, it is a legit way. This of course was my only intrest. I want to state here that I am against copyright violations(or any other kind of stealing for that matters), and would never have done this if I thought I was doing wrong.

I guess there are no shortcuts in life, so I'll try to do it right this time.

Again, Thank you
0

Share this post


Link to post
Share on other sites
[quote name='ronenk' timestamp='1319719716' post='4877534']As far as I know disassembly is not illegal and I found a refernce on the Internet [url="http://digital-law-online.info/cases/24PQ2D1561.htm"]here[/url].[/quote]

Just in case you missed my post earlier: dissassembly itself, for your own purposes, is not illegal. The copyright issues come up when you want to distribute the resulting assembly listing, as you did here. :-)
0

Share this post


Link to post
Also see this entry on [url="http://gameai.com/wiki/index.php?title=Pac-Man"]Pac Man[/url] at the [url="http://gameai.com/wiki/index.php?title=History_Of_Game_AI"]History of Game AI[/url] project by the AI Game Programmers Guild.
2

Share this post


Link to post
Share on other sites
[quote name='ronenk' timestamp='1319719716' post='4877534']
My sole purpose was to show the code, with what I think, clear comments to help anyone how wants to create a Pac-man clone.
As far as I know disassembly is not illegal and I found a refernce on the Internet [url="http://digital-law-online.info/cases/24PQ2D1561.htm"]here[/url]. As you can see, If done for understanding purposes when no other means are available, it is a legit way.
[/quote]

That legal reference is very location specific and is out of date.


That reference was: (1) in the United States specifically, and (2) from 1992, before DMCA and other major copyright law overhauls in the US, and EUCD and similar laws in the EU.



In some places what you did is just fine. In other places it is a serious civil law violation. In a few places it is a serious criminal law violation.

Posting your own learning is fine. Posting your own descriptions of what it does and how it does it is a great thing.

Posting their source, or their disassembled executable, or their raw executable, are not so great on the world stage.
0

Share this post


Link to post
Share on other sites
Just because I was curious and it was relevant:
http://www.copyright.gov/help/faq/faq-duration.html

It looks like in the US the copyright will last for 95 years. So in 2075 you can freely distribute the assembly code to pac man! :D

disclaimer: I am not a lawyer and am not offering this as legal advice.
0

Share this post


Link to post
Share on other sites
[quote name='ronenk' timestamp='1319719716' post='4877534']
First of all I guess I should thank you for removing the source. If you could please help me remove it from the Article I published and can not seem to find it now.
My sole purpose was to show the code, with what I think, clear comments to help anyone how wants to create a Pac-man clone.
[/quote]
Articles need approval to be published so yours never was. No worries there.
0

Share this post


Link to post
Share on other sites
[font=arial, verdana, tahoma, sans-serif][size=2]
[font=arial, sans-serif]Well I tried the legal way. The legal way Su@#

This is the response I got from Namco:[/size][/font]

"[color=#1F497D][font=arial, sans-serif][size=2]We appreciate you contacting us regarding your request below and understand that your request is based in a desire to assist in the education of young programmers. Generally this is something that we would like to support, unfortunately we[u]cannot[/u] consent, and in fact [b]vigorously object[/b], to the publication of the code to any of our games, in any manner or media whatsoever, including without limitation PAC-MAN. This code is the copyright of NAMCO BANDAI Games and therefore any reprinting or publication by you or any third party violates our exclusive right to exploit and control our copyrights and would subject such publication or any website hosting such content to legal action, including without limitation to a DMCA take down notice and/or a lawsuit for copyright infringement. [/size][/font][/color][font=arial, sans-serif][size=2][color=#1F497D][size=2] [/size][/color][/size]

[size=2][color=#1F497D][size=2]We would appreciate it if you would identify the source from which you obtained the code so that we can take appropriate remedial action against any third parties were may already be violating our legal rights. [/size][/color][/size]

[size=2][color=#1F497D][size=2] [/size][/color][/size]

[size=2][color=#1F497D][size=2]Thank you for contacting us and I am sorry that we could not be accommodating on this matter. However, we wish you the best of luck in your educational endeavors."[/size][/color][/size]

[size=2][color=#1F497D][size=2] [/size][/color][/size]

[color="#1f497d"][size=2]It reminded me why in 9 of 10 cases, I prefer the company of machines over human-beings.[/size][/color]

[size=2][color=#1F497D][size=2]Hopefully Jordan Machner would be less rigid about copyrights.[/size][/color][/size]

[color="#1f497d"][size=2]
[/size][/color]

[/font][/font][quote name='way2lazy2care' timestamp='1319735176' post='4877606']
[font=arial, verdana, tahoma, sans-serif][size=2]
[font=arial, sans-serif][color=#1C2837][size=2]It looks like in the US the copyright will last for 95 years. So in 2075 you can freely distribute the assembly code to pac man! :D[/size][/color][size="2"][color="#1c2837"]
[/color][/size]
[size="2"][color="#1c2837"][/quote][/color][/size][/size][/font]
[size="2"][color="#1c2837"]
[/color][/size]
[size="2"][color="#1c2837"]See you all in 64 years.[/color][/size]
[font="arial, sans-serif"][color="#1f497d"][size=2]
[/size][/color][/font][font=arial, sans-serif][size=2][color=#1F497D][size=2]Until then, best of luck with your games.[/size][/color][/size]

[/font][/font]


0

Share this post


Link to post
Share on other sites
[quote name='ronenk' timestamp='1319858310' post='4878104']
[font="arial, verdana, tahoma, sans-serif"] [/font]Well I tried the legal way. The legal way Su@#
This is the response I got from Namco:

...
It reminded me why in 9 of 10 cases, I prefer the company of machines over human-beings.[font="arial, verdana, tahoma, sans-serif"][font="arial, sans-serif"]
[/font][/font][/quote][font="arial, verdana, tahoma, sans-serif"][font="arial, sans-serif"]
[/font][/font]
Honestly, what did you think would happen?

In some respects it would be like asking the Coca-cola company if you can release the list of their secret ingredients to the public. Obviously they are going to tell you in very clear terms that they object.

You got their source through unauthorized channels, and you know that. You knew, or should have realized if you thought about it, that you had no actual rights to the program.

Yes, the original game is long out of print and unlikely to ever be directly useful in commerce, however, it is their property and (for better or worse) you have no right to it.





What you did was certainly interesting, and you certainly could write up what you learned from the experience. Those things are just fine. Feel free to blog about them. Just don't put up stuff you have no rights to.
0

Share this post


Link to post
Share on other sites
[quote name='frob' timestamp='1319861982' post='4878120']

In some respects it would be like asking the Coca-cola company if you can release the list of their secret ingredients to the public. Obviously they are going to tell you in very clear terms that they object.

You got their source through unauthorized channels, and you know that. You knew, or should have realized if you thought about it, that you had no actual rights to the program.

Yes, the original game is long out of print and unlikely to ever be directly useful in commerce, however, it is their property and (for better or worse) you have no right to it.





What you did was certainly interesting, and you certainly could write up what you learned from the experience. Those things are just fine. Feel free to blog about them. Just don't put up stuff you have no rights to.

[/quote]

I don't think the CoCa-Cola example is quite the same.
I did get their source on the Internet but did not suspect wrong doing. I also found Doom's source (with what seemed to be an approval from programmer John Carmack)
I guess I am naive that way.

But the thing that upsets me the most is that it's a beautiful piece of code, I'd even go on and say it's art. You'd think I'd be frustrated from the fact I spent so much time on this project, but the truth is I'm frustrated that such a thing is not shown to the public. It should have an honorary place at "Code Hall-Of-Fame".
And last, more than I feel sorry for myself, I feel sorry for the programmers of Namco. I guess they have a lot of money, but much too few recognition if you ask me. At least I got to see that piece of art.

Let me give you what I think is the major example:
The ghosts AI code is not done on the main game loop( sounds weird right ?!) . What I believe happened is that the 3Mhz cpu could not run the entire game loop with AI in the time it took the screen to refresh (1/60 sec) This is common issue for game developers today. You have to do all logic and rendering before next frame refresh. So to overcome that limitation they made an event-queue.
When a ghost has to decide on a new path, they push an event into a queue.
The main thread of PacMan is constantly checking the queue for new events and executes them, while the game loop is being run in the screen refresh interrupt.

THEY PROGRAMMED AN ENTIRE MESSAGE HANDLING QUEUE IN A 4-8K GAME !!!

This program has a small bootstrap, a small event-driven library, and an entire addictive game in it.
Well, I'm getting all emotional for nothing.

If there is something I could wish for all you game programmers or just programmers, is that someday, someone on some part of the world will look through your source and think to himself: "@$#!. That is one fine piece of code!!"
0

Share this post


Link to post
Share on other sites
[quote name='Bladelock' timestamp='1319889324' post='4878217']
Is there any kind of Pac-man game clone that's open-source at least?
[/quote]

I think there's quite a few [url="http://lmgtfy.com/?q=open+source+pacman"]here[/url].
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0