Add sprite logics

This commit is contained in:
2024-07-20 15:18:14 +02:00
parent 86123c64a8
commit 23f06061c0
8 changed files with 197 additions and 3 deletions

View File

@ -3,7 +3,7 @@
// npx prisma init
// 2. Create a new database schema
// npx prisma db push
// 3. Generate Prisma Client
// 3. Generate Prisma Client and type-safe models based on schema
// npx prisma generate
// 4. Create a new migration
// npx prisma migrate dev --name init
@ -24,6 +24,7 @@ model Sprite {
name String
origin_x Decimal @default(0)
origin_y Decimal @default(0)
type String
frameSpeed Int @default(0)
isAnimated Boolean @default(false)
isLooping Boolean @default(false)