I added tilemaps, sprites, I drew 'AMAZING' trees, did paralax background

This commit is contained in:
torontocaper committed 2026-03-23 20:56:10 -04:00
1 parent 75d4918c45
commit bb4446b140
23 files changed
+774 -12

No files matched your search

+7 -1
View File
@@ -1,5 +1,7 @@
class_name Bullet extends Area2D
@onready var bullet_graphic: Sprite2D = $BulletGraphic
var speed:float = 700;
signal bulletDamageSignal(body, bullet)
# Called when the node enters the scene tree for the first time.
@@ -8,7 +10,11 @@ func _ready() -> void:
func setSpeed(value)->void:
speed=value
# Called every frame. 'delta' is the elapsed time since the previous frame.
if speed <0:
bullet_graphic.flip_h = true
if speed >0:
bullet_graphic.flip_h = false
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
position += transform.x * speed * delta
+1 -1
View File
@@ -6,7 +6,7 @@ class_name Player extends CharacterBody2D
const SPEED = 300
const JUMP_VELOCITY = -400.0
const BUMP_POWER = 100000
const BUMP_POWER = 1000
enum FaceDirection{LEFT, RIGHT}
var facing:FaceDirection = FaceDirection.RIGHT
var direction