No you're absolutely right - I used an entire include file for the constants.
Initially the constants were with the relevant sections of code, but were moved to their own file during the tidy up.
I don't mind sharing this as an example of how constants can help your code readability
#constant DEBUG_ON 0 ` Set to 1 to output debugging information to debug.txt
#constant BOOTMESSAGES_ON 0 ` Set to 1 to show startup messages
#constant WATERMARK 1 ` Used to put watermark on Demo Version
#constant DISABLE_THEMES 1 ` Disable Theme Loading on Android - hangs app in 1074
#constant DISABLE_LAND 0 ` Disable Landscape mode - buggy in 1074
#constant DISABLE_UVSCROLL 0 ` Disable UV Background Scrolling on Menu
// ************************
// *** DISPLAY SETTINGS ***
// ************************
#constant THEME_DEFAULT "Classic"
` "Classic" , "Trains" , "Tron"
#constant DISPLAY_FPS 0 ` Preferred FPS, 0 for Auto
#constant DISPLAY_VMIN 480 ` Working Resolution (Shortest Edge or Width in portrait)
#constant DISPLAY_MARGIN 4.0 ` Margin around game area
#constant DISPLAY_MENUSCALE 0.9 ` Scales Menu Width ( 1.0 = full width )
#constant VMIN_DIV_PRINT 20.0 ` Printed Text Size
#constant VMIN_DIV_LOGOW 1.5 ` Game Logo Width
#constant VMIN_DIV_LOGOH 3.0 ` Logo Height
#constant VMIN_DIV_ICON 12.0 ` Screen Icon Size
#constant VMIN_DIV_CELLS 8.0 ` Number of cells across short edge at zoom 1.0
#constant VMIN_DIV_MOVEMIN 48.0 ` Minimum pointer movement to count as drag
` 48.0 on 320 display gives 6.666 pixels
// Transition Fade Times
#constant FADE_MENU 0.8 ` Menu Fade Time in Seconds
#constant FADE_GAME 1.6 ` Game Fade Time in Seconds
#constant FADE_PAUSE 0.4 ` Pause Fade Out Time in Seconds
// Object Depths
#constant DEPTH_BACK 3000 ` Background Sprite
#constant DEPTH_ARENA 2990 ` Depth of Arena Sprite
#constant DEPTH_ITEMS 2980 ` Depth of Arena Items (walls, rock etc)
#constant DEPTH_PRIZE 2970 ` Depth of Prize Sprites (fruit, snails , treasure etc )
#constant DEPTH_PLAYER 2000 ` Depth of Player Sprites (snake parts)
#constant DEPTH_JOYPAD 1000 ` Depth of JoyPadSprite
#constant DEPTH_SCORE 500 ` Depth of Score Text, Level Text etc.
#constant DEPTH_FLIT 200 ` Depth of Flit Icons
#constant DEPTH_MESSAGE 100 ` Depth of Message Text, Paused, Level 1 , Game Over
// **********************
// *** PROGRAM STATES ***
// **********************
#constant STATE_NONE 0
#constant STATE_INIT 1
#constant STATE_INTRO 2
#constant STATE_DEMO 3 ` Help / Intructions
#constant STATE_MENU 4
#constant STATE_GAME 5
#constant STATE_EXIT 6 ` Must Always be last for Array Dim Below
// **********************
// *** ADVERT DETAILS ***
// **********************
#constant AD_ACTIVE 1 ` Set to 1 to use ads
#constant AD_TEST 0 ` Set to 1 to use ads in Test Mode
#constant AD_HEIGHT 50 ` Space to leave for Ad at Top of Display
#constant AD_WIDTH 320 ` Width of Ad
#constant AD_SCALED 0 ` 1 for scale ad to screen, 0 for native
// **********************
// *** PROGRAM LIMITS ***
// **********************
#constant MAX_COUNTERS 5 ` Maximim Number of counters
#constant MAX_THEMES 5 ` Maximim Number of Themes
#constant MAX_FLITICONS 10 ` Maximum number of Flit Icons
#constant MAX_SNAKELEN 300 ` Maximum Lenght of snake ( after which it just wont grow any more)
#constant MAX_ARENASIZE 31 ` Maximum width / height of Play Area (in cells)
// ***********************
// *** MATHS CONSTANTS ***
// ***********************
#constant ROOT_TWO 1.4142135623730950488016887242097
// ***********************
// *** PRINT CONSTANTS ***
// ***********************
#constant _NL chr(10)
#constant _QT chr(13)
// **************************
// *** KEY CODE CONSTANTS ***
// **************************
#constant RAWKEY_ESC 27
#constant RAWKEY_LEFT 37
#constant RAWKEY_UP 38
#constant RAWKEY_RIGHT 39
#constant RAWKEY_DOWN 40
// ********************************
// *** TEXT ALIGNMENT CONSTANTS ***
// ********************************
#constant ALIGN_LEFT 0
#constant ALIGN_CENTER 1
#constant ALIGN_RIGHT 2
// ***************************
// *** DIRECTION CONSTANTS ***
// ***************************
#constant ANGLE_LEFT 0
#constant ANGLE_UP 90
#constant ANGLE_RIGHT 180
#constant ANGLE_DOWN 270
// *****************************
// *** TOUCH EVENT CONSTANTS ***
// *****************************
#constant TOUCHTYPE_DELAY 0.6
// App Specific
#constant TOUCHTYPE_NONE 0
#constant TOUCHTYPE_PRESS 1
#constant TOUCHTYPE_SHORT 2
#constant TOUCHTYPE_LONG 3
#constant TOUCHTYPE_MOVE 4
#constant TOUCHTYPE_RSHORT 5
#constant TOUCHTYPE_RLONG 6
#constant TOUCHTYPE_RMOVE 7
// AGK Standard
#constant TOUCHRAW_NONE 0
#constant TOUCHRAW_SHORT 1
#constant TOUCHRAW_LONG 2
#constant TOUCHRAW_MOVE 3
// ***********************
// *** MUSIC CONSTANTS ***
// ***********************
#constant MUSIC_SCALE 0.75 ` Adjument to music volume (1.0 = 100%)
#constant MUSIC_NOLOOP 0
#constant MUSIC_LOOP 1
#constant MUSIC_NONE 0
#constant MUSIC_MENU 1
#constant MUSIC_GAME 2
#constant MUSIC_ALL 3
// ********************************************************************
// *** ***
// *** Display Module Constants ***
// *** ***
// ********************************************************************
// Miscellaneous
#constant ICON_STRETCH 1.03 ` 1.015 Scales a 126 pixel sprite to 128 Pixels
#constant MASK_ALPHA 0.5 ` Alpha Multiplier for Behind Score Masks
#constant PAUSESTAT_ALPHA 0.75 ` Alpha Multiplier for Level Stats in Pause
// Flits
#constant FLIT_SIZE 1.5 ` Scales Flit Icons
#constant FLIT_TIME 2.0 ` Time taken flit to cross screen
#constant FLIT_ALPHA 192 ` Transparency if flit
#constant FLIT_SCORE 1 ` 0 scores add immediately, 1 when flit arrives
// Animation Frames for FontImage
// Game Logo
#constant FRAME_LOGO 23 ` This is a 256 x 128 animation frame
// Oddities
#constant FRAME_WALL 8 ` Only Icon Full Size 128 x 128 so has no neighbours
#constant FRAME_TRONANIM 25 ` Corner Icon - Only Used by Tron Theme
// Joypad
#constant FRAME_JOYPAD 32 ` On Screen GamePad
// Player
#constant FRAME_HEADANIM 33 ` Head Animation ( 4 frames )
#constant FRAME_BODYANIM 37 ` Body Animation ( 4 frames )
#constant FRAME_LOOKF 41 ` Head Overlay - Looking Foreward
#constant FRAME_LOOKL 42 ` Head Overlay - Looking Left
#constant FRAME_LOOKR 43 ` Head Overlay - Looking Right
#constant FRAME_LOOKDOA 44 ` Head Overlay - Losing Life
// Scenery, Prizes and Display Items
#constant FRAME_ROCK 47 ` Rock - hurts
#constant FRAME_HISCORE 48 ` High Score Indicator
#constant FRAME_LEVEL 49 ` Level Indicator
#constant FRAME_SNAIL 50 ` Snail for Slowdown
#constant FRAME_EGG 51 ` Egg for extra life
#constant FRAME_FRUIT 52 ` Fruit - edible
// ********************************************************************
// *** ***
// *** Menu Module Constants ***
// *** ***
// ********************************************************************
// Menu States
#constant MENUSTATE_NEW 0
#constant MENUSTATE_FADEIN 1
#constant MENUSTATE_FADEOUT 2
#constant MENUSTATE_RUNNING 3
#constant MENUSTATE_NOTWIN 4
#constant MENUSTATE_THEME 5
// Theme States
#constant THEMESTATE_RUNNING 6
#constant THEMESTATE_FADEOUT 7
// Colours
#constant COLOUR_BACKARENA 192.0 ` Max Colour Value for Theme Demo
#constant COLOUR_MENUNORM 200.0 ` Max Colour Value for Normal Text
#constant COLOUR_MENUHIGH 240.0 ` Max Colour Value for Selected Text
#constant COLOUR_MENURED 255.0 ` Menu Colour Red
#constant COLOUR_MENUGRN 192.0 ` Menu Colour Green
#constant COLOUR_MENUBLU 64.0 ` Menu Colour Blue
#constant COLOUR_MENUBACKADJ 0.9 ` Menu Backgroubd Multiplier
// Menu Items
#constant MENU_NONE 0
#constant MENU_ARCADE 1
#constant MENU_PUZZLE 2
#constant MENU_DEMO 3
#constant MENU_MUSIC 4
#constant MENU_THEME 5
#constant MENU_EXIT 6
// ********************************************************************
// *** ***
// *** Game Module Constants ***
// *** ***
// ********************************************************************
// Game Limits
#constant ARCADE_LEVELS 26
#constant PUZZLE_LEVELS 24
// Game Adjustments - Speed
#constant SPEED_MASTER 1.0 ` Used to fine tune game speed
#constant ZOOM_SCALE 1.0 ` Used to Adjust Zoom Speed
#constant SPEED_FORFRUIT 1.015 ` Speed Multiplier for eating fruit
#constant SPEED_FOREGG 0.75 ` Speed Multiplier for eating egg
#constant SPEED_FORSNAIL 0.50 ` Speed Multiplier for eating Snail
#constant SPEED_FORLEVEL 0.075 ` Start Speed increase per level
#constant SPEED_TOPSPEED 4.00 ` Fastest Speed
#constant SPEED_BOTSPEED 1.00 ` Slowest Speed
// Game Adjustments - Time
#constant PRIZETIME_MAX 60.0 ` Frequency of Random Objects
#constant PRIZETIME_LEV 3.0 ` Redunction in time per level
#constant PRIZETIME_MIN 30.0 ` Minimum Frequency
// Game Adjustments - Probabilities
#constant PRIZECHANCE_LEV 1 ` % Chance of Level
#constant PRIZECHANCE_EGG 9 ` % Chance of Egg
#constant PRIZECHANCE_SNAIL 30 ` % Chance of Snail
// Game Adjustments - Score
#constant SCORE_FRUIT 1 ` Base Score for Fruit
#constant SCORE_EGG 12 ` Base Score for Fruit
#constant SCORE_SNAIL 6 ` Base Score for Fruit
// Game States
#constant GAMESTATE_NEW 0
#constant GAMESTATE_PUZCHOOSE 1
#constant GAMESTATE_PUZFADEIN 2
#constant GAMESTATE_PUZFADEOUT 3
#constant GAMESTATE_PUZMENU 4
#constant GAMESTATE_NEWLEVEL 5
#constant GAMESTATE_LEVELMESSAGE 6
#constant GAMESTATE_GAMEFADEIN 7
#constant GAMESTATE_LEVELFADEIN 8
#constant GAMESTATE_LEVELFADEOUT 9
#constant GAMESTATE_GAMEFADEOUT 10
#constant GAMESTATE_PAUSESTART 11
#constant GAMESTATE_PAUSED 12
#constant GAMESTATE_PAUSEEND 13
#constant GAMESTATE_PAUSEEXIT 14
#constant GAMESTATE_GAMEOVER 15
#constant GAMESTATE_GAMEOVEREXIT 16
#constant GAMESTATE_RUNNING 17
// Player States
#constant PLAYERSTATE_NEW 0
#constant PLAYERSTATE_PLAYING 1
#constant PLAYERSTATE_PAUSED 2
#constant PLAYERSTATE_LEVELFAIL 3
#constant PLAYERSTATE_LEVELDONE 4
#constant PLAYERSTATE_EXIT 5
// Arena Contents
#constant CONTENT_NONE 0
#constant CONTENT_FRUIT 1
#constant CONTENT_EGG 2
#constant CONTENT_SNAIL 3
#constant CONTENT_LEVEL 4
#constant CONTENT_WALL 5
#constant CONTENT_ROCK 6
#constant CONTENT_SNAKE 7
#constant CONTENT_ENEMY 8
// ********************************************************************
// *** ***
// *** Demo Module Constants ***
// *** ***
// ********************************************************************
#constant DEMO_ALPHA_GAME 160 ` Alpha Value used for game items - score, display icons etc
#constant DEMO_ALPHA_ARENA 160 ` Alpha Value used for arena items - player, fruit etc
// Demo States
#constant DEMOSTATE_NEW 0
#constant DEMOSTATE_FADEIN 1
#constant DEMOSTATE_FADEOUT 2
#constant DEMOSTATE_RUNNING 3