shredbx logo
shredbx shredbx shredbx shredbx Personal
  • Home
  • Lab
  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
AClaude
  • Home
  • Lab
  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
Andrei Solovev
Packages
Search packages... ⌘K
  • Data & Persistence
    • Databases 3
    • Object Storage 1
    • File Formats 2
    • Enumerations 2
    • Content 1
    • Codegen 2
  • System Integration
    • Secrets 1
    • CLI Tools 5
    • Media Processing 2
    • Adapters 2
  • UI & Components
    • Primitives 1
    • Blocks 1
    • Sections & Layouts 1
    • Entities 1
    • Media 1
    • Utilities 1
    • State & Presenter 1
    • Branding & Style 1
  • Game Engine
    • Framework 1
    • Engine 2
    • Presets 1
    • Vendor 1
Packages/ Game Engine/ Framework/ Game Svelte
SvelteKit Package

game-svelte

Svelte game framework — Game component shell with lifecycle, loop, and renderer integration

SvelteKit Ready UI
Game Setup svelte
1
2
3
4
5
6
7
8
9
10
11
<script>
  import { Game } from '@sbx/game-svelte';
  import { arcadePreset } from '@sbx/game-preset-arcade';

  function onReady(engine) {
    console.log('Game started:', engine.fps, 'fps');
  }
</script>

<Game config={{ width: 800, height: 600 }}
  preset={arcadePreset} onready={onReady} />

About

Top-level Svelte component that bootstraps a game instance. Manages the game lifecycle (init → running → paused → stopped), connects the PixiJS renderer, input manager, and game loop into a unified component with reactive Svelte 5 props for configuration and state observation.

Public API

NameKindSignature
GametypeGame.svelte — config, preset, onready, onupdate

Dependencies

Imports (2)

engine-renderer SvelteKit Ready

Rendering engine — PixiJS-based game renderer with grid, backgrounds, and visual effects

game-enginerenderingpixijswebglgrideffectsparticles
4 exports 2 deps
engine-input SvelteKit Ready

Input manager — unified keyboard, mouse, and touch input handling for games

game-engineinputkeyboardmousetouchgestures
4 exports 1 deps

Related Packages

engine-renderer SvelteKit Ready

Rendering engine — PixiJS-based game renderer with grid, backgrounds, and visual effects

game-enginerenderingpixijswebglgrideffectsparticles
4 exports 2 deps
engine-input SvelteKit Ready

Input manager — unified keyboard, mouse, and touch input handling for games

game-engineinputkeyboardmousetouchgestures
4 exports 1 deps
game-preset-arcade SvelteKit Ready

Arcade game preset — preconfigured runtime with score, lives, levels, and collision

game-enginearcadepresetscorecollisionlevels
4 exports 2 deps
vendor-pixi SvelteKit Ready

PixiJS vendor wrapper — tree-shakeable PixiJS adapter with type-safe API subset

pixijsvendorwebglcanvastree-shaking
2 exports 1 deps

Source

@sbx/game-svelte
svelte-5gamepixijscanvasgame-loop
shredbx logo shredbx shredbx shredbx shredbx Andrei Solovev

Solution Architect & Lead Software Engineer

ExperiencePortfolioResearch & ExperimentsEducationCertificationSkills
GitHub ↗LinkedIn ↗Email ↗
AVAILABLE FOR NEW PROJECTS
// MY LATEST BEATS
Hobby & Interests

Lab

  • The Lab
  • Framework
  • Components
  • Packages
  • Games
  • Process (SDLC)
  • Knowledge
  • Blog

Andrei

  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
  • Lifestyle

Team

  • Team
  • Andrei
  • Claude

Legal

  • Privacy
  • Terms
  • Cookies
© 2026 shredbx.com. All rights reserved. — Andrei Solovev |