First tentative experiments with Spin
Dr_Acula
Posts: 5,484
To paraphrase Newton, If I have achieved more, it is by standing on the shoulders of giants.
The giants in question include many on this forum, but in particular, Jeff Ledger for the terminal code, Vince Briel for the PockeTerm and Cluso for inspiring me to fire up the propeller.
I wanted to play some games! The N8VEM has a number of text based games, including Space Invaders, Tetris and Pacman. These use some arcane escape codes to move the cursor around, and while the PockeTerm has vt100 codes, it needed some extra ones for the Teleterm and Wyse monitors. I have trapped these in a vb.net monitor, so I have some idea what they are. So - time to translate vb.net into spin. And work within the parameters of the PockeTerm, which uses a different (and probably better) way to build up an escape sequence series.
I had to add some new variables and there was quite a bit of experimenting to prevent it failing to work on existing code. So lots of running Wordstar just to check the vt100 codes were all still valid.
This is a fun game. It is fast too, and I had to drop in a slower crystal on the N8VEM just to get all those pesky monsters!
I'm going to send Vince the code. It works perfectly for Pacman, but Space Invaders and Tetris I think are putting one character too many on the edge of the screen.
And yes, I'm now hooked on the propeller! So - onward with now getting these games working on the Triblade...
The giants in question include many on this forum, but in particular, Jeff Ledger for the terminal code, Vince Briel for the PockeTerm and Cluso for inspiring me to fire up the propeller.
I wanted to play some games! The N8VEM has a number of text based games, including Space Invaders, Tetris and Pacman. These use some arcane escape codes to move the cursor around, and while the PockeTerm has vt100 codes, it needed some extra ones for the Teleterm and Wyse monitors. I have trapped these in a vb.net monitor, so I have some idea what they are. So - time to translate vb.net into spin. And work within the parameters of the PockeTerm, which uses a different (and probably better) way to build up an escape sequence series.
I had to add some new variables and there was quite a bit of experimenting to prevent it failing to work on existing code. So lots of running Wordstar just to check the vt100 codes were all still valid.
This is a fun game. It is fast too, and I had to drop in a slower crystal on the N8VEM just to get all those pesky monsters!
I'm going to send Vince the code. It works perfectly for Pacman, but Space Invaders and Tetris I think are putting one character too many on the edge of the screen.
And yes, I'm now hooked on the propeller! So - onward with now getting these games working on the Triblade...
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBladeProp, RamBlade, TwinBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: Micros eg Altair, and Terminals eg VT100 (Index) ZiCog (Z80), MoCog (6809)
· Search the Propeller forums (via Google)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
Positioning edge characters was painful the first time around. [noparse]:)[/noparse]
My apologies for your first big spin project being my buggy VT100 code. [noparse]:)[/noparse]
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Visit the: The Propeller Pages @ Warranty Void.
Putting in a slow crystal is a very creative way to beat the game!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Whit+
"We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." - Walt Disney
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBladeProp, RamBlade, TwinBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: Micros eg Altair, and Terminals eg VT100 (Index) ZiCog (Z80), MoCog (6809)
· Search the Propeller forums (via Google)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm