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

Add Renderer and attempt to generalise UnitGenerator #18

Merged
merged 10 commits into from
Mar 22, 2024

Conversation

zheng-ze
Copy link
Contributor

Resolves #10

@zheng-ze zheng-ze added this to the Sprint 1 milestone Mar 21, 2024
@zheng-ze zheng-ze self-assigned this Mar 21, 2024
Vanessamae23
Vanessamae23 previously approved these changes Mar 21, 2024
Copy link
Contributor

@Vanessamae23 Vanessamae23 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@Vanessamae23 Vanessamae23 left a comment

Choose a reason for hiding this comment

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

LGTM just a few comments for consideration

@@ -47,6 +47,22 @@ extension GameViewController: SceneUpdateDelegate {
func update(deltaTime: TimeInterval) {
gameWorld?.update(deltaTime: deltaTime)
}

func contactBegin(between nodeA: TFAnimatableNode, and nodeB: TFAnimatableNode) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I was thinking if we couldjust generalise it to the TFSpriteNode instead of AnimatableNode? and also changing from contactBegin to contactDidBegin

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep sure ill change it in my next pr.


func handleSeparation(between idA: UUID, and idB: UUID) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a need to implement this? since we don't have a separation logic if the units come into contact with each other but perhaps for future powerups this can be a good one.

@@ -10,4 +10,6 @@ import Foundation
protocol SceneUpdateDelegate: AnyObject {
func update(deltaTime: TimeInterval)
func touch(at location: CGPoint)
func contactBegin(between nodeA: TFAnimatableNode, and nodeB: TFAnimatableNode)
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above, perhaps changing TFAnimatableNode to TFSpriteNode?

@zheng-ze zheng-ze marked this pull request as ready for review March 22, 2024 07:11
@zheng-ze zheng-ze merged commit 4ce1cbd into cs3217-2324:main Mar 22, 2024
1 check passed
Vanessamae23 pushed a commit to Vanessamae23/group-project-tower-forge that referenced this pull request Mar 30, 2024
Add Renderer and attempt  to generalise UnitGenerator
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

Successfully merging this pull request may close these issues.

Renderer
2 participants