-
Notifications
You must be signed in to change notification settings - Fork 4
Worlds Code
A world represents a world described in Portals and Worlds Each world has entities and managers linked to it. Entities that are in the current world will be rendered, all other entities will not be rendered.
Method | Description |
---|---|
addEntity |
Adds the given entity to the world, to be rendered when the world is rendered |
removeEntity |
Removes the given entity from the world |
getTile |
Gets the terrain object for the specified location |
The world manager stored and generates all the worlds. The world can be changed with setWorld
where the world type to change to is specified. When changing worlds, the world manager stores all managers with the interface ForWorld
on the old world before changing worlds.
The methods getRandomGrid
and getRandomGridEdge
will return random grids from GridUtil the same size as the world much faster than generating another one. Currently, only a fixed amount are created so multiple calls are likely to return the same grids.
The methods and class interactions are shown in this diagram.
- Home
- How To Play
- Keybindings
- Inventory and Resources
- Trees
- Portals and Worlds
- Projectiles
- Enemies
- Waves & Spawning
- Graphical assets progress overview
- Audio Files
- Design Templates
- Blender Intro
- Converting 3D models to Sprites
- Scripting in Blender
- Creating a Model in Sketchup
- Colouring and Animating in Blender
- Animation using Dope Sheet, Keyframes and Scale Transformation in Blender
- Template
- Testing
- Terrain
- Terrain Generation
- Resource Trees
- Main Menu, Chat, options
- Main Menu V2, Options V2, Sound
- Damage Trees
- Projectiles
- Enemy User Testing
- Tree planting, inventory GUI, resources, portals
- Caveman Character
- Debug Mode Menu
- Tree learning, Attack Trees, Main Menu Tutorial Resources Styling
- Revamped Resource Trees
- Squirrel User Testing
- Final evaluation
- Project Structure
- Git Workflow
- GUI
- Worlds
- Entity Directions
- Resources
- Inventory
- AbstractEntities
- BasicProperties
- MortalEntity
- ProgressBarEntity
- Multiplayer
- Trees
- TimeEvent
- Game Time
- Animations
- Enemies
- Waves
- Player
- Projectiles
- Effect
- Particles
- Path Manager
- Sounds
- Debug 'God' Mode
- 2D Collision
- Box3D {depreciated}
- Render3D
- Cheat Codes