Login

Fancade Wiki

Updated Fancade Web.md (markdown)

... ...
@@ -168,3 +168,36 @@ Some examples of how to use the parameters:
168 168
| <https://play.fancade.com?ar_w=16&ar_h=9> | Forces aspect ratio to 16/9 and maximizes the size |
169 169
| <https://play.fancade.com?ar_w=9&ar_h=16&max_h=800> | Forces aspect ratio to 9/16 and restricts the height to max 800 |
170 170
171
## Embedding
172
173
It is possible to embed Fancade Web within an iframe, and in that way publish a game on sites like itch.io.
174
Here is an example of an HTML file that can be used for embedding a Fancade game:
175
176
<!doctype html>
177
<html lang="en-us">
178
<head>
179
<meta charset="utf-8">
180
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
181
<style>
182
* {
183
margin: 0;
184
padding: 0;
185
}
186
#fancade {
187
border: 0;
188
width: 100%;
189
height: 100%;
190
overflow: hidden;
191
position: absolute;
192
top:0px;
193
left:0px;
194
right:0px;
195
bottom:0px;
196
}
197
</style>
198
</head>
199
<body>
200
<iframe id="fancade" src="https://play.fancade.com/5F084A0BCE06B710?max_w=2800&max_h=2800" frameborder="0" height="100%" width="100%" title="A Title"></iframe>
201
</body>
202
</html>
203
Fancade Wiki