-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompos.lua
More file actions
executable file
·40 lines (34 loc) · 1006 Bytes
/
Copy pathcompos.lua
File metadata and controls
executable file
·40 lines (34 loc) · 1006 Bytes
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
-- ======================================z=================
-- helper functions
-- =======================================================
require('core/core')
require('core/debugging')
require('core/drawing')
-- =======================================================
-- components (compos!)
-- =======================================================
require('components/parallax')
require('components/health')
require('components/velocity')
require('components/collider')
require('components/gravity')
require('components/sprite')
require('components/age')
require('components/patrol')
require('components/state')
-->8
-- your code here!
function _init()
cls()
color(12)
print('\n\n\n\n\nwelcome to compos!\nhack this cart by adding your\ncode to tab #1, include\nspecific components using\npicotool, or hack\none of the demos in this repo.')
color(8)
print('\n\nhave fun!')
compos_init()
end
function _update()
compos_update()
end
function _draw()
compos_draw()
end