Skip to content

Conversation

@migueltomazini
Copy link
Collaborator

This Pull Request fully implements Portal Barrier Mode (#476) and consolidates the three related subissues required to deliver the new feature:

#478 - Define Components and Entities for Portal Barrier
Added the data structures and ECS entities needed to represent Portals.

#479 - Implement Portal Spawning and Rendering Systems
Implemented the systems responsible for spawning Portals in the game world and rendering them on screen.

#480 - Implement Portal Collision and Teleport Logic
Updated the collision system to correctly detect Snake–Portal interactions. When the snake enters the portal’s entry block, it now performs a safe teleport to the exit block as described in the parent issue.

@migueltomazini migueltomazini linked an issue Dec 12, 2025 that may be closed by this pull request
@GiordanoSL GiordanoSL self-requested a review December 13, 2025 00:35
Copy link
Collaborator

@GiordanoSL GiordanoSL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

Copy link
Collaborator

@DeguShi DeguShi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic seems to be working fine. I'd just suggest adjusting the snake movement/orientation for this specific game mode, as the current implementation makes the sprites' movement look awkward after crossing the barrier. That can be done in a new issue if preferred.

@DeguShi DeguShi merged commit 7faa563 into dev Dec 16, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request maybe non-priority

Projects

None yet

6 participants