Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
sprites like MJ's Trabajo Basura (not unregr. Fourspriter)
#15
I've been giving thought to this sort of issue for a while now - within the current constraints, and lacking object orientation, sprites are quite tough to do. I considered building an interface from subroutines and functions, such that you could call one and it would deal with the sprite for you - but the biggest issue is the local/global variable one - it would need arrays of data to keep track of sprites (or at least pointers) - and that would need to be global between the different subroutines. Tricky to program that /inside/ a sub Smile

All told, I rapidly realised it would become a messy thing to bolt on.

We do have memory allocation and de-allocation, and of course, when you ask for bytes from the pool, you get back an address. Most people would say that's a pointer, I think. The question is, how do we handle that as a general case?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)