Skip to content

Commit ac5e391

Browse files
authored
Update Screen, network and saveload
1 parent 90c81a5 commit ac5e391

File tree

6 files changed

+71
-38
lines changed

6 files changed

+71
-38
lines changed

src/minicraft/screen/BookData.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66

77
public class BookData {
88

9-
public static final String about = "Modded by David.b and +Dillyg10+ until 1.8, then taken over by Chris J until 2.0.4, and then by afyber. Our goal is to expand Minicraft to be more fun and continuous.\nMinicraft was originally made by Markus Perrson for ludum dare 22 competition.";
9+
public static final String about = "Modded by TheBigEye + My goal is to expand Minicraft with this Mod so that you can enjoy another adventure ... have fun and improve both the gameplay and the diversity of objects, mobs, Bosses and biomes.\nMinicraft was originally made by Markus Persson for ludum dare 22 competition.";
1010

1111
public static final String instructions = "With the default controls...\n\nMove your character with arrow keys or WSAD. Press C to attack and X to open the inventory, and to use items. Pickup furniture and torches with V. Select an item in the inventory to equip it.\n\nThe Goal: Defeat Cthulhu!";
1212

13+
public static final String credits = "Thanks to...\n\nShylor !!!, although i never mention me or the mod... thanks to him there is the playminicraft community.. the one that is unique because of the people who make it up... thanks to him the revive minicraft project is up and running like the server discord.. thanks to you this and everything is possible... thanks. i hope you have read this.\n\nAlice for helping me a lot (help me to solve problems, and thanks to her for encouraging me to continue with the development :,) ).\n\nZucc, GC4k, Fusyon and the entire community for giving me ideas and helping me decide each change without affecting the gameplay (ideas and making decisions).\n\nRiverOaken, for making sn epic texture pack, i decided to put you here because you are the owner of Rcraft (the texture pack that you use for the mod), i also made some minor modifications for better details, thanks for making this also possible (Texture pack).\n\nChris and Cristoffer, thanks to you i was able to improve my programming skills and hel me, also without the minicraft plus mod... this would have been possible.. thanks (help and mod base).";
14+
1315
public static final String antVenomBook = loadBook("antidous");
1416
public static final String storylineGuide = loadBook("story_guide");
1517

src/minicraft/screen/CraftMenu.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package minicraft.screen;
2+
3+
public class CraftMenu {
4+
5+
}

src/minicraft/screen/MapData.java

Lines changed: 48 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,56 @@
55

66
public enum MapData {
77

8-
GRASS(Tiles.get("Grass").id, 430),
9-
LAWN(Tiles.get("Lawn").id, 430),
10-
DIRT(Tiles.get("Dirt").id, 540),
11-
FLOWER(Tiles.get("Flower").id, 430),
12-
HOLE(Tiles.get("Hole").id, 430),
13-
WATER(Tiles.get("Water").id, 540),
14-
LAVA(Tiles.get("Lava").id, 5),
15-
ROCK(Tiles.get("Rock").id, 430),
16-
HARD_ROCK(Tiles.get("Hard Rock").id, 430),
17-
TREE(Tiles.get("Tree").id, 430),
18-
SAND(Tiles.get("Sand").id, 430),
19-
SNOW(Tiles.get("Snow").id, 430),
8+
GRASS(Tiles.get("Grass").id, Color.get(1, 58, 198, 30)),
9+
MYCELIUM(Tiles.get("Mycelium").id, Color.get(1, 89, 86, 86)),
10+
LAWN(Tiles.get("Lawn").id, Color.get(1, 57, 191, 30)),
11+
DIRT(Tiles.get("Dirt").id, Color.get(1, 132, 116, 0)),
12+
FLOWER(Tiles.get("Flower").id, Color.YELLOW),
13+
HOLE(Tiles.get("Hole").id, Color.get(1, 61, 47, 8)),
14+
WATER(Tiles.get("Water").id, Color.get(1, 0, 178, 240)),
15+
LAVA(Tiles.get("Lava").id, Color.RED),
16+
ROCK(Tiles.get("Rock").id, Color.get(1, 145, 143, 122)),
17+
HARD_ROCK(Tiles.get("Hard Rock").id, Color.get(1, 127, 126, 107)),
18+
CACTUS(Tiles.get("Cactus").id, Color.GREEN),
19+
TREE(Tiles.get("Tree").id, Color.get(1, 0, 113, 0)),
20+
FIR_TREE(Tiles.get("Fir Tree").id, Color.get(1, 19, 139, 98)),
21+
PINE_TREE(Tiles.get("Pine Tree").id, Color.get(1, 17, 127, 89)),
22+
//GIANT_RED_MUSHROOM(Tiles.get("Giant Red Mushroom").id, Color.get(1, 209, 20, 10)),
23+
//GIANT_BROWN_MUSHROOM(Tiles.get("Giant Brown Mushroom").id, Color.get(1, 175, 122, 96)),
24+
SAND(Tiles.get("Sand").id, Color.get(1, 232, 201, 0)),
25+
SNOW(Tiles.get("Snow").id, Color.get(1, 240, 240, 240)),
2026
STAIRS_UP(Tiles.get("Stairs Up").id, 0xffffff),
2127
STAIRS_DOWN(Tiles.get("Stairs Down").id, 0xffffff),
22-
WOOD_FLOOR(Tiles.get("Wood Planks").id, 540),
23-
WOOD_WALL(Tiles.get("Wood Wall").id, 430),
24-
WOOD_DOOR(Tiles.get("Wood Door").id, 541),
25-
STONE_FLOOR(Tiles.get("Stone Bricks").id, 430),
26-
STONE_WALL(Tiles.get("Stone Wall").id, 555),
27-
STONE_DOOR(Tiles.get("Stone Door").id, 555),
28-
OBSIDIAN_FLOOR(Tiles.get("Obsidian").id, 203),
29-
OBSIDIAN_WALL(Tiles.get("Obsidian Wall").id, 304),
30-
OBSIDIAN_DOOR(Tiles.get("Obsidian Door").id, 304),
31-
WOOL(Tiles.get("Wool").id, 555), // Yes I know woolColor isn't taken into account
32-
FARMLAND(Tiles.get("Farmland").id, 422),
33-
WHEAT(Tiles.get("Wheat").id, 350),
34-
INFINITE_FALL(Tiles.get("Infinite Fall").id, 540),
35-
CLOUD(Tiles.get("cloud").id, 225),
36-
CLOUD_CACTUS(Tiles.get("Cloud Cactus").id, 255);
28+
WOOD_FLOOR(Tiles.get("Wood Planks").id, Color.get(1, 145, 79, 14)),
29+
WOOD_WALL(Tiles.get("Wood Wall").id, Color.get(1, 122, 67, 12)),
30+
WOOD_DOOR(Tiles.get("Wood Door").id, Color.get(1, 122, 72, 23)),
31+
STONE_FLOOR(Tiles.get("Stone Bricks").id, Color.get(1, 163, 163, 163)),
32+
STONE_WALL(Tiles.get("Stone Wall").id, Color.get(1, 99, 99, 99)),
33+
STONE_DOOR(Tiles.get("Stone Door").id, Color.get(1, 119, 119, 119)),
34+
OBSIDIAN_FLOOR(Tiles.get("Obsidian").id, Color.get(1, 76, 30, 100)),
35+
OBSIDIAN_WALL(Tiles.get("Obsidian Wall").id, Color.get(1, 46, 24, 118)),
36+
OBSIDIAN_DOOR(Tiles.get("Obsidian Door").id, Color.get(1, 44, 21, 67)),
37+
38+
WOOL(Tiles.get("Wool").id, Color.get(1, 239, 239, 236)),
39+
BLACK_WOOL(Tiles.get("Black Wool").id, Color.get(1, 23, 19, 18)),
40+
YELLOW_WOOL(Tiles.get("Yellow Wool").id, Color.get(1, 186, 175, 49)),
41+
GREEN_WOOL(Tiles.get("Green Wool").id, Color.get(1, 71, 178, 59)),
42+
BLUE_WOOL(Tiles.get("Blue Wool").id, Color.get(1, 51, 75, 160)),
43+
RED_WOOL(Tiles.get("Red Wool").id, Color.get(1, 146, 48, 47)),
44+
PURPLE_WOOL(Tiles.get("Purple Wool").id, Color.get(1, 127, 63, 180)),
45+
PINK_WOOL(Tiles.get("Pink Wool").id, Color.get(1, 224, 175, 198)),
46+
DARK_GREEN_WOOL(Tiles.get("Dark Green Wool").id, Color.get(1, 53, 70, 29)),
47+
BROWN_WOOL(Tiles.get("Brown Wool").id, Color.get(1, 91, 56, 36)),
48+
MAGENTA_WOOL(Tiles.get("Magenta Wool").id, Color.get(1, 184, 87, 194)),
49+
LIGHT_BLUE_WOOL(Tiles.get("Light Blue Wool").id, Color.get(1, 111, 155, 220)),
50+
CYAN_WOOL(Tiles.get("Cyan Wool").id, Color.get(1, 48, 114, 138)),
51+
ORANGE_WOOL(Tiles.get("Orange Wool").id, Color.get(1, 229, 110, 71)),
52+
53+
FARMLAND(Tiles.get("Farmland").id, Color.get(1, 145, 75, 75)),
54+
WHEAT(Tiles.get("Wheat").id, Color.get(1, 226, 226, 111)),
55+
INFINITE_FALL(Tiles.get("Infinite Fall").id, Color.get(1, 0, 87, 122)),
56+
CLOUD(Tiles.get("cloud").id, Color.WHITE),
57+
CLOUD_CACTUS(Tiles.get("Cloud Cactus").id, Color.GREEN);
3758

3859

3960
public int tileID;

src/minicraft/screen/MapDisplay.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public void render(Screen screen) {
109109
}
110110
}
111111
// by drawing with only one pixel at a time we can draw with much more precision
112-
screen.render(i + menuBounds.getLeft() + 6, c + menuBounds.getTop() + 6, 3 + 16 * 16, Color.get(color, color, color, color), 0);
112+
screen.setPixel(i + menuBounds.getLeft() + 6, c + menuBounds.getTop() + 6, color);
113113
}
114114
}
115115
/*if (arrows[0]) {

src/minicraft/screen/Menu.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,10 @@ public Builder copy() {
538538

539539
return b;
540540
}
541+
public Builder setFrame(int i, int j, int k) {
542+
// TODO Auto-generated method stub
543+
return null;
544+
}
541545
}
542546

543547
public String toString() {

src/minicraft/screen/TitleDisplay.java

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public TitleDisplay() {
4848
}),
4949
new SelectEntry("Multiplayer", () -> Game.setMenu(new MultiplayerDisplay())),
5050
new SelectEntry("Options", () -> Game.setMenu(new OptionsDisplay())),
51+
new SelectEntry("Credits", () -> Game.setMenu(new BookDisplay(BookData.credits))),
5152
displayFactory("Help",
5253
new SelectEntry("Instructions", () -> Game.setMenu(new BookDisplay(BookData.instructions))),
5354
new BlankEntry(),
@@ -170,21 +171,21 @@ public void render(Screen screen) {
170171
"Happy birthday Minicraft!",
171172
"Happy XMAS!",
172173
"Multiplayer Now Included!",
173-
// "Also play InfinityTale!",
174-
// "Also play Minicraft Deluxe!",
175-
// "Also play Alecraft!",
176-
// "Also play Hackcraft!",
177-
// "Also play MiniCrate!",
178-
// "Also play MiniCraft Mob Overload!",
174+
"Also play InfinityTale!",
175+
"Also play Minicraft Deluxe!",
176+
"Also play Alecraft!",
177+
"Also play Hackcraft!",
178+
"Also play MiniCrate!",
179+
"Also play MiniCraft Mob Overload!",
179180
"Now with better fishing!",
180181
"Now with better tools!",
181182
"Now with better chests!",
182183
"Now with better dungeons!",
183184
"Only on PlayMinicraft.com!",
184185
"Playminicraft.com is the bomb!",
185-
// "@MinicraftPlus on Twitter",
186+
"@MinicraftPlus on Twitter",
186187
"MinicraftPlus on Youtube",
187-
//"Join the Forums!",
188+
"Join the Forums!",
188189
"The Wiki is weak! Help it!",
189190
"Notch is Awesome!",
190191
"Dillyg10 is cool as Ice!",
@@ -264,7 +265,7 @@ public void render(Screen screen) {
264265
"Punch the Moon!",
265266
"This is String qq!",
266267
"Why?",
267-
//"You are null!",
268+
"You are null!",
268269
"hello down there!",
269270
"That guy is such a sly fox!",
270271
"Hola senor!",

0 commit comments

Comments
 (0)