Jump to content
IGNORED

Colecovision Turbopowered BASIC compiler: CVBasic v0.6.0 (now with 6502 support!)


Recommended Posts

1 hour ago, shaoth said:

You can find some examples here Github

 

for the graphs ressources I use 2 tools

MultiPaint with MSX parameters 

MSX / Coleco Sprite & Tile Editor from @Tony Cruise

Thanks, I have looked on Github already but couldn't find any of the examples in the book. 

7 hours ago, parsec said:

Where can I find the CVBasic source codes for the examples listed in the bok? I find it difficult to get a good overview by reading the listings in the book. 

 

Also, is there a recommended tool or editor for creating sprite (BITMAP) data, e.g. like the layered player sprite in Monkey Moon?

I've done my best to archive everything that has been shared on The ADAM Archive as it makes it easier to find then numerous threads on websites. Here is the direct link to the folder on the Archive...

 

(AdamArchive.Org) - The home for everything ADAM

 

Check out Tony Cruise's Coleco/MSX Sprite & Tile Set Editor...

 

Home (electricadventures.net)

 

10 hours ago, parsec said:

Question about the Programming Games for the Colecovision e-book that I purchased a few days ago:

 

Where can I find the CVBasic source codes for the examples listed in the bok? I find it difficult to get a good overview by reading the listings in the book. 

 

Also, is there a recommended tool or editor for creating sprite (BITMAP) data, e.g. like the layered player sprite in Monkey Moon?

 

 

You'll find the link in the page just before Acknowledgments, and I think it is clickable.

 

@NIAD Great archive, I'll be sure to dive into that soon. I'm mostly working on Mac so Windows based editors, especially those built upon the .NET Framework, are a bit of a hassle. I'm using Libresprite -- a bit clunky but it works. My main problem was how to generate CVBasic BITMAP statements out of a .bmp but I got that sorted out now, see below.

 

@nanochess  There it was, thanks! Also figured out how to use tmscolor to generate CVBasic bitmap data from an image. If anyone else is wondering:

tmscolor -b -sb image.bmp outfile.bas

  • Like 1

I threw together a VS Code syntax highlighting extension for CVBasic.

image.thumb.png.1746246ce2f59edca209f39d9e91cef8.png

If anyone uses VSCode + CVBasic and want to give it a spin the attached a ZIP file contains the VSIX extension installer.

 

EDIT >>> To avoid hijacking and polluting this thread, current and future releases of this VSCode extension will be available on https://github.com/scomx/cvbasic-vscode-ext/releases

 

(How to install VSIX instructions)

 

Disclaimer: This is my first attempt at making a VS Code extension so provided as is. Also, I might have missed some CVBasic keywords/functions etc. Let me know if anything is out of place. Source code is available on GitHub: https://github.com/scomx/cvbasic-vscode-ext/tree/main/cvbasic-lang

 

cvbasic-lang-0.0.2.vsix.zip

Edited by parsec
Added link to downloads
  • Like 2
On 10/18/2024 at 1:55 PM, parsec said:

I threw together a VS Code syntax highlighting extension for CVBasic.

image.thumb.png.1746246ce2f59edca209f39d9e91cef8.png

If anyone uses VSCode + CVBasic and want to give it a spin the attached a ZIP file contains the VSIX extension installer.

 

EDIT >>> To avoid hijacking and polluting this thread, current and future releases of this VSCode extension will be available on https://github.com/scomx/cvbasic-vscode-ext/releases

 

(How to install VSIX instructions)

 

Disclaimer: This is my first attempt at making a VS Code extension so provided as is. Also, I might have missed some CVBasic keywords/functions etc. Let me know if anything is out of place. Source code is available on GitHub: https://github.com/scomx/cvbasic-vscode-ext/tree/main/cvbasic-lang

 

cvbasic-lang-0.0.2.vsix.zip 4.32 kB · 2 downloads

Thanks for the VSCode extension.
Can I compile and launch the rom from VSCode?
A quick tutorial would be great 😁

14 hours ago, shaoth said:

Thanks for the VSCode extension.
Can I compile and launch the rom from VSCode?
A quick tutorial would be great 😁

Sure, first you need to add a tasks.json file in your project folder, /.vscode subfolder. There are different methods to do this but manually adding this special folder and a tasks.json file is probably the easiest option.  Your project should end up looking like this:

 Screenshot2024-10-20at09_49_13.png.868cb0f7b2eb32defa6df19f28e2416b.png

 

