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

Dev: Dynamic Tile Map Rendering for 2D Game #22

Merged
merged 1 commit into from
Jul 24, 2023
Merged

Conversation

Underewarrr
Copy link
Owner

@Underewarrr Underewarrr commented Jul 24, 2023

Example map with Grass, Water and Wood

image

We implemented dynamic tile map rendering for our 2D game. We introduced a TILE_TYPES object that defines different types of tiles along with their corresponding colors.
The drawTile function was updated to use this object to render tiles on the canvas based on the provided tile map data.

To showcase this feature, we created a new tile map representing a grass area with a river. The map is loaded and rendered using the Canvas component, which also includes the player and their movement logic.

This dynamic tile map rendering enables us to create diverse and customizable game worlds, making our 2D game more engaging and immersive.
The commit lays the foundation for further expansion of the game world with different tile types, adding depth and complexity to the gameplay experience.

The addition of dynamic map loading and rendering will greatly enhance the gameplay and level design possibilities of our 2D game. This marks an exciting milestone in the development of our project and sets the stage for further advancements in the game's environment and mechanics.

We implemented dynamic tile map rendering for our 2D game. We introduced a TILE_TYPES object that defines different types of tiles along with their corresponding colors. The drawTile function was updated to use this object to render tiles on the canvas based on the provided tile map data.

To showcase this feature, we created a new tile map representing a grass area with a river. The map is loaded and rendered using the Canvas component, which also includes the player and their movement logic.

This dynamic tile map rendering enables us to create diverse and customizable game worlds, making our 2D game more engaging and immersive. The commit lays the foundation for further expansion of the game world with different tile types, adding depth and complexity to the gameplay experience.

The addition of dynamic map loading and rendering will greatly enhance the gameplay and level design possibilities of our 2D game.
This marks an exciting milestone in the development of our project and sets the stage for further advancements in the game's environment and 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 Updated (UTC)
pokemon-javascript-react-game ✅ Ready (Inspect) Visit Preview Jul 24, 2023 6:44pm

@Underewarrr Underewarrr merged commit 245894f into main Jul 24, 2023
@Underewarrr Underewarrr mentioned this pull request Jul 13, 2022
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.

1 participant