This file contains hidden or 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 VDU 22, 132 : REM DOUBLE BUFFERED 640X240 | |
20 VDU 26 | |
30 VDU 23, 0, &C0, 0 | |
40 VDU 23, 0, &C1, 0 | |
50 VDU 23, 16, &51, &51 : REM MAKE TEXT CURSOR NOT WRAP OR SCROLL | |
400 VDU 5 : REM USE PLOT POSITION | |
405 DV = 1 / (240 * (3.14159) * 2) | |
410 X1 = 0 | |
450 X0 = 0 | |
460 X1 = (X1 + 1) |
This file contains hidden or 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
In file included from C:\zig\romlua\lua-5.3.5\src\lapi.c:16: | |
In file included from C:\zig\romlua\lua-5.3.5\src/lua.h:13: | |
C:\zig\zig-windows-x86_64-0.4.0+6b36b756\lib\zig\include\stddef.h:62:23: error: typedef redefinition with different | |
types ('unsigned long' vs 'unsigned int') | |
typedef __SIZE_TYPE__ size_t; | |
^ | |
C:\zig\zig-windows-x86_64-0.4.0+6b36b756\lib\zig\libc\include\generic-musl\bits/alltypes.h:88:24: note: previous | |
definition is here | |
typedef unsigned _Addr size_t; | |
^ |
This file contains hidden or 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
const Builder = @import("std").build.Builder; | |
const builtin = @import("builtin"); | |
pub fn build(b: *Builder) void { | |
const exe = b.addExecutable("romlua", "romlua.zig"); | |
exe.addCSourceFile("lua-5.3.5/src/lapi.c",[][]const u8{"-std=c99"}); | |
exe.addCSourceFile("lua-5.3.5/src/lauxlib.c",[][]const u8{"-std=c99"}); | |
exe.addCSourceFile("lua-5.3.5/src/lbaselib.c",[][]const u8{"-std=c99"}); | |
exe.addCSourceFile("lua-5.3.5/src/lbitlib.c",[][]const u8{"-std=c99"}); | |
exe.addCSourceFile("lua-5.3.5/src/lcode.c",[][]const u8{"-std=c99"}); |
This file contains hidden or 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
// allocation_death.go | |
package main | |
import ( | |
_ "image" | |
"github.com/go-gl/gl/v4.1-core/gl" | |
"github.com/go-gl/glfw/v3.2/glfw" | |
) |
This file contains hidden or 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
# initialize a new allegro-pascal project | |
my $projectname = "newproject"; | |
my $allegropas-src = "allegro.pas-5.2.a3-src-pas/lib"; | |
if $projectname.IO.e { | |
say "project $projectname already exists"; | |
} else { | |
mkdir $projectname or die "$!"; | |
try { |
This file contains hidden or 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
import Xml; | |
/* Flattens all the nuances of Haxe's Xml implementation | |
into an enum, where it's much easier to capture data. */ | |
enum FlatXMLNode { | |
Element( | |
name : String, | |
attribute : Map<String,String>, | |
children : Array<FlatXMLNode>); |
This file contains hidden or 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
package ludamix.bmfont; | |
import haxe.ds.Vector; | |
import ludamix.bmfont.BMFont; | |
using ludamix.MapPair; | |
class BMFontRenderPage<T> { | |
public var data : BMFontPage; | |
public var image : T; | |
This file contains hidden or 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
package ludamix; | |
import haxe.ds.Vector; | |
class T /*toolbox*/ | |
{ | |
public static inline var TAU = 6.28318530718; | |
public static inline var EPSILON = 0.0000001; | |
public static inline function lerpF(r0 : Float, r1 : Float, z : Float) : Float { return (r0 + (r1 - r0) * z); } |
This file contains hidden or 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
{ | |
"haxe.haxeDiagnosticDelay": 2000, | |
"editor.quickSuggestionsDelay": 1000, | |
"editor.suggestOnTriggerCharacters": false, | |
"git.enabled": false, | |
"files.autoSaveDelay": 1000000000 | |
} |
This file contains hidden or 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
import kha.Assets; | |
import kha.Image; | |
import kha.Sound; | |
import kha.Blob; | |
import kha.Video; | |
import kha.Font; | |
enum KhaAssetRequest { | |
KARBlob(k : String); | |
KARImage(k : String); |
NewerOlder