Game media and TMaps

BlitzMax Forums/BlitzMax Programming/Game media and TMaps

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

RE:Dreamora

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.