Next you have to edit tasks.json and add the different build+run tasks. I've attached my own tasks.json file that you can use as template. Change the build and assemble paths to point to your cvbasic and gasm80 executables. Note in the build task you also must provide the path to the cvbasic folder as a third argument, otherwise you'll get an error Unable to open 'cvbasic_prologue.asm'. Also note that on Windows you may want to use the proper path separator '\' instead of the Unix '/' that is used on Mac/Linux. (VS Code may be able to handle cross-platform path separators intelligently though, I haven't tested).

 

Lastly set the path in task runemu to point to your emulator executable. I'm using CoolCV here but any emulator that can be started with a .rom file name as command line argument will work. You'll have to add command line switches specific to your emulator here, if necessary.

 

To build and run press CMD (CTRL on Windows) + Shift + B. If the compilation or assembly fails the subsequent tasks will not be executed. If a .rom file is built successfully the emulator should start up with your game loaded.

 

I've only tested this setup on Mac but VSCode should work identically under Windows.

 

tasks.json

2 hours ago, parsec said:

Sure, first you need to add a tasks.json file in your project folder, /.vscode subfolder. There are different methods to do this but manually adding this special folder and a tasks.json file is probably the easiest option.  Your project should end up looking like this:

 Screenshot2024-10-20at09_49_13.png.868cb0f7b2eb32defa6df19f28e2416b.png

 

Next you have to edit tasks.json and add the different build+run tasks. I've attached my own tasks.json file that you can use as template. Change the build and assemble paths to point to your cvbasic and gasm80 executables. Note in the build task you also must provide the path to the cvbasic folder as a third argument, otherwise you'll get an error Unable to open 'cvbasic_prologue.asm'. Also note that on Windows you may want to use the proper path separator '\' instead of the Unix '/' that is used on Mac/Linux. (VS Code may be able to handle cross-platform path separators intelligently though, I haven't tested).

 

Lastly set the path in task runemu to point to your emulator executable. I'm using CoolCV here but any emulator that can be started with a .rom file name as command line argument will work. You'll have to add command line switches specific to your emulator here, if necessary.

 

To build and run press CMD (CTRL on Windows) + Shift + B. If the compilation or assembly fails the subsequent tasks will not be executed. If a .rom file is built successfully the emulator should start up with your game loaded.

 

I've only tested this setup on Mac but VSCode should work identically under Windows.

 

tasks.json 1.07 kB · 1 download

Thx, I will check this :)

 

It works after setting my paths.
Thanks a lot @parsec.
I also cleaned up the cvbasic folder by creating a folder for each project. The compilation didn't work because I hadn't understood that I needed the prologue and epilogue files. 😅

 

By the way, what is the JUNGLE project? 😇

15 hours ago, shaoth said:

It works after setting my paths.
Thanks a lot @parsec.
I also cleaned up the cvbasic folder by creating a folder for each project. The compilation didn't work because I hadn't understood that I needed the prologue and epilogue files. 😅

 

By the way, what is the JUNGLE project? 😇

Glad to hear it worked, happy coding! "Jungle Rajdeep" is going to be a port of a game I originally made for TI-99/4a a decade ago :) 

 

 

 

  • Like 1
On 10/18/2024 at 7:55 AM, parsec said:

I threw together a VS Code syntax highlighting extension for CVBasic.

image.thumb.png.1746246ce2f59edca209f39d9e91cef8.png

If anyone uses VSCode + CVBasic and want to give it a spin the attached a ZIP file contains the VSIX extension installer.

 

EDIT >>> To avoid hijacking and polluting this thread, current and future releases of this VSCode extension will be available on https://github.com/scomx/cvbasic-vscode-ext/releases

 

(How to install VSIX instructions)

 

Disclaimer: This is my first attempt at making a VS Code extension so provided as is. Also, I might have missed some CVBasic keywords/functions etc. Let me know if anything is out of place. Source code is available on GitHub: https://github.com/scomx/cvbasic-vscode-ext/tree/main/cvbasic-lang

 

cvbasic-lang-0.0.2.vsix.zip 4.32 kB · 3 downloads

Would this work with the current version CVBasic?

15 hours ago, ZippyOasys said:

Would this work with the current version CVBasic?

Yes, it will work with any version. I built the extension around CVBasic 0.7.0. Don't ask me why I didn't post this in the 0.7.0 release thread instead of here. 

 

If new statements are added to the language in the future then those will not be syntax highlighted until the extension is updated, that's all.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...