-
Notifications
You must be signed in to change notification settings - Fork 0
/
map.go
51 lines (41 loc) · 1.41 KB
/
map.go
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
// Copyright (c) 2020, The Singularity Showdown Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import "github.com/goki/mat32"
type MapObj struct {
ObjType string
Pos mat32.Vec3
Scale mat32.Vec3
// Color string
}
type Map map[string]*MapObj
var DefScale = mat32.Vec3{1, 1, 1}
var FirstMap = Map{
// "BigComplex1": {"BigComplex", mat32.Vec3{0, 0, -30}, DefScale},
// "House1": {"House", mat32.Vec3{10, 0, -40}, DefScale},
// "House1": {"House", mat32.Vec3{0, 0, -10}, DefScale},
// "House2": {"House", mat32.Vec3{20, 0, -10}, DefScale},
"Block1": {"Block", mat32.Vec3{0, 0, -20}, DefScale},
"Block2": {"Block", mat32.Vec3{0, 0, 20}, DefScale},
"Road": {"Road", mat32.Vec3{0, 0, 0}, DefScale},
"TheWall1": {"TheWall", mat32.Vec3{0, 0, 0}, DefScale},
}
var SecondMap = Map{
"House1": {"House", mat32.Vec3{0, 5, -10}, DefScale},
}
var TheArenaMap = Map{
"ArenaWalls": {"ArenaWalls", mat32.Vec3{0, 0, 0}, DefScale},
"LavaBlockCenter": {"LavaBlockFour", mat32.Vec3{0, 0, 0}, DefScale},
"LavaSetup": {"LavaWallsSetup", mat32.Vec3{0, 0, 0}, DefScale},
}
type MapInfo struct {
Name string
MapData Map
}
type Maps map[string]*MapInfo
var AllMaps = Maps{
"FirstMap": {"Training Map 1", FirstMap},
"SecondMap": {"Training Map 2", SecondMap},
"TheArenaMap": {"The Arena", TheArenaMap},
}