BZFLAG in html
BZFLAG in html
I think it would be cool if the bzflag client could also be written in an html code so people could post the game onto their website. Is this possible?
- A Meteorite
- Private First Class
- Posts: 1786
- Joined: Thu Apr 28, 2005 12:56 am
- Location: California, U.S.
- Contact:
Um, no.
But patches are welcome.
EDIT: In case you weren't aware, this is not even technically feasible. HTML is a mark-up language for presentation. That's it. BZFlag is such a complex game, it couldn't even be programmed in JavaScript (well, you could, but no one would want to, and it'd be thousands of times as slow as the real compiled C++ client). The only feasible port would be Java for inside a browser, but even then it would not be a particularly fun to program (or play) port. Of course, if you really want it, patches are always welcome.
But patches are welcome.
EDIT: In case you weren't aware, this is not even technically feasible. HTML is a mark-up language for presentation. That's it. BZFlag is such a complex game, it couldn't even be programmed in JavaScript (well, you could, but no one would want to, and it'd be thousands of times as slow as the real compiled C++ client). The only feasible port would be Java for inside a browser, but even then it would not be a particularly fun to program (or play) port. Of course, if you really want it, patches are always welcome.
Owner @ BZFX
Core Admin @ CAN
Email me: bzmet…@gmail.com
HTML is, as A Meteorite said, is only code for presenting something... there is no logic involved.
This is an example of basic HTML
Note how there is no "logic", nothing saying "If A is equal to B, then Run C", or something like that, anyways...
Now, here is an example of a language with Logic (In this case, PHP)
[ Darn... PHPBB won't let me insert PHP... find it here: http://home.kyleve.net/phpexample.txt ]
Although they may appear similar (in the basic structure, anyways), they do two very different things.
This is an example of basic HTML
Code: Select all
<div>
<ul>Catagories
<li>Photoshop Tutorials</li>
<li>Tech News</li>
<li>Wordpress Templates</li>
<li>Misc.</li>
</ul>
</div>
Now, here is an example of a language with Logic (In this case, PHP)
[ Darn... PHPBB won't let me insert PHP... find it here: http://home.kyleve.net/phpexample.txt ]
Although they may appear similar (in the basic structure, anyways), they do two very different things.
Thanks guys. I was wondering this because you see some Miniclip and other websites games written in html for the public to post that game to their website. I know BZflag is more complex then these games so it would be harder to do. I also know it would never be as great as playing in the real client but for people who just want to try BZflag with out downloading anything this might be helpful. Thanks again for your help.
Benji
That is _not_ written in HTML....
You simply imbed the game into the webpage with HTML. Once again, as Met said, the game itself is written in either Flash, or Javascript.
That is _not_ written in HTML....
You simply imbed the game into the webpage with HTML. Once again, as Met said, the game itself is written in either Flash, or Javascript.
Last edited by Winny on Sun Oct 14, 2007 10:08 pm, edited 1 time in total.
Better yet, you could make a web client that sends exactly would you type in to the server, and you receive what it says. Think of it as BZAssembly.
Of course, we all know that this is never going to happen. I'm fine with the client, and I am anti-Flash (in today's world, we call it pro-Desktop). I've endured a ton of flash crap, so I wouldn't really expect much from the game.
Unless it was written in Perl. Then it would be a different matter.
Of course, we all know that this is never going to happen. I'm fine with the client, and I am anti-Flash (in today's world, we call it pro-Desktop). I've endured a ton of flash crap, so I wouldn't really expect much from the game.
Unless it was written in Perl. Then it would be a different matter.
If you're speaking of a web BZAdmin, AAA has already created something like that in his server management software using his BZFlag_Info and AJAX.F687/s wrote:Better yet, you could make a web client that sends exactly would you type in to the server, and you receive what it says. Think of it as BZAssembly.
Of course, we all know that this is never going to happen. I'm fine with the client, and I am anti-Flash (in today's world, we call it pro-Desktop). I've endured a ton of flash crap, so I wouldn't really expect much from the game.
Unless it was written in Perl. Then it would be a different matter.
-Tanner
- Joe-Schmoe
- Private First Class
- Posts: 192
- Joined: Mon Jul 24, 2006 1:10 am
- Location: This field unintentionally left blank.
I guess the point would be that you don't have to download anything to run the game.
That's useful for people like me who are paranoid about security/safety issues, or if you're using the game on a public computer such as in a library.
Also, since it's embedded into a webpage, you could have stats, buddylists, and all sorts of other stuff around the edges, though this can probably be done anyway by opening a browser and playing the game windowed. Or maybe certain servers only serve to clients in a browser on their site. That way they can sell ad space.
That's useful for people like me who are paranoid about security/safety issues, or if you're using the game on a public computer such as in a library.
Also, since it's embedded into a webpage, you could have stats, buddylists, and all sorts of other stuff around the edges, though this can probably be done anyway by opening a browser and playing the game windowed. Or maybe certain servers only serve to clients in a browser on their site. That way they can sell ad space.
Join MI6!
> If you're speaking of a web BZAdmin, AAA has already created something like
> that in his server management software using his BZFlag_Info and AJAX.
That was kind of a joke. I meant something along the lines of netcat.
The one thing that perplexes me is...why are we even talking about this if we all know it's not going to happen?
> that in his server management software using his BZFlag_Info and AJAX.
That was kind of a joke. I meant something along the lines of netcat.
The one thing that perplexes me is...why are we even talking about this if we all know it's not going to happen?