Lesson 2
This commit is contained in:
10
BaloonPopper/balloon.gd
Normal file
10
BaloonPopper/balloon.gd
Normal file
@@ -0,0 +1,10 @@
|
||||
extends Area3D
|
||||
|
||||
var clicks_to_pop : int = 3
|
||||
var size_increase : float = 0.2
|
||||
var score_to_give : int = 1
|
||||
|
||||
# If mouse is left click when pressed
|
||||
func _on_input_event(camera, event, event_position, normal, shape_idx):
|
||||
if event is InputEventMouseButton and event.button_index == MOUSE_BUTTON_LEFT and event.pressed :
|
||||
print ("Increase Balloon Size")
|
||||
Reference in New Issue
Block a user