What You Need Before You Can Create A Text-based Game.. - Using PHP, HTML and MySQL

free web hosting
Free Web Hosting > Computers & Tech > Programming > Game Programming

What You Need Before You Can Create A Text-based Game.. - Using PHP, HTML and MySQL

Feelay
Please comment and rate, after you finished reading! smile.gif


#################################################################
Change log:
Aug 22 2008: The Tutorial Was Created. V1.0.0
Aug 30 2008: Added XHTML and a small CSS part. Also corrected some small things and added this change log. V2.0.0

#################################################################
OK.. Many people here want to create text based games.
Many of you ask us here on the forums: "how to create a text-based game", or "can you do a text-based game for me".. I think you guys should try to learn some basics first, and then create one on your own.. Then you wont miss all the fun wink.gif

I don't blame you guys.. I think that everyone, or at least many of us, want to create a text-based game. I was once like that.. I knew nothing, but pure HTML, and thought I could create a text-based game. But I was wrong.

Before I continue, I should tell you that this IS NOT a tutorial on HOW to create a text-based game. This post will only teach you what you need, to be able to create one.

The first language you should learn, is HTML, and then XHTML. I am going to give you links to both languages, and some information about them, and you'll have the opportunity to choose. Because XHTML isn't really "a must".
But it can be good to know.. So I'll give you the link for the tutorials, and then you can decide if you want to use it or not.

OK.. The HTML language.. HTML is the language that you make the page design with.. OFC I don't mean creating the pictures for you..
If I define the HTML word on Google, this is what I get:
QUOTE
The programming language used to create documents for display on the World Wide Web.
That should be enough, because I can't explain it better myself tongue.gif

Like I said, you should try to learn some HTML. So here's the best link I know for learning HTML:
W3Schools HTML Tutorials

but OFC.. If you don't like it, you can try Google wink.gif
searched "tutorial:HTML" on google. Lots of other links wink.gif

Now that's about HTML.. it really shouldn't take that long time to learn.. maybe 1 day (about 12 hours) if you learn fast. Could take up to a week if you don't learn so fast. But don't stress! You have plenty of time learning it..


after learning HTML, XHTML if you want to.
If I define the XHTML word on Google, this is what I get;
QUOTE
Abbreviation for Extensible Hypertext Mark-up Language and is a hybrid of XML and HTML. Web pages designed in XHTML should look the same across all platforms.


one thing you should know though, is that you should know HTML, before you move over to XHTML.. because XHTML, is a newer version of HTML, and if you know HTML, XHTML should be easier to learn.
I can't tell exactly how long time XHTML will take to learn, but it shouldn't take more than 1 or 2 weeks. Maybe even less..
So.. here are some links..
W3schools XHTML Tutorials
WebHeadStart XHTML Tutorials


After you learn HTML/XHTML you can, if you want to, learn some about MySQL databases. Now I am not telling you that you should learn everything about it wink.gif but if you want to, you can at least learn what it is wink.gif
Here is a good link smile.gif

W3Schools, MySQL databases

Or, if that isn't enough, you can find something on Google smile.gif.

Anyways.. When you have a basic knowledge about WHAT MySQL is, you should learn PHP.
PHP is the hard part.. If you learn REALLY fast, it can take up to 4 days, before you have basic knowledge about it.
But if you don't learn so fast, it can take 2 months, and even more, before you know the basics.
On this site, almost everything is explained about PHP. This is actually one of the best sites that I've found, that teaches PHP. They have good examples, and they explain them very good. Here you have the link wink.gif
Tizag PHP Tutorials

You can also find PHP/SQL tutorials on the same page. SQL is the language that you use to be able to use/insert data into databases.

Now when you learned these three things, you can continue if you want, with JavaScript and other languages. But those are just extra stuff, if you want to make advanced games, with advanced functions/design.

Also, you should try to learn CSS. That's something that will help you with the design for your page wink.gif
here is a link:
W3Schools CSS Tutorials



Haha tongue.gif I am sure that I missed something tongue.gif

Anyways.. I don't really know if this fits into the tutorials section.. because it isn't really a tutorial.. It just help the people out there, that's making me go mad sometimes (like I did once to other people tongue.gif)
Actually, I don't really know if it fits here either. If it don't, I am sorry, and can an Admin or Moderator please move it to the right place smile.gif

