GroovyBee Posted January 15, 2016 Share Posted January 15, 2016 As promised, here is some example source code to make use of Coloured Squares mode in IntyBASIC :- ColouredSquares.bas In the source you'll find a procedure for plotting points in one of the 7 primary colours and a procedure for drawing lines between 2 points. You'll also need the updated constants.bas to go with it :- constants.bas This is a gifeo of it in action :- <---- Click to animate And here is the ROM :- ColouredSquares.rom With this code you could make SNAFU II, a light cycle style game, a Qix like game, a territory based game or even add some interesting explosions or chunky particles to your games. The example will also make its way into the next IntyBASIC release. Any queries or problems let me know. Have fun! 11 Quote Link to comment Share on other sites More sharing options...
+DZ-Jay Posted January 15, 2016 Share Posted January 15, 2016 As promised, here is some example source code to make use of Coloured Squares mode in IntyBASIC :- ColouredSquares.bas In the source you'll find a procedure for plotting points in one of the 7 primary colours and a procedure for drawing lines between 2 points. You'll also need the updated constants.bas to go with it :- constants.bas This is a gifeo of it in action :- ColouredSquares.gif <---- Click to animate And here is the ROM :- ColouredSquares.rom With this code you could make SNAFU II, a light cycle style game, a Qix like game, a territory based game or even add some interesting explosions or chunky particles to your games. The example will also make its way into the next IntyBASIC release. Any queries or problems let me know. Have fun! That is awesome! Thanks, GroovyBee! 1 Quote Link to comment Share on other sites More sharing options...
PuzZLeR Posted January 15, 2016 Share Posted January 15, 2016 Very nice GB - thanks! And, in light of that thread, I do believe Inty could use some "turtle graphics" procedures like this, and hopefully a few others I can too can come up with in the near future. Very useful stuff. 2 Quote Link to comment Share on other sites More sharing options...
fsuinnc Posted January 16, 2016 Share Posted January 16, 2016 yes. Thanks very much. 1 Quote Link to comment Share on other sites More sharing options...
First Spear Posted January 18, 2016 Share Posted January 18, 2016 More awesomeness from the Bee. Thank you! It looks interesting when overlaying (underlaying?) text as Backtab is in there.There is no slowdown when music is playing while the graphics run either, very interesting. Thanks again! ColouredSquares.bas As promised, here is some example source code to make use of Coloured Squares mo[snip] 1 Quote Link to comment Share on other sites More sharing options...
GroovyBee Posted January 18, 2016 Author Share Posted January 18, 2016 The pixel plotting in this code uses a generic approach, so the Robotron style wipe is slower than it could be. If somebody needed that kind of effect I could thrash it out in assembler or provide special horizontal and vertical line drawing routines that do 2 pixels at once. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.