Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.