Table of Contents
Demo Npc1 Mob - Code References
Entity Overview
DemoNpc1 is a demo/test NPC used for testing purposes in Remixed Dungeon. It appears in the QuestDemo1 level configuration.
Java Classes
This entity is spawned through JSON configuration, not as a Java class. The mob is created through the mob factory system using the “DemoNpc1” kind identifier.
- Mob factory registration: RemixedDungeon/src/main/java/com/nyrds/pixeldungeon/items/common/ItemFactory.java (or similar mob factory)
JSON Configuration
This entity is defined in the QuestDemo1 level configuration:
- File: RemixedDungeon/src/main/assets/levelsDesc/QuestDemo1.json
- Spawn Configuration:
{
"kind": "DemoNpc1",
"x": 5,
"y": 10,
"aiState": "Passive"
}
- Location: Position (5, 10) on a 16×16 level
- AI State: Passive (does not attack player)
String Resources
No string resources found for DemoNpc1 in the game's string files (values/strings_all.xml, values-ru/strings_all.xml, etc.).
- This is a demo entity and does not have localized name/description strings
Lua Scripts
This entity is not implemented in Lua. It is spawned through JSON configuration only.
Sprite Reference
- Wiki Image: wiki-data/media/rpd/images/demo_npc1_mob.png
- Game Sprite: No dedicated sprite file found in RemixedDungeon/src/main/assets/sprites/
- Note: May use a default/generic NPC sprite at runtime
Usage in Code
- Found in: QuestDemo1.json as a test NPC
- AI State: Passive (does not attack player)
- Purpose: Testing/demo purposes only - used in quest demo level
- Level: QuestDemo1 (16×16 test level with multiple exits)
Related Entities
- Demo Npc2 Mob - Another demo NPC (referenced but not in QuestDemo1.json)
- Quest Demo1 Configuration - Quest demo level configuration
- Black Rat - Other mobs in the same demo level
Notes
This is a test/demo entity used for development and testing purposes. It is not part of the main game content and may be used for testing mob behaviors, quest mechanics, or other game systems. The entity only appears in the QuestDemo1 level configuration.
