Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Optimizing Graphic Input? (Completed)
#1
So, I believe this has been discussed before, if I remember correctly. But I just want to know one thing.

Currently the map is being blited with information from the GameLoop. With call bltMask etc.. So it most go from x=0 to max_mapx. But instead of doing that. Can't you make it so it simply only draws the area around the char. For example:

Code:
For x = GetPlayerX(index) - 2 to GetPlayerX(index) + 2
  For y = GetPlayerY(index) - 2 to GetPlayerY(index) + 2
    ' The blitting part..
  Next y
Next x

Would that work, Im in school now so I don't know the correct name for call bltMask and such.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)