Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

feat/preview ranges#162

Closed
cmj0415 wants to merge 8 commits into
developfrom
feat/preview-ranges
Closed

feat/preview ranges#162
cmj0415 wants to merge 8 commits into
developfrom
feat/preview-ranges

Conversation

@cmj0415

@cmj0415 cmj0415 commented Jul 15, 2025

Copy link
Copy Markdown
Contributor
  • 商店中點塔,鼠標移到地圖上預覽時可以預覽攻擊距離
  • 點擊已蓋好的塔,會跟著TowerUI顯示其攻擊距離,也會跟著TowerUI一起關閉

Comment thread scripts/previewer.gd Outdated
var angle = TAU * i / segments
var point = Vector2(cos(angle), sin(angle)) * radius
circle.add_point(point)
return circle

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

could be CanvasItem.draw_circle in overloaded CanvasItem.draw

Comment thread scripts/towers/tower_ui.gd Outdated
var angle = TAU * i / segments
var point = Vector2(cos(angle), sin(angle)) * radius
circle.add_point(point)
return circle

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

same as previewer.gd and, could possibly reuse this repeated function

@cmj0415

cmj0415 commented Jul 15, 2025

Copy link
Copy Markdown
Contributor Author
  • 用一個TowerPreviewRange的class讓買塔和點塔可以共用
  • 手動rescale抵銷global_scale後看起來應該是好的
  • radius應該是aim_range的一半,我在醜

@mtmatt mtmatt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Game crashed when using poison spell.

@HyperSoWeak HyperSoWeak closed this Mar 9, 2026
@HyperSoWeak HyperSoWeak deleted the feat/preview-ranges branch March 9, 2026 13:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants