Skip to content

Render3D

Adam White edited this page Oct 22, 2017 · 1 revision

Render3D

This is the renderer for all game objects including entities and the world

Methods

renderMap

This renders the map using a sprite cache. The cache is marked for updating when the world is changed. The background of the world is also animated here, if it is animated. This is affected by the game time colour.

renderCursor

This renders the tree planting cursor using a shape renderer. The cursor is green over plantable terrain and red if a tree cannot be planted

renderShadow

Renders shadows for every entity with a shadow based on their shadow mask

renderEntities

This renders all entities that are stored on the current world. This is affected by the game time colour. The entities are rendered using the order of AbstractEntity.compareTo, which orders them from the top down with isometric considerations. All entities render with their texture, x coordinate and y coordinate, isometrically. Animated entities render with their animation frame instead of their texture.

SpriteBatchCache

A class for rendering objects that normally only render on a sprite batch onto a sprite cache. For example, the map.


Gameplay

Design

Asset Creation

User Testing

Code Guidelines


http://cultofthepartyparrot.com/parrots/partyparrot.gifhttp://cultofthepartyparrot.com/parrots/partyparrot.gifhttp://cultofthepartyparrot.com/parrots/partyparrot.gifhttp://cultofthepartyparrot.com/parrots/partyparrot.gifhttp://cultofthepartyparrot.com/parrots/partyparrot.gif

Clone this wiki locally