enemy system
design
The enemies are spawned by the wave system, their 3d model is a mathematical shape. These shapes are the 5 Platonic solids, the 13 Archimedean solids and their dual the 13 Catalan solids, which amount to 31 shapes.
The enemies are arranged in a tree based on their topology using Conway polyhedron notation. Four operators are used: kis, ambo, dual, snub (k, a, d, s). From these operators all the shapes in the game can be obtained if the staring shape is a Tetrahedron (T). For example, an Octahedron (O) is an ambo Tetrahedron (aT): ) = aT. saT is the snub cube, from which the game is named. Each node of the tree is a shape and each edge represent an operation. The root is T and each operation is appended to the left of T, so the snub cube saT is connected to the Octahedron aT and aT is connected to T.
The other operators can be obtained by the four operator used: - truncation: t = dkd - expansion: e = aa - bevel: b = dkda = td - join: j = da - meta: m = kda - ortho: o = daa - gyro: g = dsd
topology graph - T = Tetrahedron - k, kT = Triakis Tetrahedron - d, dkdT = dkT = Truncated Tetrahedron - a, aT = O = Octahedron - k, kaT = Triakis Octahedron - d, dkaT = tC = Truncated Cube - a, aaT = Cuboctahedron - d, daaT = jC = Rhombic Dodecahedron - k, kdaaT = mC = Disdyakis Dodecahedron - d, dkdaaT = bC = taaT = Truncated Cuboctahedron - a, aaaT = eC = Rhombicuboctahedron - d, daaaT = oC = Deltoidal Icositetrahedron - d, daT = C = Cube - k, kdaT = Tetrakis Hexahedron - d, dkdaT = tO = Truncated Octahedron - s, saT = Snub Cube - d, dsaT = g = Pentagonal Icositetrahedron - s, sT = Icosahedron - k, ksT = Triakis icosahedron - d, dksT = Truncated Dodecahedron - a, asT = Icosidodecahedron - d, dasT = jD = Rhombic Triacontahedron - k, kdaaT = mD = Disdyakis Triacontahedron - d, dkdaaT = bD = Truncated Icosidodecahedron - a, aasT = eD = Rhombicosidodecahedron - d, daasT = oD = Deltoidal Hexecontahedron - d, dsT = D Dodecahedron - k, kdsT = Pentakis Dodecahedron - d, dkdsT = tI = Truncated Icosahedron - s, ssT = Snub Dodecahedron - d, dssT = gD = Pentagonal Hexecontahedron
effects
Enemies start with 10 lives. When lives reaches zero and the shape is T, the shape dies. Otherwise, an operator is lost and lives are set back to 10.
The enemies gain effects based on their topology: - T: no effect - k: speed, 20% - a: damage, 2x - d: duplicates on death (only when losing the d) - s: armored (multiplies life by 3), speed -20%
Effect stack multiplicativly, so aaaT does 2*2*2=8x
more damage, ssT is very slow and very armored.
Example for ssT:
1. after 90 damage, s is removed
5. after 30 damage, s is removed
6. after 10 damage, T dies.
Example for dkdasT:
1. after 30 damage, d is removed and 4 kdasT are spawned
2. after 30 damage, k is removed
3. after 30 damage, d is removed and 2 asT are spawned
4. after 30 damage, a is removed
5. after 30 damage, s is removed
6. after 10 damage, T dies.
Values of life(shape)
life(daaT) = 10 * 2*(10 * 3) = 70
life(ssT) = 90 + 30 + 10 = 130
life(dssT) = 90 + 2*(90 + 30 + 10) = 350
life(dkdasT) = 30 + 4*(30 + 30 + 2*(30 + 30 + 10)) = 830
models
- all 31 shapes
path subsystem
- hide/show
- instantiate
- follow
- destroy on end
hierarchy
- design topological hierarchy
stats
- name
- effects
- type/description
color change
- change based on resource color
hit effect
- dissolve
gui
- info detail