-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
…ne update to systems manager and event manager.
# Conflicts: # TowerForge/TowerForge.xcodeproj/project.pbxproj # TowerForge/TowerForge/GameScene.swift # TowerForge/TowerForge/GameViewController.swift
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
TowerForge/TowerForge/LevelManager/Components/GameComponents/DamageComponent.swift
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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) { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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?
Add Renderer and attempt to generalise UnitGenerator
Resolves #10