How would you scroll the background in Java, to make it look like a sprite is moving? I am using an Applet. Is there a more efficient way than making all the objects in the game move left or right?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
Most games redraw the entire background every frame, then redraw all sprites on top of it.
If your background is just a big image, then this is surprisingly efficient (since a memory-> memory image copy is very fast).
To maintain the perception of scrolling in a 2D game: