LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-25-2011, 12:00 PM   #1
gameon786
LQ Newbie
 
Registered: Feb 2011
Posts: 4

Rep: Reputation: 0
Running Game on web browser


Hi,
I have developed a game using c++ and GLUT few month back.Now i want that game to be playable on web browser.
What i need to do for it?
Do i need to write the whole game again or just a slight modification will do the job?
 
Old 02-25-2011, 12:12 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
So you are saying you already compiled a program, which is your game, and now you want to be able to play it within a browser? You will have to rewrite your game to be able to use within a browser. Java comes to mind....

Cheers,

Josh
 
Old 02-25-2011, 07:07 PM   #3
gameon786
LQ Newbie
 
Registered: Feb 2011
Posts: 4

Original Poster
Rep: Reputation: 0
well actually its a chess game.so you mean i need to write it in java to make it run on my browser?
 
Old 02-25-2011, 07:31 PM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
I am just giving suggestions. We are here in these forums to help and assist, not to tell you what to do. As far as your game though, would you like to port it to java? Or would you prefer another language?
 
Old 02-25-2011, 07:56 PM   #5
gameon786
LQ Newbie
 
Registered: Feb 2011
Posts: 4

Original Poster
Rep: Reputation: 0
actually i just want to make it playable on web browser.I nvr coded in java.as far as my game programming is concern i know c++ with glut and python but since no browser support pygame so i am trying to extend the same code for browser.Since i nvr worked on such a project all i want to do is to extend the same game(in c++) to playable online(if at all possible) with minimal effort like injecting a code to some module which able to flush the game on browser window like as we do for flash games(for HTML pages)
 
Old 02-25-2011, 08:05 PM   #6
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Flash games are programmed in flash. To do what you say you want to do, you still need to port code.
 
Old 02-25-2011, 08:16 PM   #7
gameon786
LQ Newbie
 
Registered: Feb 2011
Posts: 4

Original Poster
Rep: Reputation: 0
Oh i think i miss that thing.What actually is porting code?
 
Old 02-26-2011, 12:48 PM   #8
soplin
Member
 
Registered: Apr 2007
Distribution: Mostly Debian
Posts: 114

Rep: Reputation: 19
You need to port/recode it to flash or java using applets for it to work in the web browser.
 
Old 02-26-2011, 12:55 PM   #9
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Quote:
Originally Posted by gameon786 View Post
Oh i think i miss that thing.What actually is porting code?
Porting is rewriting code to a different language and/or platform. You can find more information about programming and writing code in flash on google - There is documentation and tutorials all over the internet. Java too, just takes a simple search. Here is something to get you started:

http://www.w3schools.com/flash/default.asp
http://download.oracle.com/javase/tutorial/

Good luck. Cheers,

Josh
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Ajaxterm- A web based terminal that help you use ssh from a web browser LXer Syndicated Linux News 0 10-13-2010 09:20 PM
Why does my browser not support this web game? jlinkels Linux - Software 4 02-25-2010 06:08 AM
Failed to launch VMware Web Access: unable to find a graphical web browser. rob0t Linux - Server 0 03-18-2009 02:32 PM
piping a web browser to a C program running in the shell expeliarmus Programming 3 10-10-2007 09:34 AM
browser plugin for Konqueror web browser (linspire) Tracianddwayne Linux - Newbie 1 01-01-2005 02:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration