Thought of 10 commands, that could change AppGameKit forever.
This is for continuing to work on your code, in your own personal way, and only extracting images, tunes, animations AKA content. not code.
// Project: waaaaa
// Created: 2023-04-09
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle( "waaaaa" )
SetWindowSize( 1024, 768, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( 1024, 768 ) // doesn't have to match 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
// Prompt based AGK random Image grabbers
// SetDiffusionId(path as string, id as string)
// SetStableId(path as string, id as string) // should be different, for different CPU/GPU usages, both on server and local, as Stable should always be
// more power consuming and more Gpu required.
// SetCategories(cat as string) // Works like StringToken. divided with a ,
// SaveLastResults(path as string, quality as float) // quality for cpu/gpu, the higher the more results to calculate, the lesser for example 0.01
// is to take the last result , one only.
// RetrieveLastResults(lastPath as string) // individual runs since first.
// SetIsoMetric()
// SetImageResolution()
// SetImageAspect()
// SetAtlasImage(yes as integer) // 0 as no
// img = GetImage(prompt as string)
// AGK stuff
do
Print( ScreenFPS() )
Sync()
loop
// Some more
// Project: waaaaa
// Created: 2023-04-09
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle( "waaaaa" )
SetWindowSize( 1024, 768, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( 1024, 768 ) // doesn't have to match 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
// Prompt based AGK random Image grabbers
// SetDiffusionId(path as string, id as string)
// SetStable(path as string, id as string) // should be different, for different CPU/GPU usages, both on server and local, as Stable should always be
// more power consuming and more Gpu required.
// SetCategories(cat as string) // Works like StringToken. divided with a ,
// SaveLastResults(path as string, quality as float) // quality for cpu/gpu, the higher the more results to calculate, the lesser for example 0.01
// is to take the last result , one only.
// RetrieveLastResults(lastPath as string) // individual runs since first.
// SetIsoMetric()
// SetImageResolution()
// SetImageAspect()
// SetAtlasImage(yes as integer) // 0 as no
// img = GetGeneratedImage(prompt as string, useDiffusion as integer, useStable as integer)
// atlasImage = getGeneratedAnimation(prompt as string,frames as integer, diffusion, stability)
// Prompt based Agk random Tunes and Melodies grabbers
// SetTuneGrabber(path as string, id as string) // Id should act like Token when using Ads
// SetTuneCategories(cat as string) // be divided by ,
// RetrieveTuneLastResults(lastPath as string) //
// id (integer) = getGeneratedTune(prompt as string, quality as integer, lengthInSeconds as integer, looping as integer)
// AGK stuff
// startup sound ("Seeeegggggaaaaa") like
RetrieveTuneLastResults("startingTunes\f35SirenFlyBy",0.10) // 10 percentage of best tunes gathered, are first calculated for good known and familliar results
// new random calculations comes after this.
startingTuneId = getGeneratedTune("F35 flyby with bells ringing and an emergency siren in the background",128,10,0)
PlayMusic(startingTuneId) // so it always start a bit the same but bit different
f35FighterImg = getGeneratedImage("F35 fighter painted black with panther eyes and two white triangles at the tail with transparent background",1,1)
f35FighterId = createAFighter(f35FighterImg,"256,256,255,255,255,255,1")
// Bullets should always be "lines", if the 2d line needs to be bigger, it is prefered to capture an image or create a sprite with no image attached, at the
// wanted size
f35FlareAnimation = getGeneratedAnimation("Hercules Angel Flares with transparent background",16,1)
f35FlaresDetails = createFighterFlares(f35FlaresAnimation,"512,512,255,255,255,255,1")
do
Print( ScreenFPS() )
Sync()
loop
function createAFighter(img as integer, details as string)
id as integer
id = createSprite(img)
setSpriteSize(id, getStringToken(details,",",1),getStringToken(details,",",2))
setSpriteColor(id, getStringToken(details,",",3),getStringToken(details,",",4),getStringToken(details,",",5),getStringToken(details,",",6))
SetSpriteTransparency(id, getStringToken(details,",",7))
endfunction id
function createFighterFlares(img as integer,details as string, fadeoutTween as integer, blurOurTween as integer)
NewDetails as string
id as integer
id = createSprite(img)
setSpriteSize(id, getStringToken(details,",",1),getStringToken(details,",",2))
setSpriteColor(id, getStringToken(details,",",3),getStringToken(details,",",4),getStringToken(details,",",5),getStringToken(details,",",6))
SetSpriteTransparency(id, getStringToken(details,",",7))
newDetails = "id,fadeouttween,fadeintween"
endfunction newDetails