Skip to content

Commit d558204

Browse files
committed
[*] dark outside border
1 parent a973e2a commit d558204

File tree

6 files changed

+19
-4
lines changed

6 files changed

+19
-4
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
# collider run artifacts
33
.meta.cache
44

5+
# collider dist output
6+
*.out
7+
dist
8+
59

610
# MacOS
711
.DS_Store

clean

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
jam clean
4+

mod/env/style.js

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const style = {
44

55
color: {
66
background: '#ab9b8e',
7+
outside: '#847875',
78
title: '#49343d',
89
status: '#d2c9a5',
910
statusBack: '#392945DE',

mod/lab/pond/_pond.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ const _pond = {
4444
},
4545

4646
onShow: function() {
47-
log('showing pond')
47+
lab.background = env.style.color.outside
4848
lab.hud.show()
4949
},
5050

5151
onHide: function() {
52-
log('hiding pond')
5352
lab.hud.hide()
53+
lab.background = env.style.color.background
5454
},
5555

5656
selfTarget: function() {

mod/lab/pond/ground.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
function draw() {
2+
const pond = this.__
3+
fill(env.style.color.background)
4+
rect(0, 0, pond.w, pond.h)
5+
}

mod/lab/screen/title/cellTitle.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
function draw(){
2-
image(res.cell.froggy, rx(0.5) - 50, ry(0.7) - 50, 100, 100)
3-
}
2+
const W = ry(.15)
3+
image(res.cell.froggy, rx(0.5) - .5*W, ry(0.7) - .5*W, W, W)
4+
}

0 commit comments

Comments
 (0)