Hey guys,
While working on another project, I came upon a solution that might be really elegant for AirConsole:
THE PROBLEM
Up until now, we have used the AirConsole Controller plugin (by X3M) and the official AirConsole plugin (by AirConsole team, with lots of improvements by Psychokiller1888) together by exporting both into the same root directory. This creates a hassle because then you have to rename the files and change the exported code. This significantly slows down testing.
THE SOLUTION
Instead of exporting them both into the root directory and deconflicting the exported index.html, c2runtime.js, and data.js files, do the following:
1. Create a subdirectory within the game directory called screen/. Export your screen code (using the official AirConsole plugin) to this subdirectory.
2. Create another subdirectory within the game directory called controller/. Export your controller code (using the AirConsole Controller plugin) to this subdirectory.
3. In the root directory, create the following two files. These files never need to be changed:
screen.html
<!DOCTYPE html>
<html>
<script type="text/javascript">
window.location.href = "screen/index.html";
</script>
</html>[/code:1vtan5zp]
controller.html
[code:1vtan5zp]<!DOCTYPE html>
<html>
<script type="text/javascript">
window.location.href = "controller/index.html";
</script>
</html>[/code:1vtan5zp]
Now you can keep the projects separate, always export to the same directory, and never have to change the names or any of the code in either of the exported projects.