ewrogers/megadev-skills

megadev-compression

Choose and validate compression for Megadev Sega CD assets, comparing sector-rounded disc size, decode time and RAM, with safe Kosinski decoding and loading/preloading integration.

소스 보기

사용 방법

  1. 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
  2. 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
  3. 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/ewrogers/megadev-skills --skill megadev-compression

시작 전 확인

  • 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
  • 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 Skill 문서

원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.

Megadev compression

Choose compression per asset and loading path. A smaller file can still cost more sectors, more working RAM or more time before an asset is usable. Preserve the game's asset formats, visual design and loading behavior.

support, a deterministic Kosinski encoder and input/output validation.

staging, peak RAM, Sub decoding and preloading trade-offs.

execution, timing limits, ARM64/AMD64 comparison and PAL/NTSC auditions.

Use ewrogers/megadev:latest; inspect its actual decoder and ABI before teaching calls. The audited SDK revision and primary links are in the references. Do not port SGDK's resource compiler, unpack calls or codec names as Megadev APIs.

Essential contracts:

  • Bound source consumption, decoded length and history references before

calling a decoder that has no bounds arguments. Keep that validated source immutable until decoding completes. Validate the decoded asset before use.

  • Round CD reads to 2048-byte sectors and reserve that full writable range.

Keep encoded input and output disjoint, with exclusive CPU ownership.

  • A request acknowledgement, read completion, decode completion and visible

upload completion are different events. Cancellation/timeouts do not free buffers from a live reader or decoder.

  • Keep decoding out of VBlank/interrupt handlers. Main/Sub separation can keep

gameplay responsive, but does not make decode cost or shared-bus work free.

  • Report stored bytes, sectors, decoded bytes, active buffer usage and reserved

capacity separately. Compression does not shrink the final VRAM requirements.

The self-contained Compression Lab compares raw versus Kosinski artwork and an explicitly labeled random-noise sample. scripts/create_project.py generates a new project without replacing files. Its encoder, validator, measurement helpers and protocol are application code; Kos_Decomp is the actual SDK assembly decoder. Both raw and packed versions are included for comparison, not as a recommended shipping layout.

Reuse the game's existing reader, clock, memory leases and renderer. megadev-streaming owns loading mechanics, megadev-memory covers lifetimes, and megadev-performance covers broader profiling. This skill adds compression choice, validation and decode integration; it prescribes no art style or game flow.

관련 작업

같은 저장소의 Skills

더 많은 Skills

모든 Skills
ewrogers
커뮤니티

megadev-best-practices

Apply Megadev-specific C/assembly, project-structure and integration practices while preserving CPU, interrupt and resource ownership. Use when writing or reviewing Megadev game code, joining existing systems, or fixing cross-system correctness problems; detailed graphics, audio, loading, save and release implementations remain with their own skills.

설치 수
1
GitHub Stars
0
업데이트
10월 20일
ewrogers
커뮤니티

megadev-combat

Implement attack resolution, directional guards, damage, invulnerability and knockback in Megadev Sega CD games. Use for combat rule ordering, attack-instance hit tracking and bounded projectile handling; animation timing, geometry and enemy decisions remain separate concerns.

설치 수
1
GitHub Stars
0
업데이트
10월 20일
ewrogers
커뮤니티

megadev-effects

Build bounded particles, explosions, trails, weather and screen shake in Megadev Sega CD games, with effect priorities, resident art and measured rendering budgets.

설치 수
1
GitHub Stars
0
업데이트
10월 20일
ewrogers
커뮤니티

megadev-graphics

Render scrolling planes, parallax, sprites, animation frames and palette effects in Megadev Sega CD/Mega CD projects. Use for VDP layout, display priority, sprite budgets and frame submission; asset conversion and disc-streaming policy are separate concerns.

설치 수
1
GitHub Stars
0
업데이트
10월 20일