RE:Dreamora
I have a similar technique with lua..
my images are stored in a collection type which extends map. This collection will first look in a buffer to see if it has loaded the image or will otherwise get it from the file system.
I have a similar technique with lua..
--the data ball={ ["image"]="images/ball.png" ["static"]=0, ["solid"]=1, ["mass"]=600, ["inertia"]=1000 } --link the data to string "ball" class("ball",ball) put("ball",200,200)
my images are stored in a collection type which extends map. This collection will first look in a buffer to see if it has loaded the image or will otherwise get it from the file system.