Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - PvPineapple

Pages: [1]
1
Graphics / Updating a Specific Sprite or View
« on: November 26, 2019, 09:25:12 pm »
I have a large map that's procedural generated and places several 30x30px tiles.  This generation is in a specific view called mapView.  I have another view for the players called playerView.  First, is it possible to just combine these views and only redraw the player sprite as it moves.  If not, is it possible to just update playerView with window.display()?  It appears to be redrawing mapView each frame, making it run really slow and jagged.  I tried setting window.setView(playerView), but this still updates both views.

Pages: [1]
anything