mirror of
https://gitee.com/freeyz/godot-mota.git
synced 2024-12-23 06:19:18 +08:00
13 lines
236 B
GDScript3
13 lines
236 B
GDScript3
|
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
|