Ive done a search on the forum and the help manual. im curious about the game file size and what contributes to it. obviously the graphics and the code does. but what i was wondering about is with the code. if i had a piece of code that was 64 characters long and i use that piece of code in lots of places, would I have a smaller game file size if i was to make a function out of that piece of code and just use the function inplace of the 64 character length code?
One character has, by definiton, a size of exactly one byte. So I doubt very much that making a function would reduce the game size notably.
so about 39mb for a 640x480 game with 22 rooms and 4 characters as well as a number of inventory iteams and custome background GUIs sounds about right? good thing is it RARs to about 12mb
If the size of the return type of the function was smaller than the size of the function itself, then using a function would make a difference to the size of your game, but unless you're calling the function in hundreds of unique locations you probably wouldn't notice the difference too much.
Using a function would however save you having to retype/copy-paste the code if you need to use it again.
Yep, and it's better practice to use a function, since you won't have to change numerous pieces of code, should the need arise.