Author Topic: Gotta start somewhere!  (Read 1228 times)

Offline ROCK

  • Level 2
  • *
  • Posts: 3
  • Reputation: +0/-0
    • View Profile
Gotta start somewhere!
« on: January 14, 2009, 04:24:15 PM »
Everyone's got to start somewhere, and I could use some help... Because I know where to start, but not how. I know HTML, and understand the basics (the VERY basics) of PHP (meaning I know how to use the echo tag) but can't figure out how to apply it. I'm thinking of doing something like Click PBBG (http://clickpbbg.com/index.php),because that seems simple. If someone could tell me what tags to use to enable cookies and random message generation (like on Click PBBG) I would be very grateful.

Offline Darius

  • Level 1
  • *
  • Posts: 1
  • Reputation: +0/-0
    • View Profile
Re: Gotta start somewhere!
« Reply #1 on: January 15, 2009, 03:18:51 AM »

Offline toxin

  • Level 21
  • *
  • Posts: 231
  • Reputation: +4/-2
    • View Profile
    • Encore Montreal
Re: Gotta start somewhere!
« Reply #2 on: January 15, 2009, 03:35:15 AM »
Here you go:

http://tinyurl.com/a5koa3

http://tinyurl.com/5wuk4w

http://www.phpvideotutorials.com/ has a few good videos.
http://www.w3schools.com/default.asp   is nice were i learned most of my web knowledge (not that i know anything)
http://www.tizag.com/ also good
there are many others also. And we here can help as long as you are willing to do some work.
« Last Edit: January 15, 2009, 03:39:19 AM by toxin »

Offline ROCK

  • Level 2
  • *
  • Posts: 3
  • Reputation: +0/-0
    • View Profile
Re: Gotta start somewhere!
« Reply #3 on: January 15, 2009, 05:49:08 AM »
Thanks. I learned HTML at W3Schools. It's a pretty good site. Now I just need to know what saves account data! And maybe how to do things. That would help. (Obviously, I'm still pretty new to anything outside of basic HTML)

Offline toxin

  • Level 21
  • *
  • Posts: 231
  • Reputation: +4/-2
    • View Profile
    • Encore Montreal
Re: Gotta start somewhere!
« Reply #4 on: January 15, 2009, 06:03:00 AM »
To save data you need to learn sql. Mysql is a common one. It is fun I am still learning I got the basic down but am still stuck on some of it. the w3schools also has tutorials on it. They also have a php one as well.
Do you have a server if not you need to get one. You can turn you PC into one if need be. If you have  windows http://www.wampserver.com/en/ is a good start.

Offline JGadrow

  • Level 35
  • **
  • Posts: 1,133
  • Reputation: +23/-2
    • View Profile
Re: Gotta start somewhere!
« Reply #5 on: January 15, 2009, 07:15:21 AM »
Quote
I know HTML, and understand the basics (the VERY basics) of PHP (meaning I know how to use the echo tag) but can't figure out how to apply it.
I hope you take this in the spirit that it is intended, since you're learning, I like to see that people are understanding concepts correctly. 'echo' is not a 'tag' it is a 'function.' PHP is different from HTML in that it is a programming language rather than a data definition language. You would use the echo function function of PHP to return data through the standard output, for your purposes, this means it is written into the resulting document that is displayed in the web browser.

As far as generating random messages, programming is a lot like math in that there exist several solutions to any given problem. One solution would be to create an array of messages (think of an array as a container that holds several items) and then randomly pick one of them. This could be done by the following:

Code: [Select]
<?php

$myArray 
= array
(
    
'This is message #1',
    
'This is message #2',
    
'This is message #3',
);

echo 
$myArray [array_rand ($myArray)];

?>
Idiocy - Never underestimate the power of stupid people in large groups.


Offline ROCK

  • Level 2
  • *
  • Posts: 3
  • Reputation: +0/-0
    • View Profile
Re: Gotta start somewhere!
« Reply #6 on: January 17, 2009, 12:46:59 PM »
I might as well give up. I have a web hoster, but it doesn't seem to accept PHP.

Offline FirePenguins

  • Level 10
  • *
  • Posts: 59
  • Reputation: +0/-0
    • View Profile
    • The Iron Helm
Re: Gotta start somewhere!
« Reply #7 on: January 17, 2009, 01:16:54 PM »
There are a lot of free web hosts out there that allow php, so I wouldn't give up :)  They're easy to sign up for and great for testing.  Check out this section of the forum to find out about a bunch of different free hosts: http://community.bbgamezone.net/index.php?board=43.0

Offline jannesiera

  • Level 35
  • **
  • Posts: 1,026
  • Reputation: +6/-1
    • View Profile
    • BBGameDesign
Re: Gotta start somewhere!
« Reply #8 on: January 17, 2009, 02:21:52 PM »
I might as well give up. I have a web hoster, but it doesn't seem to accept PHP.

You don't have to worry about hosting yet! For developing your game, you will use your local computer. Just download WAMP and you can start. I started with a framework, called wodulargaming (http://www.modulargaming.com). Just try to figure out how everything works and ask help if you have problems you can't solve on your own. If mg isn't the framework for you, there are lots of other things to get you started out there.

The most important thing is just to NOT give up! Do you have what it takes to make a browser based game? Or will you just give up?!  ;) :D

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal