1
0
mirror of https://gitee.com/freeyz/godot-mota.git synced 2024-12-23 07:49:21 +08:00
godot-mota/scripts/PlayerSprite.gd
mydataway_yangzhe 7ca0be1f81 初次提交
2020-07-21 20:34:34 +08:00

13 lines
236 B
GDScript

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