New in 2.3.0
Note: This function is only available in "dev builds". See here for more information.
N/A
N/A
Reloads the application resource pack. This should only be performed after agan.killpack is used to unload an active resource pack — reloading the resource pack while another is active can lead to orphaned resource references and program instability.
import agan
class game():
def create(self):
return self
#
def update(self):
if(agan.getkey(agan.KEY_R)):
agan.log('Reloading resource pack...')
agan.killpack()
agan.mkpack()
#
def close(self):
pass