Solve the problems with AIR (Patreon)
Content
As informed, I'm planning to change the game format from Flash to AIR, and already in beta testing now.Touch The Girl! Beta test for new AIR formatThe game itself is generally working fine, but since the platform has changed, various minor problems have surfaced.
This is the previous Flash version. The Flash file (Game.swf) of the game body is wrapped in a Flash Projector, a player and converted into an exe application.Functions on the player side, such as closing the game or changing the image quality were controlled by external commands sent from the program in the game to the projector. This was possible because both the game and the projector run on the same AS1.0 code.
This is the current beta test version. The player changed from a projector to AIR. AIR is a new AS3.0 based format and although it can load AS1.0 files, the both programs are not compatible. So it can't be controlled from the game side.Currently, the biggest problem is that the keyboard does not work in full screen mode due to AIR's security specs. It has always been done on the game side, but to solve this problem, I have to use a special AS3 command to make the AIR window full screen.So I tried mixing AS3 code into the game program to see if it'd work, but it froze immediately and I understood it's impossible.
So, create a new loader program (loader.swf) in AS3 that loads the game file, and then it's loaded in AIR. In this way, I can write the AS3 program in the loader part, and can control the AIR window.However, access from the AS1 game program is still impossible, so the exit and full screen buttons are eliminated and they are keyboard-only controls. I'll beta test this version soon.To be honest, there is no advantage in switching to AIR for now, but I expect that AIR will be able to do many more things in the future because it can access the OS different from Flash.