Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented Collision System for Tile Items #23

Merged
merged 2 commits into from
Jul 24, 2023

Conversation

Underewarrr
Copy link
Owner

@Underewarrr Underewarrr commented Jul 24, 2023

Successfully developed a collision system for tile items.
The updatePlayerPosition function in the player.js file now takes into account the TILE_TYPES object to prevent the player from moving onto non-walkable tiles. If the next tile in the direction of movement is marked as canWalk: false in the TILE_TYPES object, the player's position will not be updated, effectively preventing collisions with these tiles.

This collision system enhances the gameplay experience by providing a realistic movement restriction for the player and contributes to the overall game mechanics.

@Underewarrr Underewarrr added the enhancement New feature or request label Jul 24, 2023
@Underewarrr Underewarrr self-assigned this Jul 24, 2023
@vercel
Copy link

vercel bot commented Jul 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
pokemon-javascript-react-game ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 24, 2023 7:23pm

@Underewarrr Underewarrr changed the title mplemented Collision System for Tile Items Implemented Collision System for Tile Items Jul 24, 2023
@Underewarrr Underewarrr merged commit 1be9ec1 into main Jul 24, 2023
@Underewarrr Underewarrr mentioned this pull request Jul 13, 2022
19 tasks
@Underewarrr Underewarrr linked an issue Jul 25, 2023 that may be closed by this pull request
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Game-Dev] CheckList
1 participant