-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploying to gh-pages from @ 9628c1c 🚀
- Loading branch information
1 parent
1a6da52
commit 0b05dca
Showing
13 changed files
with
172 additions
and
31 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
( pixel fill example ) | ||
|10 @Screen &vector $2 &x $1 &y $1 &pixel $1 | ||
|
||
|100 | ||
( screen center ) | ||
#60 .Screen/x DEO | ||
#48 .Screen/y DEO | ||
|
||
( fill top left quadrant ) | ||
#e8 .Screen/pixel DEO | ||
( fill top right quadrant ) | ||
#69 .Screen/pixel DEO | ||
( fill bottom right quadrant ) | ||
#2c .Screen/pixel DEO | ||
( fill bottom left quadrant ) | ||
#ab .Screen/pixel DEO | ||
BRK | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
( pixel deo example ) | ||
|10 @Screen &vector $2 &x $1 &y $1 &pixel $1 | ||
|
||
|100 | ||
( fill bg ) | ||
#00 .Screen/x DEO | ||
#00 .Screen/y DEO | ||
#21 .Screen/pixel DEO | ||
|
||
( draw pixel at the center ) | ||
#60 .Screen/x DEO | ||
#48 .Screen/y DEO | ||
#08 .Screen/pixel DEO | ||
BRK | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
( sprite example ) | ||
|10 @Screen &vector $2 &x $1 &y $1 &pixel $1 &pad $3 &address $2 &sprite $1 | ||
|
||
|0100 ( -> ) | ||
#5c .Screen/x DEO | ||
#44 .Screen/y DEO | ||
;coco .Screen/address DEO2 | ||
#00 .Screen/sprite DEO | ||
BRK | ||
|
||
@coco | ||
0077 7700 | ||
0777 7770 | ||
6717 7176 | ||
7f77 77f7 | ||
7711 1177 | ||
7772 8777 | ||
7777 7777 | ||
7607 7067 | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
( sprite example ) | ||
|10 @Screen &vector $2 &x $1 &y $1 &pixel $1 &pad $3 &address $2 &sprite $1 | ||
|
||
%MOD { DUP2 DIV MUL SUB } ( a b -- a%b ) | ||
|
||
|0100 ( -> ) | ||
;on-frame .Screen/vector DEO2 | ||
;coco .Screen/address DEO2 | ||
|
||
( draw bg ) | ||
#21 .Screen/pixel DEO | ||
BRK | ||
|
||
@on-frame ( -> ) | ||
( clear foreground ) | ||
.Screen/x DEI | ||
#00 .Screen/x DEO | ||
#00 .Screen/y DEO | ||
#30 .Screen/pixel DEO | ||
|
||
( move ghost ) | ||
INC #c0 MOD .Screen/x DEO | ||
#44 .Screen/y DEO | ||
|
||
( draw ghost ) | ||
#10 .Screen/sprite DEO | ||
BRK | ||
|
||
@coco | ||
0077 7700 | ||
0777 7770 | ||
6717 7176 | ||
7f77 77f7 | ||
7711 1177 | ||
7772 8777 | ||
7777 7777 | ||
7607 7067 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters