- 3d floors
- somewhat critical problem: ordering 3d floors by height means that the selection changes if you mousewheel the height above/below another floor
- maybe i should get rid of the duplicated extra_floor_t struct and instead give each sector just a list of the control sectors, then identify by those instead of index?
- could still stay sorted, even
- it IS possible to have the same control sector mapped to two 3d floors, though. but is that ever useful??
- i really wish i had faux flat/wall objects
- i REALLY WISH i could just pass around sector pointers and bail if they're bogus??
- can't highlight or select an inner flat of a 3d floor
- mousewheel to change a regular ceiling height is super slow in my dump3 map; i think the full mapspecials thing is too expensive
- somewhat critical problem: ordering 3d floors by height means that the selection changes if you mousewheel the height above/below another floor
- may need to do actual incremental updates in this branch, right now! OH NO
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- This works: "bar()" references a global by default, and the next block sets | |
-- a global variable. | |
function foo() | |
bar() | |
end | |
function bar() | |
print("bar") | |
end | |
-- This DOESN'T work: "bar()" references a global because Lua hasn't seen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%TAG !dex! tag:veekun.com,2005:pokedex/ | |
--- !!omap | |
- bulbasaur: !dex!pokemon | |
name: | |
de: BISASAM | |
en: BULBASAUR | |
es: BULBASAUR | |
fr: BULBIZARRE | |
it: BULBASAUR | |
types: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0xc2 0xa0 0xc2 0xac, 0xc2 0xae 0xc2 0xbf, 0xc3 0x80 0xc3 0xbf, 0xe2 0x86 0x90 0xe2 0x87 0xbf, 0xe2 0x98 0x80 0xe2 0x9b 0xbf, 0xe2 0x9c 0x80 0xe2 0x9e 0xbf, 0xe3 0x80 0x81 0xe3 0x80 0x9c, 0xe3 0x81 0x81 0xe3 0x82 0x94, 0xe3 0x82 0xa1 0xe3 0x83 0xbe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ZombieMan = define_actor{ | |
name = "ZombieMan", | |
health = 20, | |
radius = 20, | |
height = 56, | |
speed = 8, | |
-- Why is this an integer out of 256 instead of just a float chance? | |
pain_chance = 0.78125, | |
monster, -- TODO These property bundles are really weird | |
floorclip = true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# script to extract music from a pico-8 | |
# requires exporting sounds from the pico-8 first! | |
# run as: python extract-music.py mygame.p8 sound%d.wav music%d.wav | |
# by eevee, do what you like with this code | |
from __future__ import print_function | |
import argparse | |
import struct | |
import wave | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Perlin noise implementation.""" | |
# Licensed under ISC | |
from itertools import product | |
import math | |
import random | |
def smoothstep(t): | |
"""Smooth curve with a zero derivative at 0 and 1, making it useful for | |
interpolating. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Lua 5.3.2 Copyright (C) 1994-2015 Lua.org, PUC-Rio | |
> mt = {__index = function(t, k) print("[" .. k .. "]") end} | |
> x = 3 | |
> debug.setmetatable(x, mt) | |
3 | |
> x.hello | |
[hello] | |
nil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 B$="PRE-COMPUTER" | |
20 PRINT "I AM "; B$ | |
30 INPUT "WHAT IS YOUR NAME"; N$ | |
40 PRINT "HELLO "; N$ | |
50 INPUT "HOW OLD ARE YOU"; A | |
60 PRINT "SO "; N$; " YOU ARE" | |
70 PRINTA; "YEARS OLD" | |
80 PRINT "I HOPE" : PRINT "WE HAVE FUN!!" | |
90 END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE SUB Change (C AS INTEGER, D AS INTEGER, R AS INTEGER) | |
DECLARE FUNCTION Round$ (N!, D AS INTEGER) | |
DIM SHARED A AS SINGLE, A2 AS INTEGER | |
SCREEN 12 | |
DO | |
CLS | |
COLOR 15 | |
PRINT "How much did you spend ($0 - 100)? "; | |
COLOR 14: INPUT "", A | |
DO WHILE A < 0 OR A > 100 |