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

Better Method for adding pre-placed turrets #101

Open
Greenfoot5 opened this issue Feb 5, 2023 · 1 comment
Open

Better Method for adding pre-placed turrets #101

Greenfoot5 opened this issue Feb 5, 2023 · 1 comment
Labels
editor tool This issue is about improving or adding additional editor tools feature A brand new addition to the game, or a complete rework of an existing feature Programming The issue involves a non-trivial amount of programming

Comments

@Greenfoot5
Copy link
Owner

The shop needs to know what turrets the user has, to make sure it shows module for only that selection of turrets. When turrets are pre-placed on the map, there's a very hacky method for adding turrets, which is on the awake event, a turret can run some functions, in this case, it tells the AddSelection script to add this turret.

A better method may be to allow turrets to be assigned to an array of pre-placed turrets in the AddSelection script, or the GameManager, but this is an extra step for map building.

It may be even easier to allow nodes to have a pre-built turret on them (using a turret blueprint) that adds them to the selection upon start. This way there's no extra assignment and it's even easier than setting a prefab into the scene. It would also be useful to show using gizmos what nodes have turrets pre-applied.

Some investigation may be needed to find out what solution is best and if there are others available.

@Greenfoot5 Greenfoot5 added feature A brand new addition to the game, or a complete rework of an existing feature Programming The issue involves a non-trivial amount of programming editor tool This issue is about improving or adding additional editor tools labels Feb 5, 2023
@Greenfoot5 Greenfoot5 moved this to In Progress in Bestagon Defence v2.0 Oct 3, 2023
@Greenfoot5
Copy link
Owner Author

There was some improvement with #132 but it's still not great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor tool This issue is about improving or adding additional editor tools feature A brand new addition to the game, or a complete rework of an existing feature Programming The issue involves a non-trivial amount of programming
Projects
Status: In Progress
Development

No branches or pull requests

1 participant