could we get a templates options where
I open a new project and it opens it with the following:
main.agc
screen.agc
input.agc
game.agc
obviously this is an example.
my thoughts are that users can create a new project with some files that will help them sort code quickly.
so for the example the screen.agc will be like:
function SetupScreen(windowName as string)
global DW as integer // holding DeviceMaximumWidth
global DH as integer // holding DeviceMaximumHeight
global VW as float // holding Virtual Resolution Width
global VH as float // Holding VR Height
DW = GetMaxDeviceWidth()
DH = GetMaxDeviceHeight()
VW = DW*10
VH = DH*10
SetWindowTitle( WindowName )
SetWindowSize( DW,DH, 0 )
// set display properties
SetVirtualResolution( VW,VH )
SetOrientationAllowed(0, 0, 1,1)
SetSyncRate(0,0)
SetPrintSize(VW/50)
SetPrintColor(0,0,255,255)
endfunction
and input for example :
function SetupPointer()
global PointerX as float // holds the X var
global PointerY as float // holds the Y var
global PointerP as integer // holds GetPointerPressed()
global PointerS as integer // holds GetPointerState()
global PointerR as integer // holds GetPointerReleased()
global PointerHit as integer // holds the Hit var of the pointer
endfunction
function UpdatePointer()
PointerX = GetPointerX()
PointerY = GetPointerY()
PointerP = GetPointerPressed()
PointerS = GetPointerState()
PointerR = GetPointerReleased()
PointerHit = GetSpriteHit(PointerX,PointerY)
endfunction
in the main.agc I will use these examples as
#include "screen.agc"
#include "input.agc"
setupScreen("My Next Great Game")
setupPointer()
do
UpdatePointer()
if PointerP = 1 // GetPointerPressed() variable
// do stuff
endif
loop
with the current version I need to create those each time , I don't really mind it takes a minute but it could really be useful if I want something new really quick just to test something
also the Main.agc stays much cleaner...
thank you for your time.
haliop.