How do I embed a game in a website?

Shin Kitsune

KITSUNE Game Design
Veteran
Joined
Oct 15, 2012
Messages
149
Reaction score
37
First Language
ENG/SPA
Primarily Uses
RMMV
Hello.


So I am beginning to build a website, and I have planned embedding an RPGMV game in it, like some sort of interactive demo. Something like the RPG Maker MV Pre-order page. How can I achieve this without risking breaking the game itself from running?


Thanks in advance!
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,370
Reaction score
7,678
First Language
German
Primarily Uses
RMMV
you need to copy the entire project into a subfolder of your website. Since the project already has an index.html, it will automatically start the game when someone enters that subfolder as an adress
 

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
863
First Language
German
Primarily Uses
If you want to actually embed the game and not have it running fullscreen, without risking side effects from the game's JavaScript on the rest of the page, consider using an iframe.
 

Sir_Titas

Villager
Member
Joined
Jul 22, 2013
Messages
20
Reaction score
0
First Language
english
Primarily Uses
N/A
If you want to actually embed the game and not have it running fullscreen, without risking side effects from the game's JavaScript on the rest of the page, consider using an iframe.
this idea worked like a charm here is the code i used

Code:
<body>
    <table cellspacing="1" cellpadding="0" border="0"
        bgcolor="black" id="shell" width=100% height=100%>
        <tr height=10%>
            <td colspan="2" bgcolor="white">
                <table title="Banner" id="banner" border="0">
                    <tr><td><h1>Telnian Legends of the Univers</h1></td></tr>
                </table>
            </td>
        </tr>
        <tr height=80%>
            <td bgcolor="white" width=20%>
                <table id="navigation" title="Navigation" border="0">
                    <tr><td>Links!</td></tr>
                    <tr><td>Links!</td></tr>
                    <tr><td>Links!</td></tr>
                </table>
            </td><td bgcolor="black">
                <table title="Content" id="content" border="0">
                    <tr><td>
                        <iframe height=624 width=816 style="float:middle" src=www/index.html></iframe>
                    </td></tr>
                </table>
            </td>
        </tr>
        <tr height=100>
            <td width=320>
                <!--google adsense code gos here-->
            </td>
        </tr>
    </table>
</body>
please note if you want to use my code i am currently working on a new better html code
 
Last edited:

davidicus

Warper
Member
Joined
Jul 7, 2018
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMMV
this idea worked like a charm here is the code i used <...>
please note if you want to use my code i am currently working on a new better html code
how did it turn out? very interested in seeing it in action if possible.
 

Sir_Titas

Villager
Member
Joined
Jul 22, 2013
Messages
20
Reaction score
0
First Language
english
Primarily Uses
N/A
how did it turn out? very interested in seeing it in action if possible.
here is the screenshot of my original template
Capture.PNG
as I said I am currently designing a better web page
 

Darniela

Villager
Member
Joined
Mar 16, 2019
Messages
17
Reaction score
5
First Language
Czech
Primarily Uses
RMMV
Hello,
I'm making a game as my thesis (on linguistics) and my supervisor has asked me whether I can upload the game online. I can see from this thread that it's possible so I'm about to set up my domain. I don't know much about... webpages really, so I was thinking of using WordPress. The first question that popped right after my registration was to choose a type of webpage. Is there anything I should know? Will my game work on a blog? Or do I choose another format?

Sorry if I'm bothering you with noob questions but I can see you've gone through the process of setting up the page already so you might be able to help me.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,370
Reaction score
7,678
First Language
German
Primarily Uses
RMMV
The problem with this is that any form of CMS cannot include HTML5-games directly.

If you only what the game online and have FTP-access to the website, then it is actually easier to use NOTHING and simply upload the project to the webspace with FTP.
If you don't have FTP-access or need other things on the website in addition to the game itself, then I suggest you ask the admin or webhoster on how to create a frame and/or upload an FTP-package into the website structure.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

"You can thank my later", "But you haven't done anything", "Well, that's why ..."
Are we allowed to post about non-RPG Maker games?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

Forum statistics

Threads
105,884
Messages
1,017,242
Members
137,609
Latest member
shododdydoddy
Top