Computing.Net > Forums > Programming > Broswer Based Game

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

Broswer Based Game

Reply to Message Icon

Original Message
Name: gimmpy225
Date: November 13, 2004 at 15:27:53 Pacific
Subject: Broswer Based Game
OS: windows XP pro
CPU/Ram: AMD 64 3000+, 2 gb
Comment:

Hey guys, its gimmpy224, i forgot my password so this is my name for my laptop lol.

MK. I want to make a browswer based game in the future, and its also why i started programming in the first place.

I know i need to learn Java,Javascript,PHP, and Flash.

But why so i need to learn these and what do i need to look for in them.

Like i know PHP is for server side scripting, but why do i need that? And why do i need javascript for server side scripting??

Should i not even ask and just start to learn them and itll all be clear to me once i get a little into each one of these??? :)

TY guys, and my MFC programming is coing along pretty good.

Anyways TY fellas :)

GIMPS


Report Offensive Message For Removal


Response Number 1
Name: SN
Date: November 13, 2004 at 16:28:16 Pacific
Reply:

"I know i need to learn Java,Javascript,PHP, and Flash."

I don't know how flash snuck in there...I would put it last on your list of things to learn.

Let's assume that your site has essentially two parts: One the game itself, which loads kind of like yahoo games where people play. The other is the website where you access the game, which shows scores, has forms to submit bugs, register to play the game, forums to discuss the game, etc. Here's the role that each technology plays:

Java: This will be the most difficult and the most important...You'll want to create what's called a Java "Applet", which is a program that runs inside of a browser. You'll use Java to create your game. Once you learn the basics of Java, you'll want to focus on applets.

PHP: Second most important, second hardest (but still WAY easier than the Java portion.) PHP does the second part of your site...All the normal website things. You will have a database (probably mySQL) that holds all the users, messages on the forums, etc. PHP will look up the info in the database and display things that will change...Like High scores, rankings, messages, etc. It will also read in the information from forms that people submit and add their entries to the database. You'll want to focus on the database functions in PHP...But it's a simple language and going through the tutorial on PHP.NET should get you pretty far.

Technically, Java can do all this as well. You would use Java Server Pages (JSP) for this. PHP is more common and easier, but since you're already learning Java...

Javascript: First off, Javascript is completely unrelated to Java. Don't associate them at all. The least important and easiest portion of your game, javascript does small tasks once PHP is finished outputting the page. It can do things like validate e-mail addresses and pop up a message saying that it's invalid, move things on the screen, make drop down menus, etc.

Flash is kind of like a suped-up javascript...You can do animations and stuff in there, and even create smaller games in it.

-SN

PHP:


Report Offensive Follow Up For Removal

Response Number 2
Name: BlueRaja
Date: November 13, 2004 at 22:46:07 Pacific
Reply:

Wow...saw the title, and knew it was you, gimps ;D

AKhalifman@hotmail.com


Report Offensive Follow Up For Removal

Response Number 3
Name: gimmpy225
Date: November 14, 2004 at 00:27:56 Pacific
Reply:

lol, man raja im sick as crap.... :( so i got nothing to do but lay down in the floor with a book and the laptop.


FLU SUCKS

GIMPS


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home



Results for: Broswer Based Game

JDK compiler problems
    Summary: MK and perhaps i should put in here that im only learning java to program applets because i want to create a broswer based RPG game. GIMPS ...
www.computing.net/answers/programming/jdk-compiler-problems/11671.html

programming games
    Summary: i was wondering if you were making an online multiplayer game would you make a browser based game (like www.runescape.com) or a multiplayer game that allows you to connect to the internet and play mul...
www.computing.net/answers/programming/programming-games/10645.html

books for learning
    Summary: Wharfie's question is a very good one... Since it is a web based game... I would probably lean towards PHP and perhaps drop into C++ functions for larger workloads, etc. I only have one PHP book and...
www.computing.net/answers/programming/books-for-learning/10588.html








Which MP3 player do you have?

iPod/iPhone
Zune
Something Else
None


View Results

Poll Finishes In 2 Days.
Discuss in The Lounge
Poll History






Data Recovery Software