BellQuestWars Posted April 20, 2011 Share Posted April 20, 2011 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! Quote Link to comment https://forums.phpfreaks.com/topic/234297-tribal-wars-like-game/ Share on other sites More sharing options...
mens Posted April 20, 2011 Share Posted April 20, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/234297-tribal-wars-like-game/#findComment-1204220 Share on other sites More sharing options...
BellQuestWars Posted April 20, 2011 Author Share Posted April 20, 2011 Okay thanks, I'll look at that, to see how some stuff is done. I already have a login script (just reused one I found just sitting in my documents... Weird.) you can check it out at bqwars.netii.net Quote Link to comment https://forums.phpfreaks.com/topic/234297-tribal-wars-like-game/#findComment-1204229 Share on other sites More sharing options...
mens Posted April 20, 2011 Share Posted April 20, 2011 You can post the link in the Website Critique board if you want to get feedback on it. Quote Link to comment https://forums.phpfreaks.com/topic/234297-tribal-wars-like-game/#findComment-1204237 Share on other sites More sharing options...
BellQuestWars Posted April 21, 2011 Author Share Posted April 21, 2011 Okay thanks. Quote Link to comment https://forums.phpfreaks.com/topic/234297-tribal-wars-like-game/#findComment-1204286 Share on other sites More sharing options...
BellQuestWars Posted April 21, 2011 Author Share Posted April 21, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/234297-tribal-wars-like-game/#findComment-1204299 Share on other sites More sharing options...
mens Posted April 21, 2011 Share Posted April 21, 2011 As said, you will need to be able to store the game data. So PHP is the logical choice. But good luck. Quote Link to comment https://forums.phpfreaks.com/topic/234297-tribal-wars-like-game/#findComment-1204549 Share on other sites More sharing options...
BellQuestWars Posted April 21, 2011 Author Share Posted April 21, 2011 thanks. Should be simple enough, just a bunch of MySQL crap. Quote Link to comment https://forums.phpfreaks.com/topic/234297-tribal-wars-like-game/#findComment-1204660 Share on other sites More sharing options...
BellQuestWars Posted April 22, 2011 Author Share Posted April 22, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/234297-tribal-wars-like-game/#findComment-1204870 Share on other sites More sharing options...
Maq Posted April 22, 2011 Share Posted April 22, 2011 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 Quote Link to comment https://forums.phpfreaks.com/topic/234297-tribal-wars-like-game/#findComment-1204884 Share on other sites More sharing options...
BellQuestWars Posted April 22, 2011 Author Share Posted April 22, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/234297-tribal-wars-like-game/#findComment-1204976 Share on other sites More sharing options...
Maq Posted April 22, 2011 Share Posted April 22, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/234297-tribal-wars-like-game/#findComment-1204981 Share on other sites More sharing options...
BellQuestWars Posted April 22, 2011 Author Share Posted April 22, 2011 How did I not think of that... Quote Link to comment https://forums.phpfreaks.com/topic/234297-tribal-wars-like-game/#findComment-1204992 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.