Skip to content

Commit

Permalink
fix l15 push-exit bug, better single-step sensitivity
Browse files Browse the repository at this point in the history
  • Loading branch information
briansm committed Jun 3, 2016
1 parent 24156ae commit 3818bda
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 83 deletions.
2 changes: 1 addition & 1 deletion Crates3D.ino
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ int gameloop() {
k=read_keys();
while(!k) {first=1; delay(10); k=read_keys();} // idle loop
if (ALLOW_SAVE && arduboy.pressed(A_BUTTON) && arduboy.pressed(B_BUTTON)) save();
if (first) {delay(100); first=0;} // allows for fine movement
if (first) {delay(150); first=0;} // allows for fine movement
if (k>0 && k<5) move((k-1+angle)%4);
if (k==5) { // 'A' key pressed... rorate view or reset level...
angle++; if (angle==4) angle=0;
Expand Down
164 changes: 82 additions & 82 deletions c3dstd.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// This file is a straight byte-for-byte dump of the
// 'c3dstd.83p' level-data file that comes with the
// original TI-83 version of Crates3D..... (5290 bytes)
// original TI-83 version of Crates3D..... (5291 bytes)
// (New level files can be easily converted to this style.)

PROGMEM const unsigned char c3dstd[]={
42,42,84,73,56,51,42,42,26,10,0,67,114,97,116,101,115,32,51,
68,32,76,101,118,101,108,32,83,101,116,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,114,20,11,0,99,20,
6,67,51,68,83,84,68,0,0,99,20,97,20,67,51,68,83,116,97,110,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,113,20,11,0,98,20,
6,67,51,68,83,84,68,0,0,98,20,96,20,67,51,68,83,116,97,110,
100,97,114,100,0,16,0,21,0,1,21,31,0,145,0,0,145,0,240,145,
1,5,145,0,27,1,0,0,0,1,145,0,26,1,1,0,1,1,1,145,
0,26,1,0,0,1,145,0,28,1,1,0,1,1,145,0,28,1,0,0,
Expand Down Expand Up @@ -158,7 +158,7 @@ PROGMEM const unsigned char c3dstd[]={
145,0,6,30,145,0,4,32,32,145,0,4,8,0,0,8,145,0,8,48,
12,2,145,0,6,16,145,0,4,32,32,0,0,0,8,8,0,0,8,145,
0,8,48,12,2,145,0,6,48,145,0,4,32,32,96,32,32,40,8,8,
8,40,8,8,8,12,28,60,32,32,48,12,2,145,0,6,16,145,0,4,
8,40,8,8,8,12,4,60,32,32,48,12,2,145,0,6,16,145,0,4,
32,145,0,8,32,145,0,8,48,12,2,145,0,6,16,145,0,4,60,145,
0,8,32,145,0,8,48,12,2,0,0,0,4,4,4,28,4,4,4,12,
4,145,0,8,32,145,0,8,48,12,2,145,0,6,16,145,0,4,60,145,
Expand Down Expand Up @@ -189,84 +189,84 @@ PROGMEM const unsigned char c3dstd[]={
7,7,0,0,1,1,0,1,0,0,0,1,0,0,0,1,0,0,0,1,
0,1,145,0,15,1,145,0,15,1,145,0,15,1,145,0,15,145,1,17,
145,0,79,23,16,6,21,29,6,146,82,74,145,1,10,7,145,4,6,7,
1,7,145,4,9,148,255,72,0,0,0,1,145,0,14,56,145,0,9,2,
164,36,40,0,0,0,1,145,0,14,24,145,0,9,2,129,3,145,1,5,
145,0,14,24,145,0,9,2,128,145,0,5,1,145,0,8,145,8,6,216,
145,0,9,2,128,145,0,14,8,145,0,5,88,145,0,9,2,64,8,145,
0,13,8,145,0,5,24,145,0,9,2,64,145,8,7,24,145,8,12,24,
145,0,9,6,64,8,145,0,19,24,145,0,9,2,64,8,145,0,19,24,
145,0,9,2,64,8,145,0,19,24,145,0,9,2,64,8,145,0,19,24,
145,0,9,2,64,8,145,0,19,24,0,145,8,5,0,0,0,2,120,8,
120,145,96,12,224,96,224,96,120,8,8,120,40,40,40,8,8,0,0,14,
2,145,0,4,96,0,0,96,0,0,96,0,0,96,145,0,7,145,8,7,
0,0,14,145,0,5,96,0,0,96,0,0,96,0,0,96,145,0,16,14,
6,145,0,4,96,0,0,96,0,0,96,0,0,96,145,0,17,2,145,0,
4,145,32,11,96,32,145,0,14,2,145,0,4,96,0,0,96,0,0,96,
0,0,96,0,0,32,145,0,14,2,145,0,4,96,0,0,96,0,0,96,
0,0,96,0,0,32,145,0,14,2,145,0,4,96,0,0,96,0,0,96,
0,0,96,0,0,32,145,0,7,6,145,14,6,2,145,0,4,224,0,0,
224,0,0,224,0,0,224,0,0,32,145,0,7,6,56,145,112,4,12,2,
145,0,4,96,0,0,96,0,0,96,0,0,96,0,0,32,145,0,7,6,
56,145,24,4,28,2,145,0,4,96,0,0,96,0,0,96,0,0,96,0,
0,32,145,0,7,145,6,7,2,22,1,3,2,4,3,145,0,68,14,2,
2,3,1,1,3,2,2,3,1,3,145,2,4,6,2,6,2,6,145,2,
4,145,0,17,8,145,0,13,2,145,0,17,8,145,0,13,2,145,0,17,
24,145,0,13,2,145,0,17,4,145,0,13,2,145,0,17,4,145,0,13,
2,145,0,17,12,145,0,13,2,145,0,17,2,145,0,13,2,145,0,17,
2,145,0,13,2,145,0,17,2,145,0,4,2,14,8,4,4,4,145,2,
4,145,0,6,145,8,5,145,0,6,2,145,0,4,14,145,0,15,8,0,
0,0,8,145,0,6,2,145,0,4,8,145,0,15,8,0,0,0,8,145,
0,6,2,145,0,4,8,145,0,15,8,0,0,0,8,15,1,15,8,8,
8,10,26,10,10,11,11,3,145,2,8,145,0,6,8,8,8,56,32,32,
224,32,0,0,0,2,0,2,0,0,8,145,0,7,2,145,0,13,32,145,
0,4,2,2,2,0,0,8,145,0,7,2,145,0,4,145,4,7,0,0,
32,145,0,9,8,145,0,7,2,145,0,4,145,4,7,0,0,32,145,0,
9,56,8,8,4,4,4,2,6,2,145,0,4,4,12,4,28,4,4,4,
0,0,96,145,0,9,8,8,145,0,6,2,145,0,4,145,4,7,0,0,
32,145,0,22,4,4,4,12,4,4,4,60,32,32,145,0,22,145,4,7,
145,0,25,22,1,2,3,1,5,145,0,36,145,16,7,145,0,25,145,16,
7,145,0,10,16,16,145,0,10,62,2,2,30,16,80,176,80,145,16,4,
48,16,16,48,16,16,31,1,95,16,16,16,48,16,16,48,16,16,16,145,
0,4,145,16,7,145,0,10,16,16,145,0,8,8,145,0,4,145,16,7,
145,0,10,16,16,145,0,8,8,145,0,31,8,145,0,31,8,145,0,31,
12,145,0,7,1,145,0,5,1,145,0,17,14,145,0,6,145,1,9,145,
0,6,145,1,6,7,0,0,0,15,145,0,7,1,145,0,5,1,145,0,
7,5,13,5,5,13,1,145,7,4,1,145,0,7,1,145,0,5,1,145,
0,7,145,1,6,7,0,0,0,1,145,0,7,1,145,0,5,3,145,0,
7,145,1,6,7,0,0,0,1,145,0,7,1,145,0,5,1,145,0,7,
1,7,145,4,9,148,255,72,0,0,0,1,145,0,14,24,145,0,9,2,
164,36,40,0,0,0,1,145,0,14,24,145,0,9,2,129,145,1,6,145,
0,14,24,145,0,9,2,128,145,0,5,1,145,0,8,145,8,6,216,145,
0,9,2,128,145,0,14,8,145,0,5,88,145,0,9,2,64,8,145,0,
13,8,145,0,5,24,145,0,9,2,64,145,8,7,24,145,8,12,24,145,
0,9,6,64,8,145,0,19,24,145,0,9,2,64,8,145,0,19,24,145,
0,9,2,64,8,145,0,19,24,145,0,9,2,64,8,145,0,19,24,145,
0,9,2,64,8,145,0,19,24,0,145,8,5,0,0,0,2,120,8,120,
145,96,12,224,96,224,96,120,8,8,120,40,40,40,8,8,0,0,14,2,
145,0,4,96,0,0,96,0,0,96,0,0,96,145,0,7,145,8,7,0,
0,14,145,0,5,96,0,0,96,0,0,96,0,0,96,145,0,16,14,6,
145,0,4,96,0,0,96,0,0,96,0,0,96,145,0,17,2,145,0,4,
145,32,11,96,32,145,0,14,2,145,0,4,96,0,0,96,0,0,96,0,
0,96,0,0,32,145,0,14,2,145,0,4,96,0,0,96,0,0,96,0,
0,96,0,0,32,145,0,14,2,145,0,4,96,0,0,96,0,0,96,0,
0,96,0,0,32,145,0,7,6,145,14,6,2,145,0,4,224,0,0,224,
0,0,224,0,0,224,0,0,32,145,0,7,6,56,145,112,4,12,2,145,
0,4,96,0,0,96,0,0,96,0,0,96,0,0,32,145,0,7,6,56,
145,24,4,28,2,145,0,4,96,0,0,96,0,0,96,0,0,96,0,0,
32,145,0,7,145,6,7,2,22,1,3,2,4,3,145,0,68,14,2,2,
3,1,1,3,2,2,3,1,3,145,2,4,6,2,6,2,6,145,2,4,
145,0,17,8,145,0,13,2,145,0,17,8,145,0,13,2,145,0,17,24,
145,0,13,2,145,0,17,4,145,0,13,2,145,0,17,4,145,0,13,2,
145,0,17,12,145,0,13,2,145,0,17,2,145,0,13,2,145,0,17,2,
145,0,13,2,145,0,17,2,145,0,4,2,14,8,4,4,4,145,2,4,
145,0,6,145,8,5,145,0,6,2,145,0,4,14,145,0,15,8,0,0,
0,8,145,0,6,2,145,0,4,8,145,0,15,8,0,0,0,8,145,0,
6,2,145,0,4,8,145,0,15,8,0,0,0,8,15,1,15,8,8,8,
10,26,10,10,11,9,3,145,2,8,145,0,6,8,8,8,56,32,32,224,
32,0,0,0,2,0,2,0,0,8,145,0,7,2,145,0,13,32,145,0,
4,2,2,2,0,0,8,145,0,7,2,145,0,4,145,4,7,0,0,32,
145,0,9,8,145,0,7,2,145,0,4,145,4,7,0,0,32,145,0,9,
56,8,8,4,4,4,2,6,2,145,0,4,4,12,4,28,4,4,4,0,
0,96,145,0,9,8,8,145,0,6,2,145,0,4,145,4,7,0,0,32,
145,0,22,4,4,4,12,4,4,4,60,32,32,145,0,22,145,4,7,145,
0,25,22,1,2,3,1,5,145,0,36,145,16,7,145,0,25,145,16,7,
145,0,10,16,16,145,0,10,62,2,2,30,16,80,176,80,145,16,4,48,
16,16,48,16,16,31,1,95,16,16,16,48,16,16,48,16,16,16,145,0,
4,145,16,7,145,0,10,16,16,145,0,8,8,145,0,4,145,16,7,145,
0,10,16,16,145,0,8,8,145,0,31,8,145,0,31,8,145,0,31,12,
145,0,7,1,145,0,5,1,145,0,17,14,145,0,6,145,1,9,145,0,
6,145,1,6,7,0,0,0,15,145,0,7,1,145,0,5,1,145,0,7,
5,13,5,5,13,1,145,7,4,1,145,0,7,1,145,0,5,1,145,0,
7,145,1,6,7,0,0,0,1,145,0,7,1,145,0,5,3,145,0,7,
145,1,6,7,0,0,0,1,145,0,7,1,145,0,5,1,145,0,7,145,
1,6,7,0,0,0,1,0,145,2,6,5,145,2,5,1,1,7,8,8,
1,6,7,0,0,0,1,145,0,7,1,145,0,5,1,145,0,7,145,1,
6,7,0,0,0,1,0,145,2,6,5,145,2,5,1,1,7,8,8,0,
0,0,145,1,6,7,0,0,0,1,0,2,145,0,5,1,145,0,9,8,
0,0,0,145,1,6,7,0,0,0,1,0,2,145,0,5,1,145,0,9,
8,0,0,0,145,1,6,7,0,0,0,1,0,2,145,0,5,1,145,0,
9,8,0,0,0,145,1,6,7,145,1,4,0,2,145,0,5,1,0,0,
145,1,7,8,0,0,0,145,1,6,7,0,0,0,1,0,2,145,0,5,
1,0,0,1,145,0,5,1,8,0,0,0,145,1,6,31,145,0,5,2,
145,0,5,1,0,0,145,1,5,0,1,8,0,0,0,145,5,5,7,7,
145,0,5,2,145,1,6,145,0,6,1,0,1,8,0,0,0,145,1,6,
7,145,0,17,1,3,5,9,15,145,1,4,145,0,10,16,2,6,16,31,
1,145,0,25,2,145,0,20,2,6,6,10,26,34,98,145,130,5,128,128,
128,130,64,32,145,0,24,145,2,6,14,16,145,0,25,2,0,0,0,2,
145,0,27,3,0,0,0,2,0,2,145,0,25,1,0,0,145,2,4,145,
0,25,1,145,0,5,3,145,0,25,1,145,0,5,3,145,0,25,1,145,
0,5,15,0,0,64,145,0,5,32,145,0,5,64,145,0,5,64,145,0,
4,1,145,0,5,7,0,64,192,145,64,5,32,145,64,5,192,145,64,6,
145,0,4,3,2,2,2,0,0,3,0,0,64,145,0,5,32,145,0,5,
64,145,0,5,64,145,0,4,145,2,4,0,0,1,0,0,64,145,0,5,
32,145,0,5,64,145,0,5,64,145,0,4,145,2,4,0,0,1,0,0,
64,145,0,5,32,145,0,5,64,145,0,5,64,145,0,4,145,2,4,0,
0,1,0,0,64,145,0,5,32,145,0,5,64,145,0,5,64,145,0,4,
145,2,4,0,0,1,0,0,64,145,0,5,32,145,0,5,64,145,0,5,
64,145,0,4,145,2,4,0,0,1,0,145,32,7,96,145,32,8,0,32,
32,96,145,32,4,62,6,6,62,16,16,31,0,0,64,145,0,5,32,145,
0,5,64,145,0,5,64,145,0,4,145,2,4,0,0,16,0,0,64,145,
0,5,32,145,0,5,64,145,0,5,64,145,0,4,145,2,4,0,0,16,
0,0,64,145,0,5,32,145,0,5,64,145,0,5,64,145,0,4,145,2,
4,0,0,16,0,0,64,145,0,5,32,145,0,5,64,145,0,5,64,145,
0,4,145,2,4,0,0,16,0,0,64,145,0,5,32,145,0,5,64,145,
0,5,64,145,0,4,145,2,4,0,0,16,0,64,192,145,64,5,32,145,
64,5,192,145,64,6,145,0,4,145,2,4,6,8,16,0,0,64,145,0,
5,32,145,0,5,64,145,0,5,64,145,0,4,145,2,4,0,0,0,20,
9,1,20,5,4,145,0,0,145,0,0,145,0,65,145,1,9,145,0,23,
145,1,9,145,0,23,1,1,15,1,31,1,7,1,1,145,0,23,145,1,
9,145,0,23,145,1,9,145,0,54,216,183,183,
8,0,0,0,145,1,6,7,145,1,4,0,2,145,0,5,1,0,0,145,
1,7,8,0,0,0,145,1,6,7,0,0,0,1,0,2,145,0,5,1,
0,0,1,145,0,5,1,8,0,0,0,145,1,6,31,145,0,5,2,145,
0,5,1,0,0,145,1,5,0,1,8,0,0,0,145,5,5,7,7,145,
0,5,2,145,1,6,145,0,6,1,0,1,8,0,0,0,145,1,6,7,
145,0,17,1,3,5,9,15,145,1,4,145,0,10,16,2,6,16,31,1,
145,0,25,2,145,0,20,2,6,6,10,26,34,98,145,130,5,128,128,128,
130,64,32,145,0,24,145,2,6,14,16,145,0,25,2,0,0,0,2,145,
0,27,3,0,0,0,2,0,2,145,0,25,1,0,0,145,2,4,145,0,
25,1,145,0,5,3,145,0,25,1,145,0,5,3,145,0,25,1,145,0,
5,15,0,0,64,145,0,5,32,145,0,5,64,145,0,5,64,145,0,4,
1,145,0,5,7,0,64,192,145,64,5,32,145,64,5,192,145,64,6,145,
0,4,3,2,2,2,0,0,3,0,0,64,145,0,5,32,145,0,5,64,
145,0,5,64,145,0,4,145,2,4,0,0,1,0,0,64,145,0,5,32,
145,0,5,64,145,0,5,64,145,0,4,145,2,4,0,0,1,0,0,64,
145,0,5,32,145,0,5,64,145,0,5,64,145,0,4,145,2,4,0,0,
1,0,0,64,145,0,5,32,145,0,5,64,145,0,5,64,145,0,4,145,
2,4,0,0,1,0,0,64,145,0,5,32,145,0,5,64,145,0,5,64,
145,0,4,145,2,4,0,0,1,0,145,32,7,96,145,32,8,0,32,32,
96,145,32,4,62,6,6,62,16,16,30,0,0,64,145,0,5,32,145,0,
5,64,145,0,5,64,145,0,4,145,2,4,0,0,16,0,0,64,145,0,
5,32,145,0,5,64,145,0,5,64,145,0,4,145,2,4,0,0,16,0,
0,64,145,0,5,32,145,0,5,64,145,0,5,64,145,0,4,145,2,4,
0,0,16,0,0,64,145,0,5,32,145,0,5,64,145,0,5,64,145,0,
4,145,2,4,0,0,16,0,0,64,145,0,5,32,145,0,5,64,145,0,
5,64,145,0,4,145,2,4,0,0,16,0,64,192,145,64,5,32,145,64,
5,192,145,64,6,145,0,4,145,2,4,6,8,16,0,0,64,145,0,5,
32,145,0,5,64,145,0,5,64,145,0,4,145,2,4,0,0,0,20,9,
1,20,5,4,145,0,0,145,0,0,145,0,65,145,1,9,145,0,23,145,
1,9,145,0,23,1,1,15,1,31,1,7,1,1,145,0,23,145,1,9,
145,0,23,145,1,9,145,0,54,152,183,183,183,
};
Binary file added screenshot1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshot2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3818bda

Please sign in to comment.