/    Sign up×
Community /Pin to ProfileBookmark

How feasable is a multiplayer game in PHP

Im wondering how feasable it would be to create a game with PHP/MySQL. The game would need to support more then one person at once, I know it would be pretty simple to create a single player game but multiplayer I have no idea. Here is the game in question: cards.mrbigggshot.com under the can I play the game section. It would be a modified version of that,also note that I have permission to create the game.

to post a comment
PHP

8 Comments(s)

Copy linkTweet thisAlerts:
@NevermoreMay 30.2004 — Quite hard if you haven't done it before.
Copy linkTweet thisAlerts:
@96turnerriMay 30.2004 — hi refresh

when you say multiplayer, im not sure what you mean, obviously i know what multiplayer means but there aer different ways

eg take this game www.kingsofchaos.com, now this is an online RPG game use the link in my sig if you want to play tho ?, its completly single player, you attack people when they are not online and the computer generates results, but lets say that you couldnt do this the user had to be online when you attacked them so they could command things, now this would be multiplayer, both players playing at the same time

please explain how you want your game to be multiplayer

Rich
Copy linkTweet thisAlerts:
@ConorauthorMay 30.2004 — By multiplayer I mean both people would sign in and play agianst each other :p
Copy linkTweet thisAlerts:
@96turnerriMay 30.2004 — so say for example a game of snap

some one signs into your site, looks for an opponent, challenges him, other person declines or accepts, if accepts game is launched and they play against each of with stats being logged into scoreboard

what type of game you have in mind

strategy

RPG

cards

...?
Copy linkTweet thisAlerts:
@ConorauthorMay 30.2004 — Its a card game, I posted a link in my first post.
Copy linkTweet thisAlerts:
@96turnerriMay 30.2004 — o yeah i didnt see that bit ?,

anyway this is how i would do it

you have a site where people go on and register and when signed in they are on active user list, like number users online, the users that are online are on a page eg challenge.php

in like a table format eg

Username Win Losses Draws Rank Challenge Link

richiet 3 1 0 #1 Challenge?

click challenge it sends a message to richiet and he accepts or declines, so you will need some sortof chat, message system

if he accepts game is opened and richiet plays challenger, im not sure what the current game is like

if he declines message is sent to challenge saying richiet declined your challenge

at end of game stats are updated, is user leaves half way through it is counted as a loss, but the other person doesnt win

All what i have said above it pretty easy, just the game that needs modifying do you have a link directly to the game as i cannot seem to find it on that site for some reason

Rich
Copy linkTweet thisAlerts:
@ConorauthorMay 30.2004 — Its explained right in the page, I linked to. Yes what you explained is simple but it doesnt show any multiplayer capabilities,with them playing each other and such, Ill figure it out.
Copy linkTweet thisAlerts:
@ConorauthorMay 30.2004 — ok here is what i want to do

You can register, when you register you are given a deck of 30 cards and 200 money chosen at random. After that you can challenge other registered users with a choice of 5 attacking cards and 5 defending cards. If the user accepts your challenge they will do the same. If you win the match you win 50 money and the loser loses 50 money, and you can use that money to buy more cards from the card shop.
×

Success!

Help @Conor spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.8,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...