From now on.. you can't say that you didn't find anything when you searched tongue.gif.. Because here you go. It is rare to find someone that will make the game for you. It is better if you learn to make this by your own.. If you don't want to create your own game, you shouldn't have one (sorry for making it sound mean, but that's how life is =/). Stop asking "How to create a text-based game". Because here you go.. more than this, people wont tell you. They will just tell you to go and learn on your own wink.gif.

If you have any questions about this, or if you find anything spelled wrong, tell me, and I'll correct them smile.gif

Please be kind and respect that I've made this tutorial, and that it took some time. I would appreciate if you don't copy this, and paste it on other sites, and say that you made it by yourself. because you didn't.





And thank you for commenting and rating smile.gif
V 2.0.0
Made By Feelay


More will be added, depending on the comments. Also, more links will be added. If I find a good one, I'll add it. Also, if you want a link, to be added, that you find good, just tell me, and I'll add it wink.gif


Best Wishes //Feelay

 

 

 


Reply

FirefoxRocks
Good point stated.
However I would recommend learning the PHP scripting language first before learning about MySQL databases, it makes more sense that way.
Also, without CSS your game would be plain and probably ugly wink.gif

Reply

Jeigh
One thing I would reccomend is not rushing it. Learning each component should take a little time and one should make sure they feel comfortable before moving onto the next. Simply learning the bare basics could lead to being confused when needing to use two or more of the pieces of technology in conjunction with one another later on in the process leading to convoluted problems where you aren't even sure what is going wrong. You don;t need to master each but being able to use any without looking at reference guides 100% of the time would be a very good idea. this is especially crucial if you intend to create a more complex game as having issues with your html when you are dealing with relatively complex php will simply cause problems that could be easily avoided by a little practice.

Reply

Flamez
Yeah CSS would be required. It would make your page look better.

Reply

wutske
I'd rather define (X)HTML as a language that you use to organise data and content, it's more a structural language. The design of a website should be made with CSS.

Anyway, this should be a nice sticky cool.gif

Reply

Feelay
I've changed some things in the tutorial now smile.gif

QUOTE(FirefoxRocks @ Aug 22 2008, 09:58 PM)
Good point stated.
However I would recommend learning the PHP scripting language first before learning about MySQL databases, it makes more sense that way.


It depends from person, to person wink.gif I prefer to learn about the soft wares and things, that I am going to use, before I move over to the more complex things.

Done

QUOTE(FirefoxRocks @ Aug 22 2008, 09:58 PM)
Also, without CSS your game would be plain and probably ugly wink.gif

I don't know CSS yet, but thanks for pointing that out smile.gif

Done


QUOTE(Jeigh @ Aug 25 2008, 09:52 PM)
One thing I would recommend is not rushing it. Learning each component should take a little time and one should make sure they feel comfortable before moving onto the next. Simply learning the bare basics could lead to being confused when needing to use two or more of the pieces of technology in conjunction with one another later on in the process leading to convoluted problems where you aren't even sure what is going wrong. You don;t need to master each but being able to use any without looking at reference guides 100% of the time would be a very good idea. this is especially crucial if you intend to create a more complex game as having issues with your html when you are dealing with relatively complex php will simply cause problems that could be easily avoided by a little practice.


Thanks for the comment smile.gif And yeah. that's true smile.gif Listen to that guy biggrin.gif

QUOTE(wutske @ Aug 30 2008, 12:59 AM) *
I'd rather define (X)HTML as a language that you use to organise data and content, it's more a structural language.

in w3schools, they say that XHTML is a stricter and cleaner version of HTML. I'm going to add somethings to the tutorial. (CSS, and make them choose between HTML and XHTML).

Done


QUOTE(wutske @ Aug 30 2008, 12:59 AM) *
Anyway, this should be a nice sticky cool.gif

haha tongue.gif why not make it a rule to read this before people ask about how to make their own text game rolleyes.gif tongue.gif


Thanks for all your comments biggrin.gif
Best Wishes
//Feelay

 

 

 


Reply

Alarm
Nice tutorial. How about any suggestion on freehost website that support cronjob?

Reply

Feelay
QUOTE(Alarm @ Sep 7 2008, 03:09 PM) *
Nice tutorial. How about any suggestion on freehost website that support cronjob?


Astahost is a freehost that support cronjobs.

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

Recent Queries:-
  1. tutorial text based game php sql - 123.77 hr back. (1)
  2. tutorial make your own text based mmo - 158.92 hr back. (1)
  3. how to create a text based game easily - 456.25 hr back. (1)
Similar Topics

Keywords : create, text, based, game, php, html, mysql

  1. Browser Based Text Games
    (2)
  2. Can You Link Game Maker With Mysql/php
    Title says it :D (0)
    Hello, I am new to this service and i think I am going to like it =). Anyway, my main question is
    can you link executable games made by gamemaker (i have pro) to a database? And can i use the php
    server i get here to transfer data to that game? If so i would appreciate a little help with it
    because I am new to both =). Also is there anyway to get a www.mywebsite.com via credits from
    astahost? Finally is there any group here that works with gamemaker? we might have small contests
    or so /tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /....
  3. Need Help With Codeing For A Turn Based Game
    (0)
    hi, i am new to programming and have started creating my own turned based mmo in php, can any one
    help me i am stuck with the coding for the main part of the mmo also the php tutorials were not
    useful. this is the site for my mmo www.starciv.net78.net the mmo will be similar on
    astroempires.com and ogame.org....
  4. Nvu
    Its a good HTML coder (2)
    Well i was searching around and i found Nvu. So i downloaded it took hardly any space at all, but
    you can put in HTML codes and then see the preview and there are many options in there you can set
    up the page with out using HTML and then after it will convert it into HTML. I used it for a while
    but then i got these MCcodes and now im going to edit them after i get the host......
  5. Powerpoint Based Games!
    I know how to make them! (18)
    Hi, have you ever heard of Tic Tac Toe/X's and O's on PowerPoint slides. I'm trying to
    make one but is HTML. xxxx-jozh-xxxx....
  6. This Is Def. A Big Topic I See, I Want To Mke An Online Text Based Game
    please help me out (5)
    ok, i know absolutly nothing, i know what i want to make and that i want a members bit, for paying
    people. I want to make a game like the one at www.tycoononline.nu and like www.injustice.net.nz, and
    games like that, its going to be about makeing a business. at the beging you get said amount of
    cash, you choose a profession, law, farming, oil, crime, stuff of the nature. when you mkae a
    bussiness, or crime family you have shares orsomething else for the crime, but you cant automaticlly
    make a bussiness, you need to get investors and stuff like that, you never get to se....
  7. Text Based Internet Site Game...
    (2)
    Hey guys, Im new here just thought i'd say hello! /smile.gif" style="vertical-align:middle"
    emoid=":)" border="0" alt="smile.gif" /> Im planning on creating a text based internet game using
    php/sql.. im sure many people have asked for this over the months/years hehe. Though at first when
    learning php thankfully i learnt visual basic and html in school and the logic of php is not to bad.
    All was looking good on that front. Though i think i underestimated how big of a thing this is for
    one man to do alone. I cannot for life of me even begin to think where to start ....
  8. Help Creating A Browser-based Rpg
    (5)
    I have played games like www.the-lost-realm.com and www.torncity.com and I have always wanted to
    make my own. I have some programming experience in Java and Perl, but I'm looking to make this
    game in PHP. It would be nice if someone could add me on MSN at joli334@yahoo.com and help me get
    started. I just want to start out with something simple and work my way up. I know not to shoot for
    the stars right away. Any help from anyone would be greatly appreciated, thanks.....
  9. Making A Turn Based Game Like Ogame
    Help would be nice =D (9)
    The Idea came to me and Just wanted to know what kind of code I'll need to know ect ect Also
    Help would be nice, because I'm kind of fresh =D x....
  10. Making A Php Based Online Game
    Would anybody like to help (3)
    I, along with several others, am making an online game called Galactic Rifts (at the moment). It is
    a sci-fi text or graphical based game set in the future where you have to conquer other players and
    dominate. The address is http://galacticrifts.ssr.be/ so if anybody would like to help come along
    and sign up. We are currently in the planning stage so any new ideas will be welcome.....
  11. Advice About Making A Text Based Game
    (9)
    I got my Astahost account in hopes of making a multi-player, online, text-based game in real time.
    What I need help with is the programming side of things, a little advice really. I talk to the
    maker of a similar type game that I play, and he suggested I learn PHP with MySQL and ASP, and I
    cant really remember if he said anything else. I have been playing around a little with PHP and
    only dabbled with MySQL, but I know nothing of ASP except that it stands for Active Server Pages.
    So basically, the advice I'm looking for is, what kinds of scripting/coding would pe....
  12. I Want To Create A PHP Text Based Web Game
    (5)
    I am new to programming and although HTML and it's similar forms I already know, I would like to
    learn PHP but I have no clue where to start. I have been playing this game online for over a year
    now, and I have yet to find anything similar, so I want to take a jab at creating it. The game is
    Kings of Chaos and in my mind it just rocks, but when you only get 1 turn every 30 minutes the time
    between turns i get bored and have tried several other game that are similar but they in no way
    caompare, if anything they look like hacked up copies of KoC and with lots of bugs ....
  13. Help Me Create A Text-based, Turn-based Game
    Similar to X-kings, Inselkampf, Ogame, Travian,etc.. (10)
    Can anyone help me create a game similar to the ones mentioned above? It isn't intended to have
    lots of graphics, but maybe a few... Any response will be much appreciated.....
  14. What Language Should I Use For My Game?
    Text based (7)
    I've been approved for my webpage (yeah) but am waiting for my confermation email, aol stinks.
    Anyway, I've been working on an idea for a text based game now for some time on paper. It would
    be in real time days=days hours=hours kinda thing, needing some databases with pictures. I would
    want a place where there could be some kind of forum or something like it. My question is, what
    languages would I need to know to do this kinda stuff? I've got the HTML down pretty well. I
    have to download that WAMP thing so I can learn PHP. I'm pretty sure I'll....
  15. How To Make A Text Based Online Game Script ?
    (24)
    Does anyone know if there is a easy was to make a text base online game, Like a free templet, or if
    anyone know how to make one and can help me.....

    1. Looking for create, text, based, game, php, html, mysql






*SIMILAR VIDEOS*
Searching Video's for create, text, based, game, php, html, mysql
advertisement




What You Need Before You Can Create A Text-based Game.. - Using PHP, HTML and MySQL