Loading...


bookmark - Text Based Online Game

Text Based Online Game

 
 Discussion by zolacat999 with 5 Replies.
 Last Update: April 7, 2010, 2:08 pm
 
bookmark - Text Based Online Game  
Quickly Post to Text Based Online Game  w/o signup Share Info about Text Based Online Game  using Facebook, Twitter etc. email your friend about Text Based Online Game Print
Reply / Comment New Discussion / Topic Share / Bookmark E-Mail a Friend Print

So just to get this strait in my head if i want to create a text based browser game all i need to know is PHP, if i learnt that i would be able to create it











   Tue May 5, 2009    Reply         

Yes, you can create a text based online game using just php. However, it is not recommended. If you need to save progress then you still need to utilize some database scheme, such as MySQL.

   Thu Apr 1, 2010    Reply         

Pii is correct. I will now show you how to create one without mysql though.

CODE

<html>
<head>
</head>
<body>
<form action="?" method="post">
Command:
<input type="text" name="command2">
<?php
if(isset($_SESSION['command2']) {
echo '
<input type="hidden" name="command3" value=".$_SESSION['command2'].">
';
} else if(isset($_SESSION['command3']) {
echo '
<input type="hidden" name="command4" value=".$_SESSION['command3'].">
';
}
?>
<input type="hidden" name="go" value="1">
<input type="submit">
<?php
if($_POST['go'] == 1) {
// begin game
echo $_SESSION['command4'];
echo $_SESSION['command3'];
echo $_SESSION['command2'];
//put game here
$_SESSION['command3'] == $_SESSION['command2'];
$_SESSION['command4'] == $_SESSION['command3'];
}
?>
</form>
</body>
</html>

Hope that helped! :)
Hannah

   Fri Apr 2, 2010    Reply         


Unfortunately though if you want it to be attractive, have a lot more functionality and draw more players it is recommended you have a basic knowledge of html, css (not essential but definately worth learning) and mysql queries (INSERT INTO and SELECT * FROM) and also have a good working knowledge of php. A lot of people recommend javascript as well but that's really only useful for additional aesthetics and not much else.

   Fri Apr 2, 2010    Reply         

Just PHP no, but that is key for it though html very basic and mysql maybe some css skills will come in veery handy. Also you need your server and what not to get it online which im guessing you know :).

-PinderThe

   Wed Apr 7, 2010    Reply         

QUOTE (pinderthe)

Just PHP no, but that is key for it though html very basic and mysql maybe some css skills will come in veery handy.
Link: view Post: 145979

So basically everything I just said :)

   Wed Apr 7, 2010    Reply         


Quickly Post to Text Based Online Game  w/o signup Share Info about Text Based Online Game  using Facebook, Twitter etc. email your friend about Text Based Online Game Print
Reply / Comment New Discussion / Topic Share / Bookmark E-Mail a Friend Print

Similar Topics:

Which Is The Best Squad Based Game?

i think that the conflict series was the best but Full Spectrum Warrior is the most realistic ...more

   25-Apr-2005    Reply         

New Text Based Game Maker

Hello everyone, I just wanted to stop by and invite you all to try out my new Text Based Game Engine I am currently developing. The engine is being released for free with the source code distributed along with the engine. The game engine is called the TBG Engine Suite and will run text based games o ...more

   13-Jan-2007    Reply         

Help With Making A Textbased Game

hey i really want to make a web text based game like www.hattrick.org i really want it and i have a host .... i want to know where i can find a tutorial for it or what programs i need to use and.... plz help me thanks ...more

   02-Jul-2008    Reply         

Online Gaming    Online Gaming (0) (0) Need To Outsource Online Game Development Cartoon style educational games  Need To Outsource Online Game Development Cartoon style educational games