Fancade Web: Difference between revisions

m
Formatting
(Migrate from old Wiki)
 
m (Formatting)
Line 3: Line 3:
== Linking to Games ==
== Linking to Games ==


A link to a published game can be generated by clicking the ‘Share’ button for that game.
A link to a published game can be generated by clicking the 'Share' button for that game.


Links to games have the following format: https://play.fancade.com/5F084A0BCE06B710 where <code>5F084A0BCE06B710</code> is the game’s unique identifier.
Links to games have the following format: https://play.fancade.com/5F084A0BCE06B710 where <code>5F084A0BCE06B710</code> is the game's unique identifier.


The web app will load the linked game and directly start the first level.
The web app will load the linked game and directly start the first level.
Line 11: Line 11:
== Setting Start Level of Linked Games ==
== Setting Start Level of Linked Games ==


The starting level of a linked game can be set by appending the level index to the end like this: https://play.fancade.com/5F084A0BCE06B710/8 The <code>/8</code> part (after the game’s unique identifier) sets the start level to 8, in this case.
The starting level of a linked game can be set by appending the level index to the end like this: https://play.fancade.com/5F084A0BCE06B710/8 The <code>/8</code> part (after the game's unique identifier) sets the start level to 8, in this case.


== Differences Compared to App ==
== Differences Compared to App ==


There are some differences between the web app and the regular app. Here is a summary: * Highscores, like/play counters use a separate system (we plan to merge these later) * All in-app purchases are disabled * Payouts are disabled * Need to log in to Fancade account to play challenges * Linked games start directly * Additional controls for mouse and keyboard (see below for a complete list) * Auto-save in edit mode * Dev pause mode with single-frame step * Can download games in ‘Projects’ to local file system * Can drag-and-drop files from local file system into web app. The game ends up in ‘Projects’ * Command line
There are some differences between the web app and the regular app. Here is a summary:
 
* Highscores, like/play counters use a separate system (we plan to merge these later)
* All in-app purchases are disabled
* Payouts are disabled
* Need to log in to Fancade account to play challenges
* Linked games start directly
* Additional controls for mouse and keyboard (see below for a complete list) * Auto-save in edit mode
* Dev pause mode with single-frame step
* Can download games in 'Projects' to local file system
* Can drag-and-drop files from local file system into web app. The game ends up in 'Projects'
* Command line


== Performance and Compatibility ==
== Performance and Compatibility ==
Line 21: Line 32:
If the game seems to run slow, check if hardware acceleration is enabled in your browser.
If the game seems to run slow, check if hardware acceleration is enabled in your browser.


If the game doesn’t run at all, there are usually some helpful messages shown (hopefully on screen but also in the web developer console). Fancade web has been tested and confirmed to work in Chrome, Firefox, Safari and Edge, but there can be issues with video drivers etc. that’ll prevent it from running. You can also try to disable hardware acceleration, but then the game will run much slower.
If the game doesn't run at all, there are usually some helpful messages shown (hopefully on screen but also in the web developer console). Fancade web has been tested and confirmed to work in Chrome, Firefox, Safari and Edge, but there can be issues with video drivers etc. that'll prevent it from running. You can also try to disable hardware acceleration, but then the game will run much slower.


== Additional Controls ==
== Additional Controls ==
Line 69: Line 80:
|-
|-
| 1, 2 and 3 key
| 1, 2 and 3 key
| Open the selected block’s settings
| Open the selected block's settings
| 1 opens the first settings, 2 the second etc.
| 1 opens the first settings, 2 the second etc.
|-
|-
Line 109: Line 120:
|-
|-
| CTRL + S key
| CTRL + S key
| Save game in the browser’s local storage
| Save game in the browser's local storage
| This is not a normal file in the filesystem. Local storage can easily be cleared, so it is recommended to download the game as a local file regularly using CTRL + Shift + S
| This is not a normal file in the filesystem. Local storage can easily be cleared, so it is recommended to download the game as a local file regularly using CTRL + Shift + S
|-
|-
Line 268: Line 279:


CTRL + S key | Save the selected game as a local file | Only works in “Projects” or if the current logged-in user is the author of the game |<br />
CTRL + S key | Save the selected game as a local file | Only works in “Projects” or if the current logged-in user is the author of the game |<br />
Files dropped onto window | Create a new game in “Projects” for each file | Only works in the top menu. Doesn’t work if the file exists or if the current logged-in user is not the author of that game (and the game is not editable). This can be used for turn-based collaboration. |
Files dropped onto window | Create a new game in “Projects” for each file | Only works in the top menu. Doesn't work if the file exists or if the current logged-in user is not the author of that game (and the game is not editable). This can be used for turn-based collaboration. |


=== Command Line ===
=== Command Line ===
Line 454: Line 465:
== Collaboration with Export/Import ==
== Collaboration with Export/Import ==


It is possible to collaborate on a project by using the following procedure: * Press CTRL + S in the game’s menu to download a game from ‘Projects’ to the computer’s local filesystem * Send the file to the person you collaborate with * That person then drags and drops the file into the browser window running the Fancade web app (only works in the top menu) * The game will end up in ‘Projects’ and can be further edited and then exported with CTRL + S and sent back
It is possible to collaborate on a project by using the following procedure:
 
* Press CTRL + S in the game's menu to download a game from 'Projects' to the computer's local filesystem
* Send the file to the person you collaborate with
* That person then drags and drops the file into the browser window running the Fancade web app (only works in the top menu)
* The game will end up in 'Projects' and can be further edited and then exported with CTRL + S and sent back


NOTE: When importing a game with drag-and-drop, that game must first be removed.
NOTE: When importing a game with drag-and-drop, that game must first be removed.
Line 500: Line 516:
|}
|}


The size of the canvas is never greater than the browser window’s inner size.
The size of the canvas is never greater than the browser window's inner size.


If any of the aspect ratio parameters are set, the aspect ratio is enforced.
If any of the aspect ratio parameters are set, the aspect ratio is enforced.
8

edits