How petrviitman/showcase works
This is a showcase slot game: the user selects bets or spin modes, game logic requests a mock game result, and the selected presentation reports the spin, win/loss, and updated balance. The README describes console and Pixi presentation choices, turbo and autoplay, and reusable runtime-generated assets. The Pixi view graph follows relationships visible in the source index; unsampled features are represented at subsystem level where their exact implementation path is not established. The standalone service is mock game infrastructure, not evidence of a deployed remote backend.
Main entry points: PixiPresentation.ts Pixi presentation · EntryPoint.ts Entry point · GameLogic.ts Game logic · GUIView.ts Game controls
Components 26
Game runtime
- Entry point
src/EntryPoint.ts - Game logic
src/busynessLogic/GameLogic.ts - Game contracts
src/Shared.types.ts
Mock game service
- Standalone Web API
src/busynessLogic/standaloneService/WebAPI.ts - Fake server
src/busynessLogic/standaloneService/service/FakeServer.ts - Slot machine
src/busynessLogic/standaloneService/service/slotMachine/SlotMachine.ts - Slot result types
src/busynessLogic/standaloneService/service/slotMachine/SlotMachine.types.ts
Presentation adapters
- Presentation interface
src/presentation/Presentation.interface.ts - Console presentation
src/presentation/console/ConsolePresentation.ts
Pixi experience
- Pixi presentation
src/presentation/pixi/PixiPresentation.ts - Asset loading
src/presentation/pixi/Assets.ts - Runtime asset generation
src/presentation/RuntimeAssetsGeneration.ts - Adaptive layout
src/presentation/pixi/views/AdaptiveContainer.ts - Loading screens
src/presentation/pixi/views/loadingScreen/LoadingScreen.ts - Background view
src/presentation/pixi/views/BackgroundView.ts - Reel presentation
src/presentation/pixi/views/reels/ReelsView.ts - Single reel
src/presentation/pixi/views/reels/SingleReelView.ts - Reel cells
src/presentation/pixi/views/reels/cell/ReelCellView.ts - Win effects
src/presentation/pixi/views/reels/WinLayerView.ts - Game controls
src/presentation/pixi/views/GUI/GUIView.ts - Control buttons
src/presentation/pixi/views/GUI/buttons/ButtonView.ts - Status indicators
src/presentation/pixi/views/GUI/indicators/IndicatorView.ts - Audio system
src/presentation/pixi/audio/Audio.ts - Vampire character
src/presentation/pixi/views/VampireView.ts - Spine animation
src/presentation/pixi/views/SpineView.ts
Other components
- Player
Connections 30
- Player → Entry point: starts game
- Entry point → Game logic: creates
src/EntryPoint.ts - Entry point → Console presentation: selects presentation
src/EntryPoint.ts - Entry point → Pixi presentation: selects presentation
src/EntryPoint.ts - Game logic → Standalone Web API: requests game data
src/busynessLogic/GameLogic.ts - Game logic → Presentation interface: drives
src/busynessLogic/GameLogic.ts - Console presentation → Presentation interface: implements
src/presentation/console/ConsolePresentation.ts - Pixi presentation → Presentation interface: implements
src/presentation/pixi/PixiPresentation.ts - Game logic → Game contracts: uses types
src/busynessLogic/GameLogic.ts - Standalone Web API → Fake server: calls
src/busynessLogic/standaloneService/WebAPI.ts - Fake server → Slot machine: uses
src/busynessLogic/standaloneService/service/FakeServer.ts - Fake server → Slot result types: uses types
src/busynessLogic/standaloneService/service/FakeServer.ts - Pixi presentation → Asset loading: loads assets
src/presentation/pixi/PixiPresentation.ts - Asset loading → Runtime asset generation: uses generated assets
src/presentation/pixi/Assets.ts - Runtime asset generation → Spine animation: renders symbols
src/presentation/RuntimeAssetsGeneration.ts - Pixi presentation → Adaptive layout: installs layout
src/presentation/pixi/PixiPresentation.ts - Pixi presentation → Loading screens: shows loading
src/presentation/pixi/PixiPresentation.ts - Pixi presentation → Background view: creates view
src/presentation/pixi/PixiPresentation.ts - Pixi presentation → Reel presentation: creates and updates
src/presentation/pixi/PixiPresentation.ts - Reel presentation → Single reel: uses
src/presentation/pixi/views/reels/ReelsView.ts - Single reel → Reel cells: uses
src/presentation/pixi/views/reels/SingleReelView.ts - Reel presentation → Win effects: uses
src/presentation/pixi/views/reels/ReelsView.ts - Pixi presentation → Game controls: creates and refreshes
src/presentation/pixi/PixiPresentation.ts - Game controls → Control buttons: uses controls
src/presentation/pixi/views/GUI/GUIView.ts - Game controls → Status indicators: uses displays
src/presentation/pixi/views/GUI/GUIView.ts - Pixi presentation → Audio system: loads and plays
src/presentation/pixi/PixiPresentation.ts - Game controls → Audio system: plays interaction sounds
src/presentation/pixi/views/GUI/GUIView.ts - Pixi presentation → Vampire character: presents outcomes
src/presentation/pixi/PixiPresentation.ts - Vampire character → Spine animation: animates with
src/presentation/pixi/views/VampireView.ts - Vampire character → Audio system: plays win sound
src/presentation/pixi/views/VampireView.ts