Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 326cc970c1 | |||
| 429a09ee38 | |||
| 2a5469baa3 | |||
| 1578c01bab | |||
| 299b55429c | |||
| b56202d487 | |||
| 6e51a1284d | |||
| 5e0668003e | |||
| c26df0c97e |
1
frontend
Submodule
1
frontend
Submodule
Submodule frontend added at 1437c6d712
77
uml/main.wsd
77
uml/main.wsd
@@ -1,5 +1,74 @@
|
||||
@startuml
|
||||
class Test {
|
||||
|
||||
@startuml GameEngine
|
||||
package Game {
|
||||
class Game {
|
||||
+ name: String
|
||||
+ levels[]: Level
|
||||
+ currentLevel: Level
|
||||
+ gameJSON: String
|
||||
+ SetLevel(Level lvl)
|
||||
}
|
||||
class Level {
|
||||
+ name: String
|
||||
+ gameObjects[]: gameObject
|
||||
+ load()
|
||||
+ start()
|
||||
+ draw()
|
||||
+ update()
|
||||
+ destroy(int id)
|
||||
}
|
||||
|
||||
class GameObject {
|
||||
+ id: int
|
||||
+ x: double
|
||||
+ y: double
|
||||
+ width: double
|
||||
+ height: double
|
||||
+ img: Image
|
||||
+ layer: int
|
||||
+ load()
|
||||
+ unload()
|
||||
+ start()
|
||||
+ draw()
|
||||
+ update()
|
||||
}
|
||||
}
|
||||
@enduml
|
||||
package Frontend {
|
||||
|
||||
}
|
||||
|
||||
package Backend {
|
||||
|
||||
}
|
||||
package Builder {
|
||||
|
||||
}
|
||||
|
||||
@enduml
|
||||
|
||||
|
||||
@startjson mainGame
|
||||
{
|
||||
"name":"GameName",
|
||||
"levels": ["Level1", "Level2"]
|
||||
}
|
||||
@endjson
|
||||
|
||||
@startjson level1
|
||||
{
|
||||
"name":"Level1",
|
||||
"objects": ["object1", {
|
||||
"name":"gameObject2",
|
||||
"X":0,
|
||||
"Y":0,
|
||||
"Width":100,
|
||||
"Height":100,
|
||||
"img":"Image",
|
||||
"layer":1,
|
||||
"load":"load()",
|
||||
"start":"start()",
|
||||
"update":"update()",
|
||||
"unload":"unload()"
|
||||
}
|
||||
]
|
||||
}
|
||||
@endjson
|
||||
73
uml/main2.wsd
Normal file
73
uml/main2.wsd
Normal file
@@ -0,0 +1,73 @@
|
||||
@startuml GameEngine
|
||||
package Game {
|
||||
class Game {
|
||||
+ name: String
|
||||
+ levels[]: Level
|
||||
+ currentLevel: Level
|
||||
+ gameJSON: String
|
||||
+ SetLevel(Level lvl)
|
||||
}
|
||||
class Level {
|
||||
+ name: String
|
||||
+ gameObjects[]: GameObject
|
||||
+ inputs[]: Input
|
||||
+ load()
|
||||
+ start()
|
||||
+ draw()
|
||||
+ update()
|
||||
+ destroy(int id)
|
||||
}
|
||||
|
||||
class GameObject {
|
||||
+ id: int
|
||||
+ x: double
|
||||
+ y: double
|
||||
+ width: double
|
||||
+ height: double
|
||||
+ rotation: double
|
||||
+ img: Image
|
||||
+ layer: int
|
||||
+ load()
|
||||
+ unload()
|
||||
+ start()
|
||||
+ draw()
|
||||
+ update()
|
||||
}
|
||||
class Input {
|
||||
+ key: String
|
||||
+ type: String
|
||||
+ listen()
|
||||
+ action()
|
||||
}
|
||||
}
|
||||
package Frontend {
|
||||
|
||||
}
|
||||
|
||||
package Backend {
|
||||
|
||||
}
|
||||
package Builder {
|
||||
|
||||
}
|
||||
|
||||
json MainGameJSON{
|
||||
"name":"GameName",
|
||||
"levels": [{
|
||||
"name":"Level1",
|
||||
"objects": ["object1", {
|
||||
"name":"gameObject2",
|
||||
"X":0,
|
||||
"Y":0,
|
||||
"Width":100,
|
||||
"Height":100,
|
||||
"Rotation":90,
|
||||
"imgSRC":"Image",
|
||||
"layer":1
|
||||
|
||||
}
|
||||
]
|
||||
}, "Level2"]
|
||||
}
|
||||
|
||||
@enduml
|
||||
Reference in New Issue
Block a user