PHP is a general-purpose programming language that is especially suited for web development.

learn more… | top users | synonyms

0
votes
1answer
33 views

How do I make a web browser game front end? [on hold]

I am currently trying to develop a web browser game front end. I understand how to do all of the back end code in PHP, I just need to learn how to make a graphical front end. For example, black jack: ...
0
votes
1answer
79 views

In PHP, how do I implement multiplayer “rooms” for a turn-based game?

I'm working on a multiplayer checkers game. I want to let players choose another connected player and invite him to play. I have a working game engine and rendering, but I'm stuck on the multiplayer ...
2
votes
1answer
123 views

How to do monster AI movement and attacks server side?

I have my web based rpg game already created. Inventory management, equipment system, character stats, skill tree, and etc. It's almost complete. For the game world, I am creating a top-down rpg ...
2
votes
3answers
161 views

Formula for Planetary Alignment

I am attempting to create a game where there is a universe of two 16-bit addresses ranging from (-32768, -32768) to (32767, 32767), or in hexadecimal, each value can run from $8000 to $FFFF then 0 to ...
3
votes
2answers
986 views

PHP battle script [closed]

I have custom built as a little personal project a website coded in php that is a MMORPG. It is at the minute just a personal private project but I am stuck as what to do when it comes to users ...
0
votes
0answers
26 views

PHP - MySQL database not updating from php IGM calculation

On my server I have a php script that calculated an amount for in game money, but the SELECT and UPDATE query are not doing the right thing. In my database I have two columns: | Name | Now | ...
3
votes
3answers
77 views

Validating victory report to PHP leaderboards

I have decided to begin working on some sort of leaderboard server for my PC game. For starters, I decided to write some PHP scripts to handle it. The script doesn't actually receive a score - it ...
2
votes
2answers
303 views

Balancing Attack to Defense in a text based RPG [duplicate]

I understand that there is no correct or incorrect way of doing this, and its all down to a matter of trial and error in terms of perfecting the system. What I am after is some advice or even get ...
0
votes
1answer
211 views

How to approach players beeing overlapped by high isometric tiles?

I'm making a browser game wich is based on PHP, MySQL and Javascript. It has an isometric world where the player can move and see other players/NPCs. But if a tile in the foreground is so high that it ...
1
vote
0answers
191 views

server-side language for multiplayer card game [closed]

I am trying to develop a web-based multiplayer card game similar to poker, but with some changes to its rules. The game needs to be secure, so it needs a game-client for UI and actions, and a ...
1
vote
0answers
30 views

reduce/eliminate sql queries using server game engine/ram [closed]

I am playing around with php on server and html/js client for a game/experiment. Right now, real time data is being updated and queried from mysql but in the very near future I want to expand from a ...
0
votes
1answer
124 views

What is the correct way to authenticate a player with password from Unity to a php api server?

So, I have a game in Unity for mobiles that gives you the possibility to sign-up with username, email and password to unlock extra features. The datas are sent, through a POST request, to a PHP+MYSQL ...
0
votes
1answer
176 views

Export session variables easily and permanently in php

I feel like I must be missing something simple, or misunderstanding sessions or cookies. I want to save all session variables and allow players to copy/paste a long string to load the game up from a ...
2
votes
1answer
2k views

Sending POST data with WWW in Unity C#

I would like to use Unity's WWW class to send a an HTTP request with POST data. So in my server, my PHP script can do something like $number = $_POST["NUMBER"]; According to ...
0
votes
0answers
60 views

Securing HTTP requests to online game server

I'm pretty new at making online games. Right now I'm trying to make an iPhone game. Each player has a profile in my server. I want to avoid username/password for authentication. Currently, as it ...
1
vote
2answers
165 views

Increasing resources overtime for a browser-based game [duplicate]

I've been interested in developing a browser game ala OGame or Ikariam etc. Basically, a menu is displayed with your resources and, overtime, they increase depending on how advanced are you in the ...
2
votes
1answer
295 views

How to display a hierarchical skill tree in php [closed]

