summaryrefslogtreecommitdiffstats
path: root/src/forth
diff options
context:
space:
mode:
authorBrian Cully <bjc@spork.org>2025-12-18 20:28:53 -0500
committerBrian Cully <bjc@spork.org>2025-12-18 20:36:39 -0500
commit0f990eb95a9ef3a1be8847a863f7216a8625692a (patch)
tree9742a3730168e0ed9b1b6d259a79a430eda71f31 /src/forth
parent8e65c1c439b2fc0d0ae5d8482e9350e283cde882 (diff)
downloadautomathon-0f990eb95a9ef3a1be8847a863f7216a8625692a.tar.gz
automathon-0f990eb95a9ef3a1be8847a863f7216a8625692a.zip
add bouncing when hitting arena edge
Diffstat (limited to 'src/forth')
-rw-r--r--src/forth/vm.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/forth/vm.rs b/src/forth/vm.rs
index 564a647..25ed516 100644
--- a/src/forth/vm.rs
+++ b/src/forth/vm.rs
@@ -4,9 +4,9 @@ use std::ops::Index;
pub type DataStackType = isize;
-const MIN_SPEED: DataStackType = 0;
-const MAX_SPEED: DataStackType = 10;
-const UNITS_PER_ROTATION: DataStackType = 360;
+pub const MIN_SPEED: DataStackType = 0;
+pub const MAX_SPEED: DataStackType = 10;
+pub const UNITS_PER_ROTATION: DataStackType = 360;
#[derive(Clone, Debug, Eq, PartialEq)]
pub enum OpCode {