roguelike
Fungsinya
Skill ini memandu pembuatan roguelike di mana setiap run memiliki dungeon acak dan kematian mengakhiri run. Skill ini ditujukan untuk pengembang dungeon crawler berbasis giliran atau game roguelite.
Kapan dipakai
- โSaat Anda membangun dungeon crawler grid berbasis giliran dengan level acak.
- โSaat Anda menginginkan kematian untuk mengakhiri run dan mengatur ulang dunia.
- โSaat Anda memerlukan field of view, kabut perang, atau tabel loot untuk game dungeon.
Link skill
https://github.com/gamedev-skills/awesome-gamedev-agent-skills/blob/main/skills/genres/roguelike/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โSaya ingin membuat roguelike berbasis giliran di mana setiap run memiliki dungeon acak baru, saya hanya bisa melihat tile terdekat, dan kematian mengakhiri run.โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent membangun mesin giliran di atas grid, menghasilkan dungeon dari sebuah biji, dan menambahkan field of view agar pemain hanya melihat apa yang dapat dijangkau. Agent mengatur permadeath dan tabel loot, serta menjaga semua aksi dalam satu mode.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Roguelike
A playbook for roguelikes โ the turn engine, procedural dungeons, field-of-view, permadeath, and run economy. This is a compositional skill: it orchestrates procedural generation, tilemaps, save handling, and AI into a run-based game. It does not re-teach noise/RNG or tilemap APIs; it defines the loop and the systems that make a run compelling.
When to use
- Use when building a turn-based, grid-based dungeon crawler where each death ends the run and the world is regenerated โ a roguelike or "roguelite" (with meta-progression).
- Use when designing procedural dungeons, FOV/fog-of-war, permadeath stakes, or loot tables.
When not to use: real-time action with roguelike dressing โ build the action genre
(platformer/fps-shooter) and layer procedural-gen. Deep stats/quests/dialogue without
permadeath โ rpg. Open-world needs/crafting โ survival-crafting.
What makes it a roguelike (design anchor)
The community reference is the Berlin Interpretation (RogueBasin, IRDC 2008): a set of "roguelikeness" factors, not a checklist. The high-value ones are the design targets: random environment generation, permadeath, turn-based, grid-based, non-modal (all actions in one mode), complexity (many item/monster interactions), resource management, hack-and-slash, and exploration & discovery. Lean into these to feel roguelike; pick which to keep deliberately. "Roguelite" usually relaxes permadeath with meta-progression.
Core loop
Take a turn (move / fight / use) โ the world resolves its turn โ see new state โ descend / loot / survive โ die and restart with a fresh dungeon. Replayability comes from the world changing each run, not the player memorizing a fixed layout.
Must-have systems
- Turn scheduler โ energy/initiative system so fast actors act more often (Pattern 2).
- Grid map + movement โ tile coordinates; bump-to-attack; blocked/walkable queries.
- Procedural dungeon generator โ rooms + corridors, or BSP/cellular; guarantee connectivity.
- Field of view + explored memory โ what's visible now vs. seen-before (Pattern 3 / refs).
- Combat + entities โ HP, attack/defense, status; monsters obey the same rules as the player.
- Loot + drop tables โ weighted, depth-scaled item/monster spawning (refs).
- Permadeath + (optional) meta-progression โ wipe the run; persist only unlocks/score.
- Message log + clear UI โ the player reasons from text/state; surface numbers and events.
Design knobs
| Knob | Effect | Notes |
|---|---|---|
| Dungeon size / room count | run length, density | Scale with depth. |
| Connectivity guarantee | no unreachable rooms | Always verify reachability after generation. |
| Monster density / depth curve | difficulty ramp | Spawn by depth-weighted table. |
| Loot rarity weights | power variance | Rarer = bigger swing; identify adds discovery. |
| FOV radius / lighting | tension, information | Smaller radius = scarier, slower. |
| Resource scarcity (food/HP/ammo) | pressure to descend | Core tension lever in classic RLs. |
| Permadeath vs meta-progression | run stakes vs. retention | Roguelite softens the wall. |
| Identification / unknowns | exploration value | Unidentified items reward experimentation. |
| Seedable RNG | daily runs, debugging | Always allow a fixed seed (see procedural-gen). |
Patterns
1. Deterministic, seedable run RNG
# Pseudocode. One seeded RNG per run makes dungeons reproducible (daily runs, bug repro).
run_seed = chosen_seed or random_seed()
rng = Rng(run_seed) # use your engine's seedable RNG, not global random
dungeon = generate_dungeon(rng, depth) # same seed + depth => same dungeon
# Persist run_seed in the save so a crash can resume the same world (see save-systems).
2. Energy-based turn scheduler (speeds differ)
# Pseudocode. Actors gain energy each tick and act when they have enough.
# Faster actors gain more per tick, so they act more often โ no fixed "player then enemies".
TURN_COST = 100
def next_actor(actors):
while True:
for a in actors: # 1) serve anyone already ready, in a stable order
if a.energy >= TURN_COST:
a.energy -= TURN_COST # (or the cost of the action they choose)
return a # this actor takes exactly one action now
for a in actors: # 2) nobody is rea
Pertanyaan umum
Apa itu Berlin Interpretation?
Itu adalah seperangkat sifat yang disepakati komunitas untuk mendefinisikan roguelike, dan skill menggunakannya sebagai tujuan desain.
Apakah mencakup meta-progression?
Ya. Skill mencakup meta-progression roguelite sebagai opsi di atas permadeath.
Apakah ia sendiri membuat dungeon?
Generasi dungeon ditangani oleh skill generasi prosedural, yang digunakan skill ini.
Detail
Deskripsi asli dari pembuat
Build a roguelike: turn-based grid movement, procedural dungeons, permadeath, field-of-view, and loot tables. Use for a roguelike/roguelite or turn-based grid dungeon crawler with procedural levels.
Popularitas
- Bintang GitHub
- 6.6k
- Peringkat
- #13811
- Lisensi
- Apache-2.0
- Diperbarui
- 28/10/2026
Komentar
- โฆ
Skill lain dari repositori ini
router
6.6kMembantu agent Anda memilih skill pengembangan game yang tepat untuk setiap permintaan dengan mendeteksi engine Anda dan jenis tugas yang Anda perlukan.
ai-behavior-trees-utility-ai
6.6kMembantu agent Anda membangun behavior tree dan sistem utility AI untuk musuh dan karakter game yang memilih aksi berdasarkan prioritas dan skor.
audio-design
6.6kMengajari agent Anda cara mixing audio game: bus, volume dalam desibel, ducking di bawah dialog, musik adaptif, dan variasi efek suara.
camera-systems
6.6kMembantu agent Anda membangun kamera game yang mengikuti dengan halus, tetap berada di dalam level, dan dapat mengorbit atau melihat sekeliling dalam 3D.
Skill serupa
diffs
394kMemungkinkan agent Anda menghasilkan diff perubahan yang nyata dan dapat dibagikan sebagai tautan viewer atau file gambar, bukan ringkasan yang ditulis manual.
coding-agent
394kMembantu agent Anda menyerahkan pekerjaan pemrograman besar ke Codex, Claude Code, atau OpenCode di latar belakang, lalu memeriksa kemajuannya.
gh-issues
394kMembantu agent Anda menemukan issue GitHub, memilih yang dikerjakan, dan membuka pull request perbaikan, termasuk tindak lanjut komentar tinjauan.