Hi, I tried to do a build on the source you gave, but the compiler says the follwoing problems:
com/sas/planetation/examples/MapDisplayExample.java [13:1] cannot resolve symbol
symbol : class BitmapFont
location: package data
import com.sas.planetation.data.BitmapFont;
^
com/sas/planetation/examples/MapDisplayExample.java [14:1] package com.sas.planetation.sprites does not exist
import com.sas.planetation.sprites.ScoreSprite;
^
2 errors
Looks like a few classes weren’t included in the zip. care to update the zip with the classes so I can see if changing the buffer strat works?
-Chris
UPDATE:
Doh! I just removed the imports because they aren’t actually being used in the code and got it to recompile. I will send an update to this message when I see if a buff strat of 2 works better.
UPDATE2:
Ok, I made the buffstrat use 2 frames instead of 3, and the 1280x1024x32@60 worked properly now, but 2 would not work at 1400x1050x32@60 (I should use the proper notation for the display modes, eh?). I set the buffered strategy to 1 (I donno if that’s legal) but got hideous screen flickering, so never use a buffer strat of 1
The 1400x1050x16@60 worked fine with a buff strat of 2.
That’s very interesting how the buffer strategy requires all frames to be alloocated in memory or it gives up (guess it makes sense, but it’s interesting to me, nonetheless).
Thanks for the demo and source, I think this is the right way to do 2d based games.
-Chris