No description
  • C# 97.7%
  • BASIC 2.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Agustín Gimenez 7fbf7b417b Avances V2.0
Salvado e importación de texturas
Exportación a ZXBasic funcionando
2020-04-12 13:00:30 +02:00
.SpectNetIde New tools 2020-04-11 02:06:08 +02:00
Renderers Agregar archivos de proyecto. 2020-04-06 13:36:39 +02:00
Vectty Avances V2.0 2020-04-12 13:00:30 +02:00
VecttyInstaller Funciones de soporte integradas 2020-04-07 17:12:09 +02:00
VecttySupport Avances V2.0 2020-04-12 13:00:30 +02:00
VecttyTest Avances V2.0 2020-04-12 13:00:30 +02:00
.gitattributes Agregar .gitignore y .gitattributes. 2020-04-06 13:36:37 +02:00
.gitignore Agregar .gitignore y .gitattributes. 2020-04-06 13:36:37 +02:00
README.md Update README.md 2020-04-07 17:22:24 +02:00
Vectty.sln Exportación y librería de Sinclair Basic 2020-04-07 07:25:55 +02:00
vecttyloader.bas Exportación y librería de Sinclair Basic 2020-04-07 07:25:55 +02:00

Vectty

Vectorial designer for ZX Spectrum projects

How to include in your program

For ZX Basic (Boriel Basic)

  • Select "Export" from the file toolbar
  • Choose "Export as Boriel Basic"
  • Check the "Include draw functions" if this is the first image you will include
  • Give the container array a name (you will use it later to call the draw function)
  • Specify an output file
  • Accept to export it

Once it has been exported...

  • Add #include "(yourfile.bas)
  • To draw the image call @Dibujar(yourImageArrayName(0))

For Sinclair Basic

  • Select "Export" from the file toolbar
  • Choose "Export as Sinclair Basic"
  • Check the "Include draw functions" if this is the first image you will include (the function will be located at line 9000)
  • Specify the frst line (address) of the image data
  • Specify an output file
  • Accept to export it

Once it has been exported...

  • Add at the begining of your program: 10 CLEAR 59904 : LOAD """" CODE 59904
  • Load the included "VecttySinclairBasicHelpers.tap" tape
  • To draw the image add RESTORE (your image's first line number) : GO SUB 9000

As the Sinclair Basic is very reduced and slow some assembler functions are needed to achieve the desired result, these functions are in the "VecttySinclairBasicHelpers.tap" tape

Sinclair Basic also can't draw on the two bottom lines, it will yield a "integer out of range" error if you try, so Vectty will not allow you to export an image in Sinclair Basic mode if any operation uses these two bottom lines