Skip to content

Instantly share code, notes, and snippets.

🕹

Max Glenister omgmog

🕹
Block or report user

Report or block omgmog

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@omgmog
omgmog / .jwmrc
Last active May 30, 2019
Generate list of games for JWM menu (http://joewing.net/projects/jwm/) on PocketCHIP
View .jwmrc
<!-- Example Menu in .jwmrc config-->
<!-- ... -->
<Menu label="GBA Games" icon="gba.png">
<Include>exec:$HOME/.scripts/gen_menu_items.sh gba vba</Include>
</Menu>
<Menu label="NES Games" icon="nes.png">
<Include>exec:$HOME/.scripts/gen_menu_items.sh nes nestopia</Include>
</Menu>
View gist:77587b6ab5c71f0ad01f9d38dd639e9e
@-moz-document domain("mail.google.com") {
/* Last updated March 29, 2019
* Show tasks for Nicholas
* Tell people to turn off chat and use icon actions
* Search for TODO
*/
/* ================================================== */
/* APP BAR (menu and account switcher + container for search) */
/* Hide Gmail logo and name */
html a[title="Gmail"] {
View simple-states.p8
function _init()
_upd=upd_title
_drw=drw_title
end
function _update()
_upd()
end
function _draw()
_drw()
end
@omgmog
omgmog / bitwisetiles.p8
Last active Feb 15, 2019
Apply tiles from a tileset based on their neighbors
View bitwisetiles.p8
pico-8 cartridge // http://www.pico-8.com
version 16
__lua__
--init
_t=0
dirx={-1,1,0,0,1,1,-1,-1}
diry={0,0,-1,1,-1,1,1,-1}
tiles={16,8,15,7,12,4,11,3,14,6,13,5,10,2,9,0}
function _init()
_upd=upd_game
@omgmog
omgmog / explosion-effect.p8
Created Feb 9, 2019
An explosion particle effect
View explosion-effect.p8
pico-8 cartridge // http://www.pico-8.com
version 16
__lua__
--init
function _init()
-- hold debug messages
debug={}
particles={}
p_colors = {5,6,7,10,9,5}
@omgmog
omgmog / outline.p8
Last active Feb 5, 2019
example of outline text and sprites, and also palette swapping...
View outline.p8
pico-8 cartridge // http://www.pico-8.com
version 16
__lua__
function _init()
_t=0
sprites={1,2,3,4}
end
function _update()
_t+=1
View buttbuff.p8
pico-8 cartridge // http://www.pico-8.com
version 16
__lua__
function _init()
x=-40
y=64
body={1,3}
head={5,7}
s={
@omgmog
omgmog / menu-system.p8
Created Feb 3, 2019
Pico-8 menu system
View menu-system.p8
pico-8 cartridge // http://www.pico-8.com
version 16
__lua__
-- init
function _init()
_sfx = {
select = 0,
move = 1,
no = 2
}
@omgmog
omgmog / custom-font.p8
Last active Aug 17, 2018
custom 5x7 font for pico8, mostly based on this font: https://www.dafont.com/type-writer.font
View custom-font.p8
pico-8 cartridge // http://www.pico-8.com
version 16
__lua__
global_y = 0
function mt(t1,t2)
local new = {}
for k,v in pairs(t1) do new[k] = v end
for k,v in pairs(t2) do new[k] = v end
return new
end
@omgmog
omgmog / arkanoid.p8
Last active Aug 4, 2018
Arkanoid (wip) - following the Pico-8 Hero video series
View arkanoid.p8
pico-8 cartridge // http://www.pico-8.com
version 16
__lua__
function center(width)
return (screen_width / 2) - (width / 2)
end
function _init()
cls()
You can’t perform that action at this time.