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

Tower Defense towerbase #34

Open
darkshadest opened this issue Apr 24, 2023 · 2 comments
Open

Tower Defense towerbase #34

darkshadest opened this issue Apr 24, 2023 · 2 comments

Comments

@darkshadest
Copy link

Hi Almas,

How are you initializing the towerbases in tower defense?

Screenshot 2023-04-23 at 19 00 27

I was making my own version of zombs.io and was wondering how to set the onClick for an object made in the tmx?

@darkshadest
Copy link
Author

@AlmasB

@AlmasB
Copy link
Owner

AlmasB commented Apr 24, 2023

The .tmx objects are parsed via the EntityFactory's related method, i.e. the one marked with the correct type / class in @Spawns(). There you can use onClick as above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants