assets

Define, place, and access game assets with TypeScript typing in Better ECS.

Updated Jan 1, 2026
One-click install
npx skills add https://github.com/ViewableGravy/better-ecs --skill assets-viewablegravy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: assets
Source: https://github.com/ViewableGravy/better-ecs/tree/main/.github/skills/assets
Command: npx skills add https://github.com/ViewableGravy/better-ecs --skill assets-viewablegravy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of defining, loading, and accessing game assets like images and audio, ensuring type safety and efficient loading within the Better ECS engine.

Core Features & Use Cases

  • Standardized Asset Definition: Register assets centrally for strict TypeScript typing.
  • Asset Placement Guidelines: Directs where to store asset files for proper serving.
  • Flexible Loading: Supports both preloading for immediate use and lazy loading for on-demand access.
  • Use Case: When developing a game, you need to add a new player sprite. This skill guides you on where to place the image file, how to register it in the asset loader for type safety, and how to load and display it in your game's rendering system.

Quick Start

Use the assets skill to preload the 'player-sprite' asset.

Frequently Asked Questions about assets

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage game assets efficiently in a TypeScript ECS environment?

To manage game assets efficiently in a TypeScript ECS environment, standardize asset definition, clarify file placement, and document access patterns for sprites, textures, and data to ensure strict typing and streamlined retrieval.

What is the best way to preload sprites and textures for game development?

The best way to preload sprites and textures is registering assets centrally for strict TypeScript typing, then using preloading strategies for immediate use or lazy loading for on-demand access within the game engine.

How do I register a new player sprite for type-safe asset loading?

To register a new player sprite for type-safe asset loading, place the image file in the designated asset directory and register it centrally in the asset loader to enforce strict TypeScript typing during retrieval.

Does the Better ECS workspace support lazy loading for on-demand game asset access?

Yes, the Better ECS workspace supports lazy loading for on-demand game asset access, allowing flexible loading strategies alongside preloading for immediate use to optimize game performance.

When should I use preloading instead of lazy loading for game resources?

Use preloading for game resources needed immediately at startup, and switch to lazy loading for on-demand assets accessed later, balancing strict TypeScript asset definition with flexible loading strategies.