Skip to content
المشاريع

حول

A integration library seamlessly combining Phaser 3 with Vue for enhanced game development.

الألعاب والمحاكاة

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
٠
خلال 15 يومًا
٠
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

Phavuer

Phaser 4.x Vue 3.x npm license

Phavuer

Phavuer is a wrapper library that integrates Phaser 4 with Vue 3.

It allows you to control Phaser, a JavaScript game engine, through Vue, and enables game development through declarative rendering.

<script setup>
import { Container, Game, Rectangle, Scene, Text } from 'phavuer'
import { ref } from 'vue'
import MyCustomComponent from './MyCustomComponent.vue'

const gameConfig = { /* ... */ }
const count = ref(1)
const onClick = () => count.value++
</script>

<template>
  <Game :config="gameConfig">
    <Scene name="MainScene">
      <Text text="Add a Rectangle" @pointerdown="onClick" />
      <Container v-for="(n, i) in count" :key="i" :x="i * 130" :y="30">
        <Rectangle :width="120" :height="30" :origin="0" :fill-color="0x333333" />
        <Text :x="60" :y="15" :origin="0.5" :text="`Rectangle-${n}`" />
        <MyCustomComponent />
      </Container>
    </Scene>
  </Game>
</template>

Documentation

Examples

Community

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…