If I have skill data set up in a tree format (where earlier skills are prerequisites for later ones), how would I display it as a tree, using php? The parent would be on top and have 3 children. Each ...
1
vote
1answer
693 views

php multiplayer game - server&client model

I'm working on a simple round&web-based multiplayer game. The idea of the game is very simple: The players get an array of audio files which they listen to and write the transcripts for in 5 ...
0
votes
1answer
100 views

How would one outline an alpha transparency layer in javscript and/or php? [duplicate]

I simply want an outline/edge detection of the character/item/object that is selected or doing something. I'm seeing lots of versions of this question for different languages, but I would appreciate ...
23
votes
2answers
14k views

Understanding Perlin Noise

I'm toying with Perlin Noise after some work with Diamond Square. I followed the implementation by Hugo Elias that basically, makes a series of functions with x,y as input to throw each coordinate ...
0
votes
1answer
148 views

Send request for Turned Based Battle

I want to create a turn based battle system for Pokemon online rpg! I will some how implement the coding of the battle..but I want to know how can a user send request for a battle to other user? If ...
0
votes
1answer
132 views

Check legal movement on grid map

i'm trying to develop a simple multiplayer turn base game, i'm start creating the grid map, i have already write the javascript script to display the range movement for the specific unit, but my ...
-2
votes
1answer
91 views

How do I make other players see one player's die rolls? [closed]

I'm new to PHP and making a simple dice game. It works well in single-player, but in multi-player, I don't know how to show the results of one player's rand(1,6) dice roll to the others using a web ...
1
vote
2answers
184 views

How to figure out a users earnt exp based upon calculating the difference by user and player by x?

