Skip to content

Instantly share code, notes, and snippets.

View AndreiRudenko's full-sized avatar

Andrei Rudenko AndreiRudenko

View GitHub Profile
art_sigsegv_fault 0x0000007e1f24c704
art::FaultManager::HandleFault(int, siginfo*, void*) 0x0000007e1f24cc14
___lldb_unnamed_symbol20$$app_process64 0x0000005e518900d4
<unknown> 0x0000007ea5aef690
___lldb_unnamed_symbol1510$$libandroid_runtime.so 0x0000007ea0a87adc
___lldb_unnamed_symbol1510$$libandroid_runtime.so 0x0000007ea0a87adc
nativeReadFromParcel 0x00000000747ecbe8
art_quick_invoke_static_stub 0x0000007e1f604650
art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*) 0x0000007e1f17ccec
art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*) 0x0000007e1f32d33c
@AndreiRudenko
AndreiRudenko / OMGJAM 4 Komet
Last active July 4, 2018 19:19
Source code for my OMGJAM 4 entiry
// author: Andrei Rudenko (https://github.com/RudenkoArts)
// desc: omgjam4
// script: wren
// you can use this code in TIC-80 0.70 version (current git version)
// TIC-80 starting with 0.70 support wren language
// https://github.com/nesbox/TIC-80
import "random" for Random
// utils
@AndreiRudenko
AndreiRudenko / LD41
Created April 23, 2018 02:45
Ludum Dare 41 source code for TIC-80 game, written in wren language
// author: Andrei Rudenko
// desc: ld41
// script: wren
import "random" for Random
class Maths {
static clamp(value, a, b) { ( value < a ) ? a : ( ( value > b ) ? b : value ) }
static sign( x ) { (x >= 0) ? 1 : -1 }
> cd C:\lua-5.3.0
> vcvars32
> cl /MD /O2 /c /DLUA_BUILD_AS_DLL *.c
> ren lua.obj lua.o
> ren luac.obj luac.o
> link /DLL /IMPLIB:lua5.3.0.lib /OUT:lua5.3.0.dll *.obj
> link /OUT:lua.exe lua.o lua5.3.0.lib
> lib /OUT:lua5.3.0-static.lib *.obj
> link /OUT:luac.exe luac.o lua5.3.0-static.lib
Main.hx:305: i / main / gamepad device; ge_device_added device: 0 id: XInput Controller
Main.hx:305: i / main / gamepad device; ge_device_added device: 1 id: Controller (XBOX One For Windows)
Main.hx:305: i / main / gamepad device; ge_device_removed device: 1 id: XInput Controller
Main.hx:305: i / main / gamepad device; ge_device_added device: 0 id: XInput Controller
Main.hx:305: i / main / gamepad device; ge_device_added device: 1 id: Controller (XBOX One For Windows)
Main.hx:305: i / main / gamepad device; ge_device_removed device: 3 id: XInput Controller
@AndreiRudenko
AndreiRudenko / Accelerometer.hx
Created June 21, 2017 18:29 — forked from josuigoa/Accelerometer.hx
Getting accelerometer values with Luxe engine
package;
import luxe.Input;
typedef AccelEvent = {
timestamp:Float,
value:Float,
axis:Int
}
@AndreiRudenko
AndreiRudenko / perlin.hx
Created March 5, 2017 18:16 — forked from anissen/perlin.hx
Perlin noise test
// Haxe implementation ported from https://gist.github.com/Flafla2/f0260a861be0ebdeef76
// Related article: http://flafla2.github.io/2014/08/09/perlinnoise.html
class Perlin {
public var repeat :Int;
public function new(repeat :Int = -1) {
this.repeat = repeat;
}
@AndreiRudenko
AndreiRudenko / SpriteAnimation.hx
Last active July 24, 2016 20:19
SpriteRenderer, VisualRenderer, and SpriteAnimation Components for Luxeengine
import luxe.Component;
import luxe.Rectangle;
import luxe.Vector;
// import luxe.Sprite;
import phoenix.Texture;
import luxe.Log.*;
@AndreiRudenko
AndreiRudenko / AssetPaths.hx
Created May 20, 2016 08:57 — forked from kevinresol/AssetPaths.hx
Macro to read asset paths
package util;
/**
* ...
* @author Kevin
*/
@:build(util.AssetPathsMacro.build())
class AssetPaths
{
@AndreiRudenko
AndreiRudenko / 2r.cfg
Created May 5, 2016 15:29
my QuakeLive config
unbindall
// Scripts
bind ] "vstr chat"
set chat vstr chatOFF
set chatOFF "cg_teamchatsonly 1; set chat vstr chatON; print ^7chat ^1OFF"
set chatON "cg_teamchatsonly 0; set chat vstr chatOFF; print ^7chat ^2ON"
bind [ "vstr voice"