Skip to content

Instantly share code, notes, and snippets.

View barzamin's full-sized avatar
🌆
i continue to work. the city sleeps.

erin petra sofiya moon barzamin

🌆
i continue to work. the city sleeps.
View GitHub Profile

this is going to be a review of the current genesis demo build by erin/barzamin/The Refactor Godess/The Really Annoying Nitpicker

ok lets boot it up bluh

wine Genesis.exe

cool it runs ok under wine

let's do "good" graphics quality, and make it windowed

@barzamin
barzamin / GeometryLib.java
Last active August 15, 2016 17:39
Processinglang/Java computational geometry utils
import megamu.mesh.*;
static class GeomUtils {
static PVector centroid(MPolygon polygon) {
return centroid(toVectorArray(polygon.getCoords()));
}
static PVector centroid(PVector[] polygon) {
int l = polygon.length;
float a = signedArea(polygon);
@barzamin
barzamin / tgp_player_stats.cs
Last active August 1, 2016 23:12
The Genesis Project player stats pseudostruct
///***!!! THIS IS NOT THE FINAL CODE NOR CODE THAT WILL GO DIRECTLY INTO THE GAME !!!***///
// It's simply a codification of the "stats" document, to make it easier for us to integrate stats when
// we start adding `Player` objects.
// I used C# because it was convenient and we want people on TGP to know it. There's no scope qualifiers etc,
// and is pretty much pseudocode, so **don't** directly copy-paste this!
// most properties should be self-explanatory
// some of the floats may need to be rolled down into ints for speed over the wire
// anything commented with (?) is of questionable necessity/usefulness and removal should be debated
struct Player {