Molding The World

in #hive-188262last month

https://wsrv.nl/?url=https://images.ecency.com/DQmTJ8mmdRXbxKSxkHANk3SorfmitmN2wBCAb6UQLXuwWbJ/33ebc4c2_7a98_4c86_81ac_7db8d8d313e1.webp&q=30&output=webp

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 @dr-animation and @mmoonn 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;
  }
}
Sort:  

Congratulations @strangedad! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

You distributed more than 1250 upvotes.
Your next target is to reach 1500 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Check out our last posts:

Our Hive Power Delegations to the November PUM Winners
Feedback from the December Hive Power Up Day
Hive Power Up Month Challenge - November 2024 Winners List