Skip to content

Instantly share code, notes, and snippets.

View mateoconlechuga's full-sized avatar
🐧
making cool stuff

Matt Waltz mateoconlechuga

🐧
making cool stuff
View GitHub Profile
output: c
include-file: gfx.h
palettes:
- mypalette
converts:
- myimages
generate-palette: mypalette
images: automatic
output: c
converts:
- myimages
convert: myimages
images:
- image.png
convert: myimages
palette: xlibc
images:
- fun.png
- funner.png
output:
c-source: myimages
ld hl,relocate_start
ld de,relocated
ld bc,relocate_end-relocate_start
ldir
jp executeapp
relocate_start:
relocate(cursorimage)
relocated:
_lighten:
pop de
pop bc
pop hl
push hl
push bc
push de
ld a,b
cpl
ld b,a
;-------------------------------------------------------------------------------
_Line:
; Draws an arbitrarily clipped line
; Arguments:
; arg0: x0
; arg0: y0
; arg0: x1
; arg0: y1
; Returns:
; true if drawn, false if offscreen
@mateoconlechuga
mateoconlechuga / shiftdown.asm
Created September 1, 2016 00:25 — forked from jacobly0/shift.asm
ShiftDown
;-------------------------------------------------------------------------------
_ShiftDown:
; Shifts whatever is in the clip down by some pixels
; Arguments:
; arg0 : Amount to shift by
; Returns:
; None
ld hl,3
add hl,sp
ld c,(hl)