May 21, 2019, 10:53:59 PM

Author Topic: What do you use AGK classic for  (Read 219 times)

Offline Pfaber11

  • Full Member
  • ***
  • Posts: 176
What do you use AGK classic for
« on: April 19, 2019, 11:45:14 AM »
Was just wondering what you use AGK classic for . All my games so far have been aimed at the windows platform but am thinking  of developing for Android shortly . Might try altering a couple of my programs . Is it a lot of work to convert pc games created with AGK classic to run on Android . Would be cool to get something on play store.

Offline TomToad

  • Sr. Member
  • ****
  • Posts: 382
Re: What do you use AGK classic for
« Reply #1 on: April 19, 2019, 04:04:11 PM »
Most AGK games will run unmodified on mobile. You just need to export to apk.  Only real problems is if your code relies on some platform specific settings, such as hard coded screen size or reading from keyboard.

Mobile ports automatically scale the screen size to fit your device and also creates a virtual joystick for you.
------------------------------------------------
8 rabbits equals 1 rabbyte.

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 1822
Re: What do you use AGK classic for
« Reply #2 on: April 19, 2019, 05:52:12 PM »
Quote
Is it a lot of work to convert pc games created with AGK classic to run on Android . Would be cool to get something on play store.
Strictly speaking it could be no work at all apart from exporting the APK.

Of course you'll need to have all your controls screen based via touch ( unless you are supporting bluetooth gamepads ). You may need to optimise your game to work on lower powered Android devices if for example you load in lots of individual sprites. Ideally if you're aiming at supporting the most audience then all your in-game graphics should be on one texture atlas to reduce draw calls to maximise speed.

Also keep in mind that Android devices have many different resolutions and aspect ratios so use the SetVirtualResolution command and then AGK will scale up / down based on the hardware your game is running on. If your game is meant to be played in portrait or landscape mode then make sure to lock it to that with the SetOrientationAllowed command.

Lastly the Google PlayStore has an APK limit of 100mb so if your game exceeds that you'll need to have media download as an expansion pack ( AGK has commands for this ).

I think that covers the extreme basics :)

Quickest way to gauge what your game will look like on your phone / tablet and what needs fixing / changing is to download the AGK player from the PlayStore and then you can broadcast your game directly to your phone for testing, so need to create an APK and install every time you want to test it on your device.
Until the next time...

Offline 3DzForMe

  • Hero Member
  • *****
  • Posts: 580
Re: What do you use AGK classic for
« Reply #3 on: April 20, 2019, 07:22:04 AM »
Quote
Most AGK games will run unmodified on mobile. You just need to export to apk.  Only real problems is if your code relies on some platform specific settings, such as hard coded screen size or reading from keyboard.

This is quite interesting, was having a play with an old demo of AGK yesterday - I'll be interested to see its APK creation capabilities.

Offline Pfaber11

  • Full Member
  • ***
  • Posts: 176
Re: What do you use AGK classic for
« Reply #4 on: April 22, 2019, 02:19:14 PM »
Well I've converted 2 of my games to run on Android had to redo the controls and change the instructions . To do two games took about six hours  this included testing and getting them up onto the itch.io site . If you want to take a look my site is
 https://myfreepcgames.weebly.com

Oh by the way I have 2 sites . kind  of don't put all your eggs in one basket. Here's my other site.
https://pfaber1.wixsite.com/myfreepcgames

My websites were free and I'm quite pleased with them.

Offline Pfaber11

  • Full Member
  • ***
  • Posts: 176
Re: What do you use AGK classic for
« Reply #5 on: April 22, 2019, 02:30:33 PM »
I was looking at switching to pure basic but the reason I didn't was I couldn't get the ogre engine to work on my laptop. I'm glad I didn't swap now as pure basic won't run on Android as AGK classic does although pure basic is supposed to be really fast which is what made me look at it in the first place . It's taken me just over a year to get into AGK classic and I've put in about 400 hours  into it so know my way around ok. Don't get me wrong I am no master but with every new project I become a bit more competent . Might upgrade to AGK studio when it has had it's official release and all the bugs have been ironed out . Happy Easter . Bonjour