PDA

View Full Version : Browser Based Mafia Game


azace
09-25-2008, 05:36 PM
Hello,

I was wondering if you all know where I can get a php script for a mafia game? If not will you be willing to code one for me? If so can you please give me a price range?

Here is the link to the current mafia game that I play.

http://www.themafiaboss.com/


I want it to have all of the features that this game has but I want to have some extra stuff coded into it.

Thanks

Reedbeta
09-25-2008, 08:04 PM
If not will you be willing to code one for me?

Doubtful you'll find anyone here who will say yes to that, but we'd be happy to help you learn how to code your own. ;)

azace
09-25-2008, 08:23 PM
Well. I would love to learn how to code it myself. It just seems like I would need a lot pf experience to code something that can compare to the game I play now.

fireside
09-26-2008, 08:13 AM
You can either play a game or you can write a game. Writing games is hard, but you will constantly be learning new things and testing your mental abilities. There is no game that will ever match it. It's really as good as it gets as far as a hobby goes. You can keep learning and creating forever and never get bored as you are obviously getting with the game you are now playing.

azace
09-26-2008, 08:21 AM
OK well...I guess can you all point me where to go and what to start learning to embark on this task of making my own game.

fireside
09-26-2008, 10:22 PM
OK well...I guess can you all point me where to go and what to start learning to embark on this task of making my own game.
Python is the best language to start out with as far as I'm concerned.
http://python.org/

Doing a browser game like mafia, which I haven't looked at, you should hold off doing the network part of it. It may be better to do it in PHP with a Mysql database, but not a good place to start programming. So the idea is to start with python and write small games that resembles pieces of the final game you plan after you have learned the basics of programming like reading from a file, decision making, and creating objects. You need to start out writing pretty basic games like perhaps Hangman. It's good that you are interested in text games because that's a very good place to start game programming.

However, you may want to look for a php book or some tutorials on the net and decide if it's better for you to start programming in php. For this, you would set up a small server on your computer. If you don't use dedicated servers, which are expensive, you will probably end up learning php with a mysql database for a game something like that. It's also not considered too hard of a language to learn.

Mikee
10-01-2008, 09:09 AM
If you're going to make something like this I'd go straight for PHP due to how easy it is to get started, how much information there is about it and how easy it is to use.

Start by downloading Xampp (http://www.apachefriends.org/en/xampp.html) and get that little baby installed. Xampp is apache, php and a mysql database all wrapped up in one easy installer.

once you've got that installed, go to http://localhost/ and you should see the homepage of your new web site. You can edit this file by looking at "C:\xampp\htdocs\" (assuming that's where you've installed xampp).

Rename this file to .php (if it's not .php already) and start playing with a bit of code.

Try this, for example.

<?php
echo "hello this is my page";
?>

then maybe this..

<?php
for ($i=0; $i<10; $i++){
echo $i;
}
?>

Now have a search for the thousands of tutorials on the internet to find out how to do more things.

Eventually, after a year or so, you'll have your game. But not only will you have your game, you'll also have good knowledge of web development (I started this way and I've now been working as a web developer for the past 8 years).

If you're not interested in doing any of that there's probably a whole bunch of people selling the scripts for < $50.

http://forums.digitalpoint.com/showthread.php?t=240359

Domzimmer
11-12-2008, 09:48 AM
I would say just stick to what you have, If you really think about it your just stealing their idea and adding in some things of your own which doesn't , to me , sounds to ethical..

but thats just my point of view.

kolio
12-11-2008, 08:04 AM
http://www.sitepoint.com/books/phpmysql1/

embrace this link