Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
interactives
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HTML6
interactives
Commits
439e7f67
Commit
439e7f67
authored
Sep 18, 2019
by
Adrian Cochrane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Note that there'd be utility functions
parent
d5a5a3d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
std.func
std.func
+6
-2
No files found.
std.func
View file @
439e7f67
...
...
@@ -23,6 +23,7 @@ type Time = Time Real # Unix time
type Duration = Duration Real # In seconds
type Timeline a = Change Duration a Timeline a | Future Duration Timeline a | End
# Inputs
type MouseButton = Primary | Secondary | Middle
type Coord = Coord Real Real
type Mouse = Scroll Signed Signed |
...
...
@@ -32,7 +33,10 @@ type Keyboard = Down Char | Up Char | Press Char
type Touch = Down Coord | Move Coord | Up Coord
type GameControl = # TODO
type Color = Color Byte Byte Byte Byte
# Outputs
type Color = Color Byte Byte Byte Byte # red green blue opacity
type Rect = Rect Coord Coord # topleft size
type Image = Fill Color Rect | Sprite Image Image # foreground background, with foreground clipped to background
type Sound = Sound List Tuple Real Real
\ No newline at end of file
type Sound = Sound List Tuple Real Real
# TODO functions to operate on these types
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment