Skip to content

Commit 350db29

Browse files
authored
Update life.js
1 parent bf12bbd commit 350db29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

public/life.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const targetElement = document.getElementById('life')
22

3+
const UPDATE_INTERVAL = 300
34
const PADDING = 5
45
const DISPLAY_WIDTH = 48
56
const DISPLAY_HEIGHT = 16
@@ -80,7 +81,7 @@ let lifeInterval = setInterval(() => {
8081
}
8182
}
8283
state = new_state
83-
}, 100)
84+
}, UPDATE_INTERVAL)
8485

8586
const handleInteraction = (e) => {
8687
const rect = targetElement.getBoundingClientRect()

0 commit comments

Comments
 (0)