Page 1 of 1

interweb + c++ = oil + water?

Posted: Thu Jan 07, 2010 12:00 am
by spirit bomb!
As we all know, c++ is the most superior language ever created for any application in all things computing ( just wanted to create a hate storm).
But as amazing as it is, I have found a road-block that I am not sure if I can hurtle. I am completing a c++ game and was wondering if it was possible
to make it a "in browser" game, like a flash or java game. I feel that making the user download the game is going to be a major turn off, because the
interweb can give you h1n1 and eat your babies at the same time if you download from an unknown source. I just so happened to stubble on this, seemingly,
usefull toolkit that i believe can aid me.

http://www.webtoolkit.eu/wt (sorry if linking is a felony on this board).

Would anyone happen to have any experience with this toolkit, or any know-how on making an "in browser" c++ application?


And here is some miscilanious facts that really don't matter in the slightest degree:

1. I used visual studio, with dark gdk ( I highly recommend this to any 2d game creators, some of their preset functions suck, but it is good for noobs who don't want
to deal with frames per second, updates per second and double buffering, etc.)

2. It is a 2d top down shooter. WASD to move. Point + click to shoot. bunch of levels, and some decently smart enemy ai.

3. Three person "development team". college kids, i code, 1 friend for music, the other for spriting.

4. I have no idea how to make anything run outside of visual studio.

5. The Youtube series "Adventures in game development" is my major source of inspiration.

Any response is more than welcome, even if it is someone just hating me for this being my only post, and I am asking for help. Ask me about how hard making "ai" is if you like.

Re: interweb + c++ = oil + water?

Posted: Thu Jan 07, 2010 1:38 am
by Innerscope
I can't help you with your question, but I would like to see some video footage of your game. 8-)
I don't really think downloading a game is as off putting as it used to be. (waiting hours on a 56k modem anyone?) Yes, I think technology in general is moving toward web based apps, so learning that API will come in handy... and sure flash games will get more hits because they are easier to access, but it really comes down to how you present your game on the web. Do you have a website? Do you have screen shots?
I say, just make the game first. Then deal with making a web-based version. As long as your game doesn't require a long download, (like several hundred MB) I think people will check it out. I know I would.

Re: interweb + c++ = oil + water?

Posted: Thu Jan 07, 2010 10:14 am
by thbp
CGI can be used (usually with perl and python) i am not sure how it's used but i know cgi can be used for this (same as above i'd like to see your game)

Re: interweb + c++ = oil + water?

Posted: Thu Jan 07, 2010 10:31 am
by avansc
dont quote me on this, but i think thats just a wrapper. its not gonna do what you need. it takes C output and makes it html. you wont get graphics or anything like that working.

note: i have not looked in depth but that what i assume it does.

Re: interweb + c++ = oil + water?

Posted: Thu Jan 07, 2010 10:40 am
by Falco Girgis
thbp wrote:CGI can be used (usually with perl and python) i am not sure how it's used but i know cgi can be used for this (same as above i'd like to see your game)
Wrong.

CGI is used for server-side programs. That's analogous to trying to do his "game" with PHP. It isn't going to happen. CGI is for outputting HTML, processing forms, and doing everything on the SERVER side--whereas he needs this to be happening on the client side (web browser).

And no, you aren't going to find what you want. You basically want the compiled, C++ equivalent of Java applets playable through your browser. First of all C++ is compiled whereas Java is (partially) interpreted through a browser plugin, second of all, no browser in its right mind is going to allow the execution of strange machine code, and third of all there doesn't exist a pluggin (that I'm aware of) that would let you do that anyway.

I think there's no real reason, anyway. It's like Innerscope said. You aren't making a cheesy flash game at newgrounds.com. Make yourself a decent website with a decent about page and a few screenshots, and I'm sure people are going to want to download your stuff.

Re: interweb + c++ = oil + water?

Posted: Thu Jan 07, 2010 7:19 pm
by aamesxdavid
I've read about this before, but I have never used it: http://www.osakit.com/

It has some demo-like free version, so it might be worth looking into. The only thing is that the user would still have to download the "player".

Re: interweb + c++ = oil + water?

Posted: Thu Jan 07, 2010 8:19 pm
by dandymcgee
aamesxdavid wrote:I've read about this before, but I have never used it: http://www.osakit.com/

It has some demo-like free version, so it might be worth looking into. The only thing is that the user would still have to download the "player".
Wtf? How does that work!?

Re: interweb + c++ = oil + water?

Posted: Thu Jan 07, 2010 8:22 pm
by spirit bomb!
Aight, I think I'll take yinz advice and not worry about making the game integrated into a browser.
I do not have a website, but i think my experience with Dreamweaver from web page design class at school will help enough to make
a decent looking website. And I got something better than screen shots...

http://www.youtube.com/watch?v=NsO7WlCKUV4

Alright, i may have been a bit misleading as to how much of the game is done.
But this is my second game, after my "unbeatable pong" game.
Check out the youtube video to see if you think this is a
GyroVorbis wrote: "game"
.

The only things that need to be done are...

1. finish the ai (this will kill me if i accomplish what i want)
a. Rushing ai
b. Flanking ai
c. Retreating
d. Flocking of multipule ai
I. If the officer in the company is killed, flocking stops.

2. set cursor to be a reticule
3. Design game ( lol have not done that at all)
a. Make some unique levels, add in the enemies.
b. Should be easy, everything is "modular-ly" (right work??) programmed, so i can add in any object, or enemy where-ever
c. No level editor, just me typing at a screen.

4. Add in sound + music.
5. Add in original sprites + particle effects. So the copyright police don't hunt me down.
6. Maybe add in, between levels, hand drawn art with narration, to make a story

Our goal release date is April 20, 2010. (Because it is easy to remember- that this day is to be celebrated regardless)

Re: interweb + c++ = oil + water?

Posted: Fri Jan 08, 2010 2:55 pm
by RyanPridgeon
I believe that Quake Live did it by writing their own browser plug-ins.
Might be wrong

Re: interweb + c++ = oil + water?

Posted: Fri Jan 08, 2010 9:31 pm
by wtetzner
dandymcgee wrote:
aamesxdavid wrote:I've read about this before, but I have never used it: http://www.osakit.com/

It has some demo-like free version, so it might be worth looking into. The only thing is that the user would still have to download the "player".
Wtf? How does that work!?
Looks like it's a browser plugin that let's you run the game/app in the browser. The users would have to install the plugin.

The website says it's an ActiveX control, but it also says it works in Firefox, Opera, and Sea monkey, so they must have plugins for those too.