I made this to speed up my development...
I usually seam to search around for stuff i forget so i made a base template for all my new projects...
This is how mine ended up as you only nead the basic stuff in all projects..
//-------------------------------------------//
// App Game Kit source template v 0.1
//-------------------------------------------//
// Project: {project}
// Created: {date}
//-------------------------------------------//
// App Type : ?
// Version : ?
// Released : ?
// Last Updated : ?
// Play store : ?
// To do next : ?
//-------------------------------------------//
//-------------------------------------------//
// 0=ignore, 1=report, 2=stop
//-------------------------------------------//
SetErrorMode(2)
//-------------------------------------------//
// Have multiple files in your projec
//-------------------------------------------//
//#include "gui.agc" // new file with the same name as in include and add it to the project
//-------------------------------------------//
// App screen defaults
//-------------------------------------------//
SetWindowTitle( "{project}" )
SetWindowSize( 1024, 768, 0 ) // The actual resolution your app uses ( width, height, fullscreen )
SetWindowAllowResize( 1 ) // allow the user to resize the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts
SetClearColor( 0, 0, 0 ) // sets the color the screen is cleared in
//--------------------------------------------------------------------
// Fake virtual resolution!
//--------------------------------------------------------------------
// Very usefull for mobile apps with various sceen resolutions.
// Simplifies your app making for multiple hardware.
//---------------------------------------------------------------------
SetVirtualResolution( 1024, 768 ) // doesn't have to match the window
//--------------------------------------------------------------------
// Types!
//--------------------------------------------------------------------
type sGame
State as Integer
LastFrame As Float
endtype
Global Game as sGame
type sGUI
Button as integer
Text as integer
endtype
global dim GUI [ 5 ] as sGUI // 5 graphical user interface objects ( GUI[].Button or GUI[].Text )
//--------------------------------------------------------------------
// Logo splash screens are handled outside off main loop
//--------------------------------------------------------------------
Logo_Splash(100.0)
//--------------------------------------------------------------------
// Main loop where the magic happens
//--------------------------------------------------------------------
do
// store time data
Game.lastFrame = GetFrameTime() // To move at same speed always (x# + 20.0 * lastFrame)
select Game.State // Faster then any if else check
case 0
Menue()
endcase
case 1
Play_Game()
endcase
endselect
Print( ScreenFPS() )
Sync()
loop
Function Logo_Splash( splash as float )
// load and create splash media here
do
Game.lastFrame = GetFrameTime() // To move at same speed always (x# + 20.0 * lastFrame)
splash=splash-(2.0*Game.lastFrame)
if splash<0 then exit
loop
// Delete all splash media here
Endfunction
Function Menue()
Endfunction
Function Play_Game()
endfunction
You should find yours here
And you nead to have administrator permission in this folder.
Android 2.3 , ZTE Skate , 480x800 , 800 mhz , Samsung Galaxy Y , 240x320 , 832 mhz , Sony ericson arc 480x854 , 1 ghz
Android 4.0 , Dmtech 3g 9738B , 1024x768 , 9.7 inches , 1.2 ghz