Skip to content

Instantly share code, notes, and snippets.

View JasonSpine's full-sized avatar
🕹️
GameDev

Marek Adamczyk JasonSpine

🕹️
GameDev
View GitHub Profile
NumpadDot & NumpadSub::Send {Volume_Down}
NumpadDot & NumpadAdd::Send {Volume_Up}
NumpadDot & NumpadMult::Send {Volume_Mute}
@JasonSpine
JasonSpine / Heroes3_NoIntro.reg
Last active September 17, 2023 13:53
[GOG] Heroes 3 Intro Skip
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\New World Computing\Heroes of Might and Magic® III\1.0]
"Show Intro"=dword:00000001
"First Time"=dword:00000000
[HKEY_CLASSES_ROOT\VirtualStore\MACHINE\SOFTWARE\WOW6432Node\New World Computing\Heroes of Might and Magic® III\1.0]
"Show Intro"=dword:00000001
"First Time"=dword:00000000
@JasonSpine
JasonSpine / BCTetris.py
Created May 17, 2019 12:32
I'm not the author. This is reupload for this project: https://www.pygame.org/project/1485/4499 ; I don't want this piece of code to die!
from pygame import*;D,b,u=display,list(bin(256)),'1';X=D.set_mode((160,320)).fill;E,l,F,S,p=enumerate,b*25+list(bin(2047)),[list(bin(int(x,36)).zfill(57))for x in'9hf 2i136 9hf 2i136 4qr 4qr 4qr 4qr 1l3 4zvur b2c 7hqm9 35z 4zxfm b2a 2i135 f 7w9g3r6 f fsiw7ic 4qu 4zxfl 4qu 4zxfl 2hxxf 6br 7hs76 b29'.split()],252,3
while p>2:
p,d,f,S=-3,0,p%28,S-2;time.set_timer(2,S)
while d-11:
for e in event.get(2):
e=e.key;d,r=(11,-1,0,11,1)[(e&3)+(e>0)],f/4*4+(f+(e==273))%4;z=zip(l[p+d:],F[r]+[0]*230)
if not(u,u)in z:p+=d;f,d=r,0;[X(-(u in j),((p+i-58)%11*16,(p+i-58)/11*16,16,16))for i,j in E(z)];D.flip();event.clear()
for i,j in E(F[f]):
if j==u:l[p+i]=u
for i in range(3,278,11):
@JasonSpine
JasonSpine / CustomEditorBase.cs
Created March 11, 2019 06:54 — forked from t0chas/CustomEditorBase.cs
Default Custom Inspector-Editor for Unity3D with ReorderableLists for arrays handling
using UnityEngine;
using UnityEditor;
using UnityEditorInternal;
using System.Collections.Generic;
using UnityEditor.AnimatedValues;
[CustomEditor(typeof(UnityEngine.Object), true, isFallback = true)]
[CanEditMultipleObjects]
public class CustomEditorBase : Editor
{
@JasonSpine
JasonSpine / dosboxBlood.conf
Created October 6, 2018 09:32
Blood: One Unit Whole Blood dosbox config for Steam - windowed mode
[sdl]
# fullscreen -- Start dosbox directly in fullscreen.
# fulldouble -- Use double buffering in fullscreen.
# fullresolution -- What resolution to use for fullscreen: original or fixed size (e.g. 1024x768).
# windowresolution -- Scale the window to this size IF the output device supports hardware scaling.
# output -- What to use for output: surface,overlay,opengl,openglnb,ddraw.
# autolock -- Mouse will automatically lock, if you click on the screen.
# sensitiviy -- Mouse sensitivity.
# waitonerror -- Wait before closing the console if dosbox has an error.
# priority -- Priority levels for dosbox: lowest,lower,normal,higher,highest,pause (when not focussed).
@JasonSpine
JasonSpine / 7BH_67_size.code
Created September 10, 2018 00:19
7 Billion Humans | Year 67 | Size
-- 7 Billion Humans (2087) --
-- 67: Decimal Doubler --
pickup s
step s
if s == button:
a:
listenfor go
step s
step n
@JasonSpine
JasonSpine / 7BH_66_speed.code
Created September 9, 2018 18:55
7 Billion Humans | Year 66 | Speed
-- 7 Billion Humans (2087) --
-- 66: Decimal Counter --
step s
if s == button:
a:
listenfor go
step s
step n
tell w ready
@JasonSpine
JasonSpine / 7BH_66_size.code
Created September 9, 2018 18:55
7 Billion Humans | Year 66 | Size
-- 7 Billion Humans (2087) --
-- 66: Decimal Counter --
step s
if s == button:
a:
listenfor go
step s
step n
tell w ready
@JasonSpine
JasonSpine / 7BH_65_size.code
Created September 9, 2018 15:58
7 Billion Humans | Year 65 | Size
-- 7 Billion Humans (2087) --
-- 65: Defrag Ordered --
if myitem != datacube:
comment 0
a:
if n != hole:
step n
jump a
endif
@JasonSpine
JasonSpine / 7BH_65_speed.code
Created September 9, 2018 15:58
7 Billion Humans | Year 65 | Speed
-- 7 Billion Humans (2087) --
-- 65: Defrag Ordered --
step nw
if w == worker and
e == nothing:
comment 0
step nw
step nw
step nw