Skip to content

Instantly share code, notes, and snippets.

Avatar

Roel Nieskens RoelN

View GitHub Profile
@RoelN
RoelN / player65.asm
Created Jun 30, 2021
65 bytes version
View player65.asm
// Based on the work of @alannakelly_ie, @MonstersGo and myself
// Kernal CLS Routine
.label INIT_SCREEN = $e544
// Variables
.label player_x = $d000
.label player_y = $d001
.label player_c = $d027
@RoelN
RoelN / player00.asm
Created Jun 30, 2021
Shaving off more bytes...
View player00.asm
// Kernal CLS Routine
.label INIT_SCREEN = $e544
// Variables
.label player_x = $d000
.label player_y = $d001
.label player_c = $d027
@RoelN
RoelN / player79.asm
Created Jun 30, 2021
Player 79 - Commodore 64 Moveable Sprite in 79 bytes
View player79.asm
// Player 79
//
// 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.
//
View lame.asm
BasicUpstart2(start)
.macro waste_cycles(n) {
.var nops = floor(n/2)
.var rem = n&1
.var c = n
.if (rem == 0) {
.for (var i = 0; i < nops; i++) {
nop
@RoelN
RoelN / resettizer.css
Created Feb 5, 2015
Super basic CSS reset and boilerplate: essential styling for any new project
View resettizer.css
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
margin: 0;
padding: 0;
box-sizing: inherit;
}
View gist:6f26118847e2f0cc95c7
<LigatureSet glyph="D">
<Ligature components="R,M" glyph="uniE602"/>
<Ligature components="N,A" glyph="uniE602"/>
</LigatureSet>
<LigatureSet glyph="M">
<Ligature components="V,P" glyph="uniE602"/>
View gist:8e3e7ecda723dfdfa590
#!/usr/bin/python
words = ['SEM',
'MVP',
'pop',
'DRM',
'ROI',
'DNA',
'SEO',
'flat',
@RoelN
RoelN / Grunticon multiple color SVG
Created Feb 22, 2014
Trying to avoid duplicating SVGs in Grunticon
View Grunticon multiple color SVG
<!doctype html>
<html>
<head>
<style>
.bear {
width: 100px;
height: 62.905px;
/* X should be width * number of color variations */
background-size: 500px 62.905px;
background-repeat: no-repeat;