Skip to content

derekfountain/the-virus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Virus

A game for the 48K ZX Spectrum home micro of the 1980s. The TAP file of the latest release is here. Click that link, then click on "Download" (right side), and save as a TAP file. Then you should be able to just drag and drop it onto your emulator window.

The source is released under the GPLv2 and builds on Linux with z88dk v2.10 or greater.

alt text

This started off as a bit of experimentation with the Boids algorithm on Linux. My original Tcl scripts are in the Tcl directory. When playing with that I started to wonder how a ZX Spectrum would get on with that algorithm. I ported it over to z88dk 'C' and learnt the answer: not very well. So I converted the algorithm to use integers, rewrote most of it, and optimised it as best I could short of rewriting it in Z80 assembly language.

It turned out OK, so I built a game around it. :)

The release thread at Spectrum Computing is here, and there's an RZX file should anyone want to see how it's done. :)

Credits:

Me, Derek Fountain, for writing it :)

Damien Guard, for the font

Andy Dansby for his fast pixel plotting work

Conrad Parker for his Boids work