-
Notifications
You must be signed in to change notification settings - Fork 17
/
notes.txt
63 lines (52 loc) · 2.79 KB
/
notes.txt
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
//Text
basicAtlas := text.NewAtlas(basicfont.Face7x13, text.ASCII)
layout := gui.LayoutCreate(exploreState.Map.CamX, exploreState.Map.CamY, win)
layout.Contract("screen", 0, 0)
layout.SplitHorz("screen", "top", "bottom", 0.12, 2)
layout.SplitVert("bottom", "left", "party", 0.726, 2)
layout.SplitHorz("left", "menu", "gold", 0.7, 2)
player_room, collisionLayer, collisionLayerName := maps_db.MapsDB["player_room"]()
exploreState = game_states.ExploreStateCreate(stack, player_room, collisionLayer, collisionLayerName, win)
//Add NPCs
exploreState.AddNPC(character_states.NPC1(exploreState.Map))
exploreState.AddNPC(character_states.NPC2(exploreState.Map))
//Actions & Triggers
gUpDoorTeleport := ActionTeleport(exploreState.Map, globals.Direction{7, 2})
gDownDoorTeleport := ActionTeleport(exploreState.Map, globals.Direction{9, 10})
gTriggerTop := game_map.TriggerCreate(gDownDoorTeleport, nil, nil)
gTriggerBottom := game_map.TriggerCreate(
gUpDoorTeleport,
nil,
nil,
)
gTriggerFlowerPot := game_map.TriggerCreate(
nil,
nil,
func(entity *game_map.Entity) {
exploreState.Stack.PushFitted(300, 250, "Dude, snakes.. run!")
},
)
exploreState.Map.SetTrigger(7, 2, gTriggerTop)
exploreState.Map.SetTrigger(9, 10, gTriggerBottom)
exploreState.Map.SetTrigger(8, 6, gTriggerFlowerPot)
//State Stack
stack.Push(&exploreState)
choices := []string{"Menu 1", "lola", "Menu 2", "Menu 03", "Menu 04", "Menu 05", "Menu 06", "Menu 007", "", "", "", "Menu @_@"}
stack.PushSelectionMenu(
-100, 250, 400, 200,
"Select from the list below",
choices,
func(i int, item string) {
fmt.Println(i, item)
})
//stack.PushFixed(
// -150, 10, 300, 100,
// "A nation can survive its fools, and even the ambitious. But it cannot survive treason from within. An enemy at the gates is less formidable, for he is known and carries his banner openly. But the traitor moves amongst those within the gate freely, his sly whispers rustling through all the alleys, heard in the very halls of government itself. For the traitor appears not a traitor; he speaks in accents familiar to his victims, and he wears their face and their arguments, he appeals to the baseness that lies deep in the hearts of all men. He rots the soul of a nation, he works secretly and unknown in the night to undermine the pillars of the city, he infects the body politic so that it can no longer resist. A murderer is less to fear. Jai Hind I Love India <3 ",
// "Ajinkya", globals.AvatarPng)
stack.PushFitted(100, 100, "I should better get moving...")
stack.PushFitted(200, 200, "Where Am I")
fade1 := gui.FadeScreenCreate(stack, 1, 0, 1.5, pixel.V(exploreState.Map.CamX, exploreState.Map.CamY))
stack.Push(&fade1)
stack.PushFitted(0, 0, "Ah, this headache!!")
ign_menu := game_states.InGameMenuStateCreate(stack, win)
stack.Push(ign_menu)