Skip to content
New issue

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

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

Already on GitHub? # to your account

v0.8.23 kick da apples #203

Merged
merged 3 commits into from
Oct 18, 2024
Merged

v0.8.23 kick da apples #203

merged 3 commits into from
Oct 18, 2024

Conversation

alexanderclarktx
Copy link
Owner

  • disabled static on apple collider

@@ -26,7 +26,7 @@ export const Tree = ({ position, id }: TreeProps = {}) => {
health: 100,
onDamage: (damage, world) => {
if (damage > 20 && randomInt(10) < 5) world.addEntity(
Apple({ position: { x: tree.components.position.data.x + randomInt(20), y: tree.components.position.data.y + randomInt(20) } })
Apple({ position: { x: tree.components.position.data.x + randomInt(5), y: tree.components.position.data.y + randomInt(5) } })
Copy link
Owner Author

Choose a reason for hiding this comment

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

spawning apple closer to the tree so it kinda pops out

position.data.follows = character.id
position.data.rotation = 0

renderable.visible = false
Copy link
Owner Author

Choose a reason for hiding this comment

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

on pickup, setting rotation to 0 so it stops rolling, and visible to false

@alexanderclarktx alexanderclarktx merged commit 40b62aa into main Oct 18, 2024
@alexanderclarktx alexanderclarktx deleted the alex branch October 18, 2024 00:34
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant