Molding The World
Ive been working on this PiMUD game for almost 2 weeks. Finally to a place where I can build the map.
I really feel like the map is going to be one of the more time consuming endeavors here. I'm going to get my sons and
help with making this.
One of them wants to work on Lore in the game. The other wants to work on characters. Neither of them care that the map has to exist first.... but hey we're going to go about it this way.
We're also looking for a title.
The project is going to be funded by @PeakeCoin available for trade here https://hive-engine.com/trade/PEK
This is 'RoomConstants.java' its not necessarily how the rooms will be. It is really a placeholder until we can figure out the lore in the game. This is all pretty neat.
import java.util.HashMap;
import java.util.Map;
public class RoomConstants {
// Constant rooms (pre-made rooms)
public static final Room CASTLE = new Room("A majestic castle with towering walls.", 0, 0);
public static final Room FOREST = new Room("A dense forest, the smell of pine in the air.", 1, 0);
public static final Room VILLAGE = new Room("A quaint village with cobblestone streets.", 0, 1);
public static final Room CAVE = new Room("A dark, musty cave with echoes of distant sounds.", 1, 1);
// Predefined exits between rooms (using the coordinates of rooms as references)
public static final Map<String, Room> CASTLE_EXITS = createCastleExits();
public static final Map<String, Room> FOREST_EXITS = createForestExits();
public static final Map<String, Room> VILLAGE_EXITS = createVillageExits();
public static final Map<String, Room> CAVE_EXITS = createCaveExits();
private static Map<String, Room> createCastleExits() {
Map<String, Room> exits = new HashMap<>();
exits.put("north", FOREST);
exits.put("east", VILLAGE);
return exits;
}
private static Map<String, Room> createForestExits() {
Map<String, Room> exits = new HashMap<>();
exits.put("south", CASTLE);
exits.put("west", CAVE);
return exits;
}
private static Map<String, Room> createVillageExits() {
Map<String, Room> exits = new HashMap<>();
exits.put("west", CASTLE);
exits.put("north", CAVE);
return exits;
}
private static Map<String, Room> createCaveExits() {
Map<String, Room> exits = new HashMap<>();
exits.put("east", FOREST);
exits.put("south", VILLAGE);
return exits;
}
}
Leave Molding The World to:
Read more #hive-188262 posts
Best Posts From Peake_Dad
We have not curated any of strangedad's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From Peake_Dad
- Stolen Funds
- PeakeCoin Bots: Automated Trading Dashboard
- Peake RPG - MMO - Beta Version
- Peake RPG — Current Project Rundown
- Poor Man’s AI — Building While the Servers Are Down
- Hive Trading Bot - strategy.py - Part 4
- Hive Engine Trading Bot - Part 3 - rc_intelligence.py
- Hive Engine Trading Bot - Cycle Control - Part 2
- Hive Engine Trading Bot - Unified Logic - Part 1
- Arbiter Bot - Part 4 - place_order.py
- Arbiter Bot - Part 3 - fetch_market.py
- Arbiter Bot Part 2 - Cancel Logic
- Arbiter Bot - For All Hive Engine Tokens
- Turning Old Cell Phones Into CPU Miners
- Electrical Masters Exam... Passed.
- PeakeCoinBot.exe - Update
- Hive / Cronos - Hive Engine to CRO
- FPS - main.py - python
- PekAblo - Move Mechanics Problems
- Pekario - Now Mobile Friendly