AftGangAglay Documentation


killpack

New in 2.3.0

Note: This function is only available in "dev builds". See here for more information.

Parameters

N/A

Return Value

N/A

Description

Unloads the application resource pack. This should only be performed once all held resources are released — reloading the resource pack while its resources are still alive can lead to orphaned resource references and program instability.

Example

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