-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlayers-game.cabal
137 lines (132 loc) · 4.18 KB
/
layers-game.cabal
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
cabal-version: >=1.10
name: layers-game
version: 0.8.0
license: BSD3
license-file: LICENSE
maintainer: [email protected]
author: Daniel Trstenjak
synopsis: A prototypical 2d platform game.
description:
/A prototypical 2d platform game/
.
<<http://raw.githubusercontent.com/dan-t/layers/master/layers.png>>
.
/Player Controls/
.
> left/right arrow key = moving left/right
> space/up arrow key = jumping
> tab key = switch layer
> q/escape key = exit game
.
/Flags/
.
> -e --editmode Start layers in edit mode
> -l --loadlevelsfrom=FILE Load levels from file
> -s --savelevelsto=FILE Save levels to file (default='LayersData.hs')
> -h --help Display help message
> -v --version Print version information
.
/Edit Mode/
.
>a key = add new level after the current one and switch to it
>A key = add new level before the current one and switch to it
>n key = goto next level
>N key = goto previous level
>m key = move current level after the next one
>M key = move current level before the previous one
>l key = reload current level
>s key = save levels to file specified by '-s'
>r key = remove game object under mouse cursor
>p key = place a star at mouse cursor position
>e key = place an enemy at mouse cursor position
>u key = start changing path of platform/enemy under mouse cursor,
> define path points by moving the mouse and clicking
> left mouse button, press 'u' again to end path definition
>
>left mouse button + ctrl = move game object under mouse cursor
> (hold mouse button pressed)
>left mouse button + shift = resize platform under mouse cursor
> (hold mouse button pressed)
>left mouse button = define new platform by holding the
> button pressed and moving the mouse
>mouse wheel = change scale of orthographic projection
category: Game
build-type: Simple
data-files:
Ressources/Images/*.png
Ressources/*.hs
Ressources/Fonts/*.glf
extra-source-files:
src/Utils.cpp
layers.png
source-repository head
type: git
location: https://github.com/dan-t/layers
executable layers
main-is: Main.hs
cpp-options: -DCABAL
cc-options: -Wno-unused-result
hs-source-dirs: src
other-modules:
Paths_layers_game
AppData
Ressources
GameData.Entity
GameData.Enemy
GameData.Level
GameData.Layer
GameData.Star
GameData.Animation
GameData.Data
GameData.Boundary
GameData.Player
GameData.Platform
Defaults
Rendering.Ressources
Rendering.Renderer
Entity.Velocity
Entity.Intersect
Entity.Render
Entity.Update
Entity.Bound
Entity.Position
Entity.Id
States.EditModeRunning
States.MovingEntity
States.DefiningAnimation
States.IntroRunning
States.CreatingPlatform
States.GameRunning
States.ResizingPlatform
Utils
Convert.ToGameData
Convert.ToFileData
Level.ResolveIntersection
Level.Reload
Level.Render
Level.Update
LayersArgs
FileData.Data2
FileData.Data1ToData2
FileData.ApplyToEntity
FileData.Data1
Callback.Common
Callback.MouseMove
Callback.Key
Callback.MouseButton
Event
default-language: Haskell2010
default-extensions: CPP
include-dirs: src
ghc-options: -pgmPcpphs -optP--cpp
build-depends:
base >3 && <5,
mtl >=2.1.3.1 && <2.4,
pretty-show >=1.6.7 && <1.11,
cmdargs >=0.10.7 && <0.11,
data-lens-light >=0.1.2.4 && <0.2,
OpenGLRaw >=3.0.0.0 && <3.4,
GLFW-b >=1.0 && <3.4,
ListZipper >=1.2.0.2 && <1.3,
composition >=1.0.1.0 && <1.1,
Gamgine >=0.4 && <0.8