PHP is a general-purpose programming language that is especially suited for web development.
0
votes
1answer
27 views
unable to send or update data into my mysql database using unity
I am trying to save user scores into my data base so i have deveoped backend on php and mysql datbase. All the things are complete but having issues to send or receive data through my unity WWW class.
...
-3
votes
3answers
102 views
How do I make a highscore database for Unity?
I have been looking around, but I haven't found the perfect answer, yet.
I want to to send scores from Unity to a database, without a username, and display the high scores in the highscore menu. How ...
5
votes
2answers
106 views
Calculate resources real-time. Sockets or not?
I'm currenly developing a game in Javascript. It's a Single Page Application so every change should be pulled from the server without page refresh. I'm currently wondering how I should handle the '...
1
vote
0answers
37 views
PHP development for online games [closed]
I am not pro on programming and games but i had developed an online browser-based game with php . Now i am creating a game like a chess that it do not needs an live-stream and FPS data exchanges.
I ...
1
vote
3answers
97 views
Protecting/Handling game data
I have been working on a web based game, in which involves a lot of javascript/PHP. My question is what is the most secure way to handle any data being passed between the two languages?
At this ...
0
votes
0answers
81 views
How to force download unity asset bundle using php?
I am downloading asset bundle using
<?php
$file_url = 'http:XXXXXXXXXX.com/AssetBundle/bundle-numb';
header("Content-Type: application/octet-stream");
header("Content-Transfer-Encoding: Binary");
...
1
vote
1answer
152 views
Designing PHP RPG game: Should I use multiple classes for each type of item or a single table?
I'm making a text-based role playing game written in PHP.
I have a hard time figuring out how to handle items in game - there will be a few types of objects (weapon, machine, tool, building etc) each ...
1
vote
2answers
148 views
TCG Board Architecture
While I was, sort of, studying the various TCGs around, concepts, similarities, differences and how they could be implemented, if designed to be in a virtual environment (e.g. PC game) I obviously ...
0
votes
1answer
507 views
Accessing a database with a php script from Unity mobile game
So I am attempting to keep track of some user data in my game that I am creating in Unity 3d. I am using Unity's WWW class to do this. I am following this tutorial: http://wiki.unity3d.com/index.php?...
0
votes
0answers
57 views
storing hexagon-based (x/y) movements in a database
Im developing a hex(agon)-grid based game. The game is turn-based.
Players move stuff on the map and they need to be allowed to issue movement-orders. Units move a certain amount of movement-points ...
1
vote
0answers
108 views
displaying leaderboard [closed]
Basically what i wish to ask:
*A game is developed for android platform, is on google store and its leader board (scores etc.) are on Google server.
Can we display the top scores from there on a ...
0
votes
1answer
77 views
PHP browser game energy recover time [closed]
I would like to create something very simple. A browser game, where user can waste its energy and ability points. Unlike other games here there won't be no levels. So energy and ability points restore ...
0
votes
2answers
246 views
How do I keep a PHP server running forever?
I'm making a web game RTS, it's mostly create units, manage resources, attack with army, and level up factories. I have created the basics of the game using Javascript, PHP, and MySQL databases. I use ...
-4
votes
3answers
184 views
Should I create an MMORTS game with server side coding? [closed]
I have gone through many articles on the internet and got to a final conclusion that their is almost no way to protect the game (it can be hacked or its code can be extracted from its APK) and should ...
1
vote
1answer
75 views
Peer to Peer world download
I am creating a multiplayer JavaScript game with a PHP central server. Each user will be able to move around in a 3D world, with other users and NPCs. It came to my attention that SQL is not going to ...
3
votes
2answers
76 views
One big Instance or One instance for every moving entity?
I am creating a multiplayer JavaScript game with a PHP central server. Each user will be able to move around in a 3D world, with other users and NPCs. These NPCs will be controlled by the central ...
3
votes
1answer
126 views
What techniques are useful for modelling Character Actions via OOP? [duplicate]
I'm trying to rewrite a legacy php Browser-Based-Game so that it uses object oriented programming. I find it relatively easy to model concrete nouns, like: new Npc(), new Character(), new Account(), ...
-3
votes
1answer
168 views
handling wars in multiplayer browser game [closed]
I'm building a browser game about countries, cities, the user control his city, building it upgrading it, can fight other cities in the same country, elections and war between countries, peace, trade ...
1
vote
0answers
102 views
Security-minded design patterns / paradigm for client/server application
I am working on a client/server application and am starting to take it from proof-of-concept to actual implementation. The client is an Android application and the server is in PHP. In similar ...
1
vote
3answers
228 views
Browser-Based Game Design: Keeping track of NPC stats (Attack, Defense, Health, etc)
Hope this is a proper question to ask here. If not, I'd appreciate somebody pointing me to other game developer communities.
Since I am creating my game by myself it'd be nice to communicate with ...
4
votes
4answers
745 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 ...
4
votes
1answer
465 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 ...
0
votes
1answer
404 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 ...
2
votes
3answers
189 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 $...
2
votes
1answer
9k 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 http://docs.unity3d.com/...
0
votes
0answers
149 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 ...
0
votes
1answer
260 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 ...
2
votes
2answers
648 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
257 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 ...
3
votes
2answers
569 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 ...
3
votes
3answers
98 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 ...
0
votes
1answer
190 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
123 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 ...
2
votes
1answer
622 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 ...
0
votes
1answer
229 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 ...
1
vote
2answers
204 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 ...
0
votes
1answer
167 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 ...
0
votes
1answer
360 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
171 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
1k 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
2answers
3k 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 ...
4
votes
3answers
3k 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 ...
1
vote
1answer
268 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.
...
1
vote
1answer
543 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 ...
-1
votes
1answer
104 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
970 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
2k 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 ...
3
votes
2answers
653 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
vote
1answer
1k 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 ...
1
vote
1answer
707 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 etc....