Thursday, 9 August 2018

glyphy (August 2018)


editing and animating fonts


glyphy.zip
  • generally expected to be used under emulation (Altirra for me)
  • mapping the mouse to paddles 2 and 3 is assumed (may need to temporarily un-map other joystick and mouse devices when using this)
  • a host directory mapped as hard drives H1: and H6: is required to load / save / export data to host directory
  • can export spudge code for the font and animation data for use in other spudge programs
  • the filenames used are fixed so some file manipulations will be required at the host level
    • edited font and animations loaded from and saved to H1:glyphy.f8
    • export data is written to H6:glyphyex.spg
    • another user defined font will be loaded from H1:userfont.f8 (to allow some level of copying between user edited fonts)




spudge August 9 2018 release

this one has a couple of code generation bug fixes, a couple of language improvements (can use pointer as loop variable, improved support for pointer arrays, allowAuto keyword) but is mostly about library improvements

libPMG.spudge
a simple player / missile interface

libMouse.spudge
mouse pointer support, really only designed for use in emulators as it reads paddle positions rather than trying to support a real mouse

libFontAnimation.spudge
font animation

Tuesday, 5 June 2018

spudge release 2

Almost as soon as I started using spudge after the initial release I came across an expression evaluation bug, fixed that then found another :)

here's a slightly better version spudge0778-2018-06-05.zip

Wednesday, 30 May 2018

the Atari colours

; simple static colours
; colours.spudge
proc spudge() {
    repeat {
        colbk = vcount <<< 1
    }
}

or make it move...

; moving colours with a VBI
; coloursMove.spudge
proc spudge() {
    ; install interrupt to scroll the rainbow
    replaceDeferredVBI(rainbowVBI)

    repeat {
        wsync = 0
        colbk = rainbow + (vcount <<< 1)
    }

    ; flip the VBI back to where it was
    restoreDeferredVBI()
}
; a simple VBI to scroll the rainbow
byte rainbow
proc rainbowVBI() vbi {
    if !(%11 & jiffy) { ; scroll every 4th frame
        rainbow += 1
    }
    exitVerticalBlank   ; special VBI exit
}



hello world.spudge

proc spudge() {
    print('hello world?')
}