Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Is it possible to play your game on a webpage?

I plan on finishing the game i am making someday, when i do i plan on buying a website, then buying another computer(possibly dell) to use as a server. Is it possible to have you game load on a website, and to be played on the webpage? Sorta like how Runescape has theres, but I notice they use Java. Does anyone know what type of scripting Runescape used? What type of scripting would i have to learn for this? Ajax? Perl? DHTML? HTML? JAVA? C? C++? C#? SQL? I just mainly need to know if this is possible, and if so will what scripting should i learn?

I will try to go through with Ruby as far as i can go, i will be taking some classes in college this spring. Then eventually go to a better college thats not just some lame ol community college. Looking forward to a detailed response, appreciate it!
 
Reasoning being? and what scripting is needed?
I know games can be made for online uses. I have seen them, bu tthey all have to be downloaded, i dont want them to have my game on there computer, whereas, to upload the game when they are on the site and to be played on the web page.
 
everything led me back to C++ so which progream should i download for that? a beginner program, something, free. once i develop a sense of what i am doing of course i will buy the main thing. (I bought 3 big how to C++ books) thanks
 
Well sounds like your going all out on this game huh?

It must be a heck of a game.


Why might i ask, don't you want it to be downloaded?

if its free whats it hurt?





It better be good for all this trouble.


you seriously should have the people here play it, to test it out.
 
Yes, you can. There's a few active x controls (I think) you could cheaply license that should allow RMXP games to be played on a webpage.

I don't remember their names offhand but I think OSA was part of one.
 
@bojox3m - Hmm, i see that they have implemented there game online, and it appears to be from java:
Code:
<html>
<head>

<style type="text/css">
a:hover {text-decoration: underline; color: #FFFFFF;}
a {text-decoration: none; color: #DDDDDD;}
</style>


<script type="text/javascript" src="scripts/error.js"></script>
<script type="text/javascript" src="scripts/setkey.js"></script>


<script type="text/javascript">

function keypressed(thekey) {
if (thekey == top.goupkey)
	top.gameframe.picframe.themap.moveUp();
else if (thekey == top.godownkey)
	top.gameframe.picframe.themap.moveDown();
else if (thekey == top.goleftkey)
	top.gameframe.picframe.themap.moveLeft();
else if (thekey == top.gorightkey)
	top.gameframe.picframe.themap.moveRight();
else if (thekey == 109)
	commandmenu();
else if ((thekey == 101) || (thekey==top.acceptkey))
	commandenter();
else if (thekey == 116)
	commandtalk();
else if (thekey == 115)
	commandsearch();
else if (thekey == top.cancelkey)
	commandsearchsmart();
else if (thekey == 114)
	commandrest();
else if (thekey == 112)
	top.doit();
else
	top.showmessage("Unknown key: " +thekey+ "
");
}



function commandmenu() {
if (!top.commandlocked)
	{
	top.picframeURL("main_character.html");
	top.commandframeURL("command_menu.html");
	}
}

function commandenter() {
if (!top.commandlocked)
	{
	with (top.gameframe.picframe.themap)
		{
		enterIt(getCharX(), getCharY());
		}
	}
}

function commandsearch() {
if (!top.commandlocked)
	{
	top.commandframeURL("command_search.html");
	}
}

function commandsearchsmart() {
if (!top.commandlocked)
	{
	top.commandframeURL("command_search_smart.html");
	}
}

function commandtalk() {
if (!top.commandlocked)
	{
	top.commandframeURL("command_talk.html");
	}
}

function commandrest() {
if (!top.commandlocked)
	{
	top.rest();
	}
}


function commandoutside(width)
{
  var thetext=top.topbox("interface/top-gamemenu.gif",90,15,width);
  thetext+="<table border='0' align='center'>";
  thetext+="<tr><td><a href='javascript:commandmenu()' onMouseOver=\"top.showhelp('Access the menu to view stats, use items, save games, etc.')\" onMouseout='top.showstats()'><font size='4'><B><u>M</U>enu</B></font></a></td></tr>";
  thetext+="<tr><td><a href='javascript:commandenter()' onMouseOver=\"top.showhelp('Go inside towns, caves, dungeons, etc.')\" onMouseOut='top.showstats()'><font size='4'><B><U>E</U>nter</B></font></a></td></tr>";
  thetext+="<tr><td><a href='javascript:commandtalk()' onMouseOver=\"top.showhelp('Start a conversation.')\" onMouseOut='top.showstats()'><font size='4'><B><U>T</U>alk</B></font></a></td></tr>";
  thetext+="<tr><td><a href='javascript:commandsearch()' onMouseOver=\"top.showhelp('Search for items.  Use to open treasure chests.')\" onMouseOut='top.showstats()'><font size='4'><B><U>S</U>earch</B></font></a></td></tr>";
  thetext+="<tr><td><a href='javascript:commandrest()' onMouseOver=\"top.showhelp('Make camp and rest.  Recovers HP and MP.  Requires item: Tent')\" onMouseOut='top.showstats()'><font size='4'><B><U>R</U>est</B></font></a></td></tr>";
  thetext+="</table>"
  thetext+=top.bottombox(width);
  thetext+="<p align=\"center\">" +top.helpLink(320,500,"help/mapscreen.html")+ "</p>";
  return thetext;
}


function startup() {
top.commandframeLoaded();
top.thecommand = this;
top.writecommandlayer(commandoutside(200));
top.showstats();
}



</script>


</head>

<body bgcolor="#002080" onLoad="startup()">

<script>
if ((document.all) || (document.getElementById))
	{
	document.write("<div id=\"commandlayer\" style=\"position:relative; left:0px; top:5px;\"></div>");
	}
else
	{
	document.write("Could not create dynamic content.");
	}
</script>
</body>
</html>
Very interesting how they did that, so they must have used a bit of PHP to transfer information from the game into their off game hud right? So rmxp to create, java to implement, then php to transfer the info.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top