Sign in to follow this  
firewall1

php,javascript what not

Recommended Posts

hmm forum seems glitchy for me today... well anyways ive been working with c++ for a while now and ive really decided no matter how good ive become right now ,at this point in time c++ isnt really for me.so ive decided to bring back a past dream of mine and make a php game , i know html,xhtml,css,and the basics of javascript but are php games really that popular? also im saying c++ just wasnt for me,not that it was too hard for me so dont say anything about difficulty

Share this post


Link to post
Share on other sites
It depends on the kind of game you want to make. I wouldn't expect great gameplay from a php game, since once the page has been generated it is static (you'll have to generate javascript or something to make it semi_dynamic).

What kind of game are you planning to make?

Share this post


Link to post
Share on other sites
somewhat of an rpg nothing big also ive been looking on good for a free ide which lets you see what your code does in a program,not on the web because i havnt gotten the hosting or domain yet..im sorry if im sounding like a noob but im only learning the first things about php later im learning mysql sometime next semester or so.

and semi_dynamic i knew i would have to use javascript to make dynamic pages but how dynamic ,i really hate that refresh every step thing php does,will it make it let me say move my character constantly without refreshing?

Share this post


Link to post
Share on other sites
Quote:
Original post by firewall1
somewhat of an rpg nothing big also ive been looking on good for a free ide which lets you see what your code does in a program,not on the web because i havnt gotten the hosting or domain yet..im sorry if im sounding like a noob but im only learning the first things about php later im learning mysql sometime next semester or so.

and semi_dynamic i knew i would have to use javascript to make dynamic pages but how dynamic ,i really hate that refresh every step thing php does,will it make it let me say move my character constantly without refreshing?


Well no, most unlikely. It is possible to leave php script open, but the only thing it will be able to do will be outputting text to the browser (essentially). PHP is usually used in combination with a java applet, to store data in a database.

My suggestion would be: Python!. It has all kinds of extensions, even game / graphical / networking /database related. It is free and it is just great.

Greetings.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Just off your last statment id say you need to do a bit more reserach
It isn't hard to setup php and apache on your comptuer for developing your project

If you wanted to avoid refreshing, you could look at AJAX
desc taken of Wikipedia

Ajax, shorthand for Asynchronous javascript and XML, is a web development technique for creating interactive web applications. The intent is to make web pages feel more responsive by exchanging small amounts of data with the server behind the scenes, so that the entire web page does not have to be reloaded each time the user makes a change. This is meant to increase the web page's interactivity, speed, and usability.

Share this post


Link to post
Share on other sites
Quote:
Original post by firewall1
hmm python? are you able to make an online web game with it?


If you mean, 'run' it in a browser window: no. If you mean, run it locally and have it communicate with a server: yes.

For browser based: you will need something like a java applet, Flash, shockwave... I did hear some good things about Ajax, but i didn't have the time to look into it yet.
Just out of interest: is it supported on out of the box webservers (via Apache ie. like PHP) or does the provider have to set this up? And is it able to, as the poster wanted, animate a character without refreshing? Is it supported by the major part of browsers, is it a http standard? :)

Someone on this forum made his 3d engine in javascript, so javascript is an option for 2d rpg as well, but i doubt that it will work for multiplayer (if you were planning to), and it won't be as fast as an applet or something.

Greetings.

Share this post


Link to post
Share on other sites
I hope this doesn't sound like a troll, because it is not intended to be at all. I think you are in a confused position right now. It looks like you are trying to find a tool and then figure out a game you can make with it. You should be approaching this from the opposite direction. Figure out the game you want to make, then find out what tool will suit you best.

If I have missunderstood, and you have designed your game already and just need to know if you can provide real time dynamic content using php/javascript.(yes)... as mentioned earlier, AJAX is the technology you want to do more research on. XAJAX is a good php ajax library.

Share this post


Link to post
Share on other sites
Off memory if you wanted a game like that, then php, html, csss, javascript should be all you need to get a start, once you have it developed, if it does turn out popular, then you can loook at futher technology to enchance the gameplay/performance

Ive considered a web based project, but im no artist and i dont know any ^.^

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this