トピック
Brad GamerZim

coding formation, how should a code be built-up in "simple" terms, I see some codes go (map, sprite, button set) but some go (button, sprite, map) is there a "correct" set to optamize code, for FPS and MEM with lettle stress to the app?

1そうだね
プレイ済み
返信[1]
親投稿
Brad GamerZim
Also i have seen some button codes get done as a gosub command, also before, in or after the main graphics sets, does any of this effect how the buttons work after being called?
0そうだね
プレイ済み
返信[2]
親投稿
Taylor monovae1324
I have no idea what is most efficient. all I care is what's easier to write. there is a difference between button() and 1 and button()==1 however
0そうだね
プレイ済み
返信[3]
親投稿
Knight IronAvenger42
This is something I was wondering about as well. I'm a complete novice on the subject but I would think sprites, buttons, and sound would all come before level design.
0そうだね
プレイ済み
返信[4]
親投稿
Brad GamerZim
in my codes for button I usualy go with bt=button() if bt and 1 then ect.. if bt and 2 then blah...
0そうだね
プレイ済み
返信[5]
親投稿
Brad GamerZim
bt==1 locks all other buttons bt and 1 will allow other buttons to be used
0そうだね
プレイ済み
返信[6]
親投稿
Marlon banokyo
There is no "correct" way or standard in doing a certain program. It is up to the programmer to develop his/her own style and be comfortable with it. Choose a sample program and look at the way the code is organized. Some games I looked at are arranged by: Initialization, Main Program, Functions (input and output), Graphics (map and sprite), Sound, Data Arrays. Just don't load everything in...
1そうだね
プレイ済み
返信[7]
親投稿
Marlon banokyo
Just don't load everything in one function call so that you can optimize FPS and Memory. Some debug information like FREEMEM function can also help you so that you can have a general idea of how much resource your program is using.
1そうだね
プレイ済み
返信[8]
親投稿
Brad GamerZim
Alright thanks, that was very helpful.
0そうだね
プレイ済み