Skip to content

Instantly share code, notes, and snippets.

@alannakelly
alannakelly / 6502.md
Last active May 2, 2024 19:13
Useful 6502 Programming Resources
@alannakelly
alannakelly / heli.bas
Last active September 17, 2021 11:34
1000 DIM CX,CY,XS,YS,XT,YT,IA,IB,IC,ID,IX
1002 DIM VX(100),VY(100),VZ(100)
1005 CX=128:CY=128
1010 READ VX(IX),VY(IX),VZ(IX):IF VX(IX)=-999 THEN GOTO 1020 ELSE IX=IX+1:GOTO 1010
1020 PMODE4:SCREEN1,0:PCLS:COLOR1
1030 READ IA,IB,IC,ID
1040 IF IA = -1 THEN GOTO 1490
1050 IX=IA:GOSUB1500:XT=XS:YT=YS:IX=IB:GOSUB1500:LINE(XS,YS)-(XT,YT),PSET
1060 IX=IB:GOSUB1500:XT=XS:YT=YS:IX=IC:GOSUB1500:LINE(XS,YS)-(XT,YT),PSET
1070 IX=IC:GOSUB1500:XT=XS:YT=YS:IX=ID:GOSUB1500:LINE(XS,YS)-(XT,YT),PSET
@alannakelly
alannakelly / player59.asm
Last active June 30, 2021 15:25
Player 59 - Commodore 64 Moveable Sprite in 59 bytes
; Player 59
;
; Commodore 64 Moveable Sprite in 59b
;
; Joystick in Port 2 to move sprite.
; Purely for fun to see how few bytes it
; can be done in. Public Domain, do what
; you want with the code but credit is
; always appreciated.
;
@alannakelly
alannakelly / player73.asm
Last active June 30, 2021 11:48
Player 73 - Commodore 64 Moveable Sprite in 73 bytes
; Player 73
;
; Commodore 64 Moveable Sprite in 73b
;
; Joystick in Port 2 to move sprite.
; Purely for fun to see how few bytes it
; can be done in. Public Domain, do what
; you want with the code but credit is
; always appreciated.
;
@alannakelly
alannakelly / player74.asm
Created June 30, 2021 09:41
Player 74 - Commodore 64 Moveable Sprite in 74 bytes
; Player 74
;
; Commodore 64 Moveable Sprite in 74b
;
; Joystick in Port 2 to move sprite.
; Purely for fun to see how few bytes it
; can be done in. Public Domain, do what
; you want with the code but credit is
; always appreciated.
;
@alannakelly
alannakelly / player76.asm
Created June 30, 2021 09:13
Player 76 - Commodore 64 Moveable Sprite in 76 bytes
; Player 76
;
; Commodore 64 Moveable Sprite in 76b
;
; Joystick in Port 2 to move sprite.
; Purely for fun to see how few bytes it
; can be done in. Public Domain, do what
; you want with the code but credit is
; always appreciated.
;
@alannakelly
alannakelly / player84.asm
Created June 29, 2021 23:55
Player 84 - Commodore 64 Moveable Sprite in 84 bytes
; Player 84
;
; Commodore 64 Moveable Sprite in 84b
;
; Joystick in Port 2 to move sprite.
; Purely for fun to see how few bytes it
; can be done in. Public Domain, do what
; you want with the code but credit is
; always appreciated.
;
@alannakelly
alannakelly / thirdperson.p8
Created May 3, 2021 16:00
Demo of how a 3rd person camera works in PICO-8
pico-8 cartridge // http://www.pico-8.com
version 29
__lua__
--------------------------------
-- 3rd person camera demo --
-- --
-- (c) 2021 alanna kelly --
-- --
-- --
--this work is licensed under --
@alannakelly
alannakelly / main.asm
Created August 27, 2020 19:19
ACME assembler source for a bare minimum C64 music sequencer. Single Voice only.
!to "music.prg", cbm
IRQ_VECTOR = $fffe
!macro push {
pha
txa
pha
tya
pha
@alannakelly
alannakelly / gist:03f5872ae18c516591f54c0b6fae9f94
Created December 11, 2017 00:41
steam_driving_wheel_2.scad
$fn = 50;
/********************************************************************
* Experimenting with creating steam locomotive driving wheels in *
* OpenSCAD *
* *
* Author: Alanna Kelly *
* Contact: https://twitter.com/sparklyparticle *
* License: Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) *
********************************************************************/