itch.io is community of indie game creators and players

Devlogs

Devlog Update: Planet Generation and Spawning Enhancements

Subspace
A downloadable Subspace for Windows and Linux

1. Planet Generation in Universe Class

• Implemented a new Generate method in the Universe class to procedurally generate planets and stars.

• Utilized better scaling to and from parsec level along with integer multiplication for more accurate spatial positioning.

• Added logic to create Star and Planet instances with randomized properties.

• Integrated a batch processing system to handle large-scale generation efficiently.

2. Planet Spawning in StarMap

• Added methods to manage the visibility and spawning of planets based on the camera position.

• Implemented queues to handle the dynamic spawning and despawning of planet instances.

• Ensured that planet instances are instantiated and positioned correctly within the star map.

3. Planet Data Management

• Enhanced the GetVisiblePlanets searching in the Universe class to filter and return visible planets based on the camera's sensor range.

• Updated the planet instance handling in the StarMap to keep track of active planet instances and their corresponding data models.

4. Performance and Optimization

• Introduced batch processing and coroutine-based generation to maintain performance during large-scale planet and star generation.

• Optimized the planet spawning logic to minimize performance overhead during runtime.

Files

  • Subspace (Linux) 105 MB
    Dec 04, 2024
  • Subspace (Windows) 105 MB
    Dec 04, 2024
Download Subspace
Leave a comment