Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Studio Chat / A question about multiple files.

Author
Message
haliop787
4
Years of Service
User Offline
Joined: 22nd Mar 2020
Playing: With reality.
Posted: 13th Apr 2020 08:23
My 1.0 alpha is ready and it is all built in one file, one scene file, and multiple Media assets.

so my question is, it is all built in one main.agc and i want to reorganize it to multiple agc files.
what should i do? meaning:

What are the advantages of multiple agc files without sorting your functions.
Does it help the game run-time?
Should there be a maximum file size i should think of?

I have some BuildStuff functions
and some UpdateStuff functions.

should i divide it to BuildStuff AGC and UpadteStuff AGC or should i , BuildAnimal UpdateAnimal, and put only these two in Animal.agc (Animal is just an example, no real or imaginary animals are hurt on compiling or during run-time.)

i have many ideas on how to divide my functions , but like what is the best option? what do you guys think?
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 13th Apr 2020 09:27
Yes. I would definitely split them up. Much easier to find things then
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 13th Apr 2020 09:45
Quote: "What are the advantages of multiple agc files without sorting your functions."

1>It doesn't effect the code speed at all
2>organising code into different files makes code more reusable
for example you could have one agc file with all the scancodes you could then use this file
with everyone of your programs cutting down development time
3>It can make it much more easy to modify code in the future when you may have forgotten
what you have done. example might be one file for player movement makes it allot easier to
maintain

fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
haliop787
4
Years of Service
User Offline
Joined: 22nd Mar 2020
Playing: With reality.
Posted: 13th Apr 2020 10:55 Edited at: 13th Apr 2020 10:55
OK.
I do however remembers something about "heap time" from the old AGK... don't really know what that is.
Any suggestions on how to divide them in the best fashion? like from experience?

Login to post a reply

Server time is: 2024-04-19 11:07:55
Your offset time is: 2024-04-19 11:07:55