How would I figure out a users earnt EXP based upon calculating the difference by user and player by x using this format? If the user is 60 levels less than me, I would get 0 exp (as that's just ...
1
vote
1answer
471 views

How to handle a player's level and its consequent privileges?

I'm building a game similar to Mafia Wars where a player can do tasks for his gang and gain experience and thus advancing his level. The game is built using PHP and a Mysql database. In the game I ...
0
votes
1answer
201 views

Structure examples for web-based chat for web-based game [closed]

What would be the best tools to use to create a web based chat/messaging system ? for client we have : Browser (any JS solution - preferably without using flash like in jsocket) for server we have : ...
0
votes
1answer
156 views

What strategies can I use to update the visuals of my game to be more modern? [closed]

I'm making a browser strategy game. Now my problem is that I have a feeling that my design is dated. For now I have only used background colors and borders to make things look nice, but I have ...
2
votes
2answers
646 views

how to implement pvp(text based rpg in php/mySQL)

I'm creating a text based rpg in php/mySQL and I've come up to a dead end in regards implementing the pvp aspect of the game. First off is this even possible in php/mysql? If so, how would I go about ...
3
votes
3answers
1k views

Will running cron jobs every minute a good practice?

I'm trying to create a browser-based game (made in PHP, MySQL, Js, HTML, and CSS) that is heavily dependent on user's actions being carried out after a certain amount of time passed whether online or ...
-3
votes
2answers
1k views

How is good is Java as a language for browser based mmo games? [closed]

Somewhat related to Is Java viable for serious game development? I have decided to make a browser based mmo game. But the only programming language I know is Java. So I would like to know how good ...
1
vote
1answer
208 views

What tech will enable a script to run after a certain amount of time elapsed following a user's action?

I'm trying to experiment in creating an MMO browser-based game using PHP, MySQL, Javascript, HTML5, and CSS. There is this certain functionality that I want in my game that I'm having trouble with. ...
8
votes
1answer
556 views

Separating logic and data in browser game

I've been thinking this over for days and I'm still not sure what to do. I'm trying to refactor a combat system in PHP (...sorry.) Here's what exists so far: There are two (so far) types of entities ...
5
votes
5answers
813 views

PHP Browser Game Question - Pretty General Language Suitability and Approach Question

I'm developing a browser game, using PHP, but I'm unsure if the way I'm going about doing it is to be encouraged anymore. It's basically one of those MMOs where you level up various buildings and ...
3
votes
2answers
424 views

PHP Browser Game Private Messages?

First off, I'm asking this question here because gaming and messaging are intimately connected. Why win if you can't gloat? Nevertheless, I won't be offended if this needs to be moved to overflow. ...
-1
votes
1answer
96 views

PHP keeping track of how many online rooms exist [closed]

I'm making an online card game project but now I have a minor issue: In my game there are rooms that users can join. How do I find out how many created rooms there are? I thought about using a ...
1
vote
2answers
614 views

PHP and Javascript/HTML5 Collaboration [closed]

I've recently been working on a fairly complicated game. I've stored information with local storage, but that allows the player to edit it, and does not transfer from computer to computer. The two ...
1
vote
2answers
1k views

How do I generate a 2d grid-based map without screwing it up?

I'm relatively new to the mechanics of game development - catching up fast, but there are still some things that escape me. For example: generating a fully-accessible map on a 2d grid. See the ...
0
votes
1answer
781 views

how does server communication work in a flash game with a php backend

I am trying to create a browser game using actionscript/flash. Currently, I'm trying to understand how I would go about creating a back-end which interfaced with my MySQL database. As far as I ...
3
votes
2answers
651 views

Drag and Drop Team Selection

I have a Fantasy F1 Website, currently users select their teams using dropdown menus. It works OK but isn't as user friendly as I would like. I would like to implement a drag and drop type of ...
-1
votes
3answers
236 views

Novice prototyping a massive multiplayer webpage based gaming system [closed]

I'm trying to build a website based game in which various pages of the site act as different areas of the game. I am wondering what you would recommended as a design structure. Which languages would ...
1
vote
1answer
531 views

Architectural advice - websockets javascript/php integration

Myself and a friend have started making a game, he's likely to be using impact.js for the user interaction etc, but we need multiplayer functionality so some form of websockets for TCP connections ...
2
votes
2answers
186 views

Web application interacts bi-directional with server program?

I want to write a web application to play chess against the engine Crafty. I'm not new to PHP and javascript, but must learn how to interact with a server process : how can a web application and/or ...
1
vote
2answers
5k views

Multiplayer card game using PHP/Ajax and mysql

I am designing a map game, using PHP and MYSQL. I don't know how to make the players who sign-in to the website to see other players who are also connected to the site and be able to chat with one ...
-2
votes
1answer
958 views

PHP Battle System for RPG game

I posted this a while ago on stackoverflow, they thought it would be better place here, I agree. Essentially I know what I want to accomplish, and I have something to the effect of what I want but I ...
3
votes
1answer
263 views

Game based on Ajax polling for 12 players

I am planning on writing a small browser game. The webserver is a shared server, with no root / install possible. I want to use AJAX for client/server communication. There will be 12 players. So ...
-1
votes
1answer
366 views

Using copyrighted sprites [duplicate]

Possible Duplicate: How closely can a game resemble another game without legal problems I was thinking about making a pacman clone, I know there is a similar question here Using Copyrighted ...
10
votes
4answers
8k views

How relevant is PHP today for browser games?

I was the lead developer of 2 moderately successful browser games quite a few years back, and plan on working on a new game soon. At the time, I wrote them in pure PHP (no template engine or anything ...
-2
votes
1answer
142 views

Smarty templating system really needed? [closed]

Is smarty templating system really needed for creating a browser-based game? Do I need anything else than SQL, PHP, and JS knowledge? \ Note: I also know HTML/CSS so I'd like to work on the game ...
3
votes
1answer
217 views

PHP city-sim castle layout

I am currently contemplating the layout system for my php based game but i've run into a couple of worries. So my idea is a 9X9 grid where the center 3X3 are inner castle. The inner castle will be 6X6 ...
1
vote
2answers
658 views

Passive skills and items

I'm making a small text browser RPG game using PHP, MySQL and Java Script (and jQuery). All the items are saved in the MySQL database. Every now and then a character have to make a skill roll (Talk, ...