readme
This commit is contained in:
parent
cdb1b5d632
commit
9448311064
@ -0,0 +1,5 @@
|
|||||||
|
Week 5:
|
||||||
|
Coin collection, bad guys, dealing damage
|
||||||
|
|
||||||
|
In this lesson, we get some enemies in the game, and along the way w
|
||||||
|
learn some valuable principles.
|
||||||
@ -449,7 +449,7 @@ tile_set = SubResource("TileSet_gee14")
|
|||||||
script = ExtResource("2_lbhrr")
|
script = ExtResource("2_lbhrr")
|
||||||
|
|
||||||
[node name="Player" parent="." unique_id=2145223914 instance=ExtResource("4_iywne")]
|
[node name="Player" parent="." unique_id=2145223914 instance=ExtResource("4_iywne")]
|
||||||
position = Vector2(495, 379)
|
position = Vector2(446.00003, 465.00003)
|
||||||
|
|
||||||
[node name="Crates" type="Node2D" parent="." unique_id=207771395]
|
[node name="Crates" type="Node2D" parent="." unique_id=207771395]
|
||||||
|
|
||||||
|
|||||||
@ -61,7 +61,7 @@ func coinCollected(body,coin)->void:
|
|||||||
destroySignal.emit(coin)
|
destroySignal.emit(coin)
|
||||||
|
|
||||||
func coinTotal(totalAmount)->void:
|
func coinTotal(totalAmount)->void:
|
||||||
print("GC knows total coins "+str(totalAmount))
|
print("GC knows total coins remaining "+str(totalAmount))
|
||||||
|
|
||||||
func bulletDamage(body, _bullet)->void:
|
func bulletDamage(body, _bullet)->void:
|
||||||
print("bullet hit")
|
print("bullet hit")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user