1
0
mirror of https://gitee.com/freeyz/godot-mota.git synced 2024-11-17 23:39:24 +08:00
godot-mota/scripts/PlayerSprite.gd

13 lines
236 B
GDScript3
Raw Normal View History

2020-07-21 20:34:34 +08:00
tool
extends Sprite
class_name PlayerSprite
# 默认数据初始化
func _init():
self.texture = load("res://images/mota.png")
self.region_enabled = true
self.region_rect = Rect2(192,192,128,96)
self.vframes = 3
self.hframes = 4