mirror of
https://gitee.com/freeyz/godot-mota.git
synced 2024-12-23 07:49:21 +08:00
13 lines
236 B
GDScript
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
|