about summary refs log tree commit diff stats
path: root/data/maps/daedalus/rooms/Blue Room.txtpb
blob: 1d060d8fcdcfb039222fc9e8897a97e5eed486c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: "Blue Room"
panel_display_name: "Blue Room"
panels {
  name: "RED"
  path: "Panels/Blue Room/panel_1"
  clue: "red"
  answer: "ginger"
  symbols: SUN
}
panels {
  name: "WESTWARD"
  path: "Panels/Blue Room/panel_2"
  clue: "westward"
  answer: "mustard"
  symbols: SPARKLES
}
panels {
  name: "RANGE"
  path: "Panels/Blue Room/panel_3"
  clue: "range"
  answer: "oregano"
  symbols: SPARKLES
  symbols: ANAGRAM
}
panels {
  name: "PEPPER"
  path: "Panels/Blue Room/panel_4"
  clue: "pepper"
  answer: "salt"
  symbols: EXAMPLE
}
panels {
  name: "TIME"
  path: "Panels/Blue Room/panel_5"
  clue: "time"
  answer: "thyme"
  symbols: ZERO
}
panels {
  name: "SALT"
  path: "Panels/Blue Room/panel_6"
  clue: "salt"
  answer: "pepper"
  symbols: EXAMPLE
}
panels {
  name: "BULB"
  path: "Panels/Blue Room/panel_7"
  clue: "bulb"
  answer: "garlic"
  symbols: AGE
}
panels {
  name: "PAPA"
  path: "Panels/Blue Room/panel_8"
  clue: "papa"
  answer: "paprika"
  symbols: SPARKLES
}
panels {
  name: "MINT"
  path: "Panels/Blue Room/panel_9"
  clue: "mint"
  answer: "pepper"
  symbols: EXAMPLE
}
panels {
  name: "CELEBRATORY"
  path: "Panels/Blue Room/panel_10"
  clue: "celebratory"
  answer: "celery"
  symbols: SPARKLES
}
panels {
  name: "DETECTIVE"
  path: "Panels/Blue Room/panel_11"
  clue: "detective"
  answer: "basil"
  symbols: EXAMPLE
}
class="w"> static void render(JDialog gameFrame) { if (enabled) { VolatileImage vImg = gameFrame.createVolatileImage(Game.WIDTH, Game.HEIGHT); render(gameFrame, vImg); Image img = null; do { int returnCode = vImg.validate(gameFrame.getGraphicsConfiguration()); if (returnCode == VolatileImage.IMAGE_RESTORED) { render(gameFrame, vImg); } else if (returnCode == VolatileImage.IMAGE_INCOMPATIBLE) { vImg = gameFrame.createVolatileImage(Game.WIDTH, Game.HEIGHT); render(gameFrame, vImg); } img = vImg; } while (vImg.contentsLost()); gameFrame.getContentPane().getGraphics().drawImage(img, 0, 0, gameFrame.getContentPane().getWidth(), gameFrame.getContentPane().getHeight(), gameFrame); img.flush(); Toolkit.getDefaultToolkit().sync(); if (tileAnimationFrame == 15) { tileAnimationFrame = 0; } else { tileAnimationFrame++; } } } private static void render(JDialog gameFrame, VolatileImage vImg) { if (vImg.validate(gameFrame.getGraphicsConfiguration()) == VolatileImage.IMAGE_INCOMPATIBLE) { vImg = gameFrame.createVolatileImage(Game.WIDTH, Game.HEIGHT); } Graphics2D g = vImg.createGraphics(); if (transition != null) { transition.render(g); } Game.getGameState().render(g); g.dispose(); } public static void transition(Transition transition, Runnable callback) { setTransition(transition); new Thread(new TransitionCallbackThread(callback)).start(); } private static Transition transition; public static Transition getTransition() { return transition; } public static void setTransition(Transition transition) { Display.transition = transition; } private static boolean enabled = true; public static boolean isEnabled() { return enabled; } public static void setEnabled(boolean aEnabled) { enabled = aEnabled; } }