<scene>
    <sprite class="player" x="100" y="100" width="50" height="50"></sprite>
    <text class="title" x="200" y="50">欢迎使用 Pandona Engine</text>
</scene>

<script>
export default {
  name: 'IndexScene',
  data() {
    return {
      playerPosition: { x: 100, y: 100 }
    }
  },
  methods: {
    onPlayerClick() {
      console.log('玩家被点击了!')
      // 简单的移动动画
      this.playerPosition.x += 50
      this.playerPosition.y += 50
    }
  },
  mounted() {
    console.log('主场景已加载')
  }
}
</script>