Jump to content

Tribal Wars like game


BellQuestWars

Recommended Posts

Hey guys, this is my first post here.  I've been learning PHP ad AJAX/Javascript for the past few years, and I think I'm ready to make my first game.  I want to make a Tribal Wars like game (turn based strategy.)  I was wondering if I should use PHP or AJAX for this.  The game will go along with a game I'm making in Java called Bellator Quest, that I'll be releasing in a few months... Thanks for the input!

Link to comment
https://forums.phpfreaks.com/topic/234297-tribal-wars-like-game/
Share on other sites

Tribal Wars the original, is created with PHP and Javascript. A mixture of that is your best bet for creating any game.

Ajax would be useful in some parts of the application, but it's only client-side, and thus, would need a back-end created with PHP or a similar server-side technology.

 

There are some Tribal Wars like game engines out there, like Devana, which you could use to develop a game upon.

Okay, so here are some variables I know I will need for the users (with the exeption of the usual crap (usernames, passwords, emails, etc.)

//generic stats

Strength

Legion (this is like a guild or clan.

Lumber

Iron

Coal

Tax %

 

//buildings

Fort Level

Training House level

Iron Mine level

Lumber Mill level

Coal Mine level

Marketplace level

 

//soldiers

Spearmen

Axemen

Rangers

Axe Throwers

Horsemen

Warlords

Head Rangers

Assasins

Dukes

 

I think I'm going to do it in PHP because I know more php than JavaScript/AJAX.

Okay, I redid the login system,  as the one I had was a bit advanced for me (i'm guessing I had downloaded it for learning.)  Now you may register, and you are given 500 resources.

Please, as mens mentioned, if you want a critique then post there:

http://www.phpfreaks.com/forums/index.php?board=10.0

Okay, I'll do that, I was just waiting until the website was nearer finished.

Question, In PHP, I want to make a variable that carries between 2 pages, but I dont feel like making an SQL table for this, is there any easy way to do this or should I just make an SQL table.

Okay, I'll do that, I was just waiting until the website was nearer finished.

Question, In PHP, I want to make a variable that carries between 2 pages, but I dont feel like making an SQL table for this, is there any easy way to do this or should I just make an SQL table.

You probably want to use sessions:

http://www.tizag.com/phpT/phpsessions.php

 

There may be a better way depending on what exactly you want to do.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.