I am a very kind programmer. Therefore, I want to archive all the media products that I use in the archive and screw it up. So the archive is unpacked perfectly into a hidden folder. But after using the archive program, the folder is not deleted. How to be? I checked other people's work, they do not leave traces in a hidden folder. So, in order not to be a complete idiot programmer, I also want to code my content.
C:\Users\<user name folder>\AppData\Local\AGKApps\test\media folder\
MainFon
C:\Users\<user name folder>\AppData\Local\AGKApps\test\media folder\
PlanetFon
I also called this folder hidden.
How should I be? I don’t want to just upload my game immediately to the public after its creation.
ExtractZip("mainfons.zip", "", "")
ExtractZip("planetfons.zip", "", "")
for t=1 to 100
print (t)
sync()
next t
// Load Include files
#include "LoadMainMenu.agc"
#include "LoadInGameMenu.agc"
// Load Functions
LoadMainMenu()
LoadInGameMenu()
MainMenu()
DeleteFolder( "MainFons" )
DeleteFolder( "PlanetFons" )
end
this work
Setvirtualresolution(640,480)
ResetTimer()
//Show Sub-Folders present in Current Folder
count=0
MakeFolder("AGK Test Folder#1")
MakeFolder("AGK Test Folder#2")
Print("List of Sub-Folders")
Render()
fn$=GetFirstFolder()
while fn$<>""
Print(Spaces(2)+fn$)
Inc count
fn$=GetNextFolder()
endwhile
Sync()
Repeat
Until Timer()>20
DeleteFolder("AGK Test Folder#1")
DeleteFolder("AGK Test Folder#2")
End
this work.
before need delete files
for t=1 to 5
deletefile("mainfons\MainFon"+str(t)+".jpg" )
next t
for t=1 to 10
deletefile("planetfons\PlanetFon"+str(t)+".jpg")
next t
DeleteFolder( "mainfons" )
DeleteFolder( "planetfons" )
for t=1 to 5
deletefile("MainFons\MainFon"+str(t)+".jpg" )
next t
for t=1 to 10
deletefile("PlanetFons\Fon"+str(t)+".jpg")
next t
DeleteFolder( "PlanetFons" )
DeleteFolder( "MainFons" )
Thanks
programming is a hobby, not a job.
P.S. in google and youtube - nikename pavelman- it is not me!