~Beyond the Border~ > Akyu's Arcade
[WEBGAME PROJECT] A Better Tomorrow Battle Royale
Nemo★Ma:
Well, I have one PHP webgame source script based on this novel/movie Battle Royale.
http://en.wikipedia.org/wiki/Battle_Royale
Originally it's written in Japanese, some nameless guy get hold of the script and translated it into Chinese. However, the programming sucks so I remodded about 70% of the codes.
And now I'll translate it to English, and actually I have finished some bits of it:
Core Files - 80%
Item Definition Files - 1%
NPC and game system related Files - 25%
Test Drive Address: http://tforce.toypark.in/breng/
This is a point and click text-based real-time game, you choose your actions on the screen and the same goes for other players. Your only objective is to become the only one surviving.
(there sure has other endings)
Basically you are a random player, who had been drag in this game by a "Boss Character", The game is held on a separated place divided into various "zones" and the only way to make it out is killing each other until one is left. Every hour your movements will be limited as more and more area closes down on you. So you'd better finish it quick.
You start out the game with some random equipments and some food, but these won't held very long. You can search the ground for items, get items from the shop(which have the possibility to close down due to forbidden zones), or kill player/NPCs and earn Item/Money. There are some items that will help you win, some will not.
However I found out i cannot do it on my own, namely the story part (hence the blank in the title.) and the items on the map. As of now there are nothing on the map except foods, foods and more foods...
--- Quote ---mapitem.php
--- Code: ---<? if(!defined('IN_GAME')) exit('Access Denied'); ?>
1,99,5,■DeathNote■,Y,1,1,,
0,99,5,Hacking PC,Y,1,1,,
0,99,30,Gasoline,PS2,100,1,,
0,99,30,Patrol,PH2,100,1,,
0,99,50,Poison,Y,1,1,,
0,99,20,Food,HB,20,100,,
0,99,20,Food,HB,20,100,,
0,99,20,Food,HB,20,100,,
0,99,20,Food,HB,20,100,,
0,99,20,Food,HB,20,100,,
0,99,20,Food,HB,20,100,,
0,99,20,Food,HB,20,100,,
0,99,20,Food,HB,20,100,,
0,99,20,Food,HB,20,100,,
0,99,20,Food,HB,20,100,,
0,99,20,Food,HB,20,100,,
0,99,20,Food,HB,20,100,,
0,99,20,Food,HB,20,100,,
0,99,20,Food,HB,20,100,,
0,99,20,Food,HB,20,100,,
0,99,20,Food,HB,20,100,,
0,99,20,Food,HB,20,100,,
0,99,20,Food,HB,20,100,,
0,99,20,Food,HB,20,100,,
0,99,20,Food,HB,20,100,,
0,99,50,Antidote,1,1,,
--- End code ---
--- End quote ---
Lame, isn't it?
So as of now I need ideas on the game's story/background and item suggestions. I will release the Test Drive Demo Soon in order to provide a better understanding of the game.
The only screenshot as of now - Game home/login page
Game page - Engage In Combat - Notice the Chinese Item Names ~-~
Nemo★Ma:
How to create an on-map item in the game.
Every item has a line to arrange in the mapitem.php file, and It's fairly easy, (even you don't know PHP you can create itemsXD)
The general format of an item is as following.
--- Quote ---Hour appeared, place, numbers per hour, name, type, EFF, DUR, Special Value.
--- End quote ---
Hour appeared -> on which hour will the item appear, the hour means the hours past since the game had started
Place -> where will the item appear, if set to 99 then it's all randomly Spread. As now I haven't decide the story and corresponding places yet let's all set to 99.
Numbers Per Hour -> How many of that item will spawn within an hour.
Name -> Item Name
Type -> Item type, type chart will be at the end of this explanation.
EFF -> The Effect of an item (if it's an armor or recovery item) or the damage (if a weapon)
DUR -> How many time it can be used before it disappears
Special -> Not too much use, "g" is for bulletproof, otherwise live it blank BUT KEEP THE COMMA.
There will always 8 commas in every line.
So 0,99,20,Food,HB,20,100,, means:
From the 0th hour onwards, 20 "Food" will randomly spread to all zones on the map, it's "HB" type, means it heal both SP and HP, it have a EFF of 20 and DUR of 100, it didn't have any special attributes.
Type Chart:
--- Code: ---$iteminfo = Array(
'N' => 'None',
'WN' => 'Weapon(CRA)',#Fist, is your default weapon when you didn't have one.
'WP' => 'Weapon(CRA)',#Crashing Weapon, Medium Hit rate and Medium Damage.
'WG' => 'Weapon(GUN)',#Guns, higher hit rate and damage, but needs bullets.
'WK' => 'Weapon(SLA)',#Slashing Weapon, Variable damage,Medium Hit rate, DUR hardly fell
'WC' => 'Weapon(TRO)',#Throwing Weapon, Low Damage, 100% Hit Rate, DUR fell down quickly
'WD' => 'Weapon(EXP)',#Explosives, Max Damage, Low Hit rate, Fast DUR Drain, harder to find.
'DN' => 'Armor(BODY)',#Underwear, means your default Armor without any equipment
'DB' => 'Armor(BODY)',
'DH' => 'Armor(HEAD)',
'DA' => 'Armor(ARM)',
'DF' => 'Armor(FOOT)',
'A' => 'Amulet',
'HH' => 'HP Recover',
'HS' => 'SP Recover',
'HB' => 'ALL Recover',
'PH' => 'HP Recover', #Naturally Poisonous same below
'PS' => 'SP Recover',
'PB' => 'ALL Recover',
--- End code ---
A little bug in the code caused the situation that I can't open the Test Drive Server to public Right Now, and I've work on it for 10 hours, I need some rest first.
Test Drive Open! http://tforce.toypark.in/breng/game.php
Nemo★Ma:
The test server has run for 24 hours, and some people had joined.
I apologize for the buggy status now since the core code is still in reconstruction.
Here is a list of testing results:
NPC encounter, tick
Player encounter, tick
Damage Calculation, tick
News publish, tick
Base Mechanics, tick
Item search, bugged
(Bug : When you search and supposed to pickup some item, the game crushes and sent you back to the front page)
Weather System, tick
Cure, Heal and Sleep, tick
Localization, Incomplete
There are two problems which is not cause by the game codes:
1: If the player used "'" in any part of his/hers motto/killmsg/LW when he/she wins the database will crash, that's a bug of MySQL Database, so don't do that.
2: When you are using Firefox, the Move and other comboboxes must be click and dragged instead of just click. That is the flaw of PHP Active Script.
Nameless Bunny:
Please, explain me how to play it on Internet Explorer, because right now i can't even buy things or even watch who i'm fighting (and if i found someone is an event so random i can't even notices it :S)
Nemo★Ma:
--- Quote from: Nameless Bunny on June 03, 2009, 07:46:54 PM ---Please, explain me how to play it on Internet Explorer, because right now i can't even buy things or even watch who i'm fighting (and if i found someone is an event so random i can't even notices it :S)
--- End quote ---
The free hosting server didn't like IE, please use firefox or at least wait for a more stable and bugless version - which will be on another server which likes IE.