profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/prime31/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

prime31/Nez 1293

Nez is a free 2D focused framework that works with MonoGame and FNA

prime31/GoKit 558

Lightweight tween library for Unity

prime31/P31UnityAddOns 143

Mostly defunct. Features were added and components broken out in the *Kit repositories.

prime31/MessageKit 112

Decoupled message sending system meant as a replacement for SendMessage and its variants.

prime31/Nez-Samples 102

Samples and demos of various Nez features

prime31/CameraKit2D 93

Framework for creating 2D camera systems

prime31/GoKitLite 48

A super duper lightweight tweening library for Unity

prime31/P31TaskManager 34

General purpose task manager that provides a lot more control and power than a standard coroutine

prime31/FNA-VSCode-Template 24

Template, build tasks, and easy-install scripts for making FNA + Nez games with VSCode

issue closedprime31/zig-gamekit

build issues with the latest zig 0.9.0

I'm getting unused parameter errors and a few others when I try out the last three versions of zig for mac os arm. Some in the gamekit build.zig, some in the deps build.zig, a few in shader_compiler. Is there a particular version or compiler flag I should be using? And or is there a need for a PR to get it building under the latest version of zig?

closed time in 5 days

westymatt

issue commentprime31/zig-gamekit

build issues with the latest zig 0.9.0

I am personally still on 0.8 so there are definitely going to be some compile issues with the latest zig due to the new changes. If you want to PR the updates by all means do!

westymatt

comment created time in 5 days

pull request commentprime31/Nez

Add ability to simulate VirtualInput activation

Yeah, @redthing1 may be right on this one. Now that I see the code it’s a bit more intrusive than my initial thoughts about it ;) Maybe instead swap to a subclass for each: SimulatedVirtualAxis, SimulatedVirtualButton, etc.

fuzzypixelz

comment created time in 7 days

push eventprime31/Nez

Michael Burns

commit sha ad6b189b76f0504de85d361d5c5dfbcfd28e2fc8

Fix errors when serializing an Array with JsonEncoder (#691)

view details

push time in a month

PR merged prime31/Nez

Fix errors when serializing an Array with JsonEncoder

Serializing an array such as

class Example
{
    public string[] MyArray = new string[5];
}

will throw an error in JsonEncoder on this line: https://github.com/prime31/Nez/blob/ce2405d0b6b9f94da5e34a6af22c03e27affc59f/Nez.Persistence/Json/JsonEncoder.cs#L262

For Arrays, listType.GetElementType() is needed instead to fetch the Array's element type. I've added a simple check to fix this.

Additionally, the encoder will crash on this line when attempting to save null elements in a list or array: https://github.com/prime31/Nez/blob/ce2405d0b6b9f94da5e34a6af22c03e27affc59f/Nez.Persistence/Json/JsonEncoder.cs#L273

obj is null in this case, so I've added a simple null check to fix it.

+14 -7

0 comment

1 changed file

thatpixelguy

pr closed time in a month

push eventprime31/Nez

prime31

commit sha ce2405d0b6b9f94da5e34a6af22c03e27affc59f

Update UI.md

view details

push time in a month

push eventprime31/Nez

prime31

commit sha 35f661bca9d9a1e269eaffa8e56656d79c75360a

Update UI.md

view details

push time in a month

pull request commentprime31/Nez

Add params variant of Choose()

So, the problem with a method like this is that you pay the price of an array allocation for the params every time you call it. I'm not sure how good of an idea it is to sneak that into the API. If you have more than 4 options it is probably better to have them in an array/List/FastList and just use a random to get the index.

Diamond-Wolf

comment created time in 2 months

pull request commentprime31/zig-upaya

Updates to zig 0.9.0

Looks good! Thanks! The tilescript issue probably just needs a @setEvalBranchQuota call so the compiler doesnt give up.

jacoscaz

comment created time in 2 months

push eventprime31/zig-upaya

Jacopo Scazzosi

commit sha db57e0d07958b0d36e77259c01aef22b4f7ed73f

updates to zig 0.9.0 (latest nightly)

view details

push time in 2 months

PR merged prime31/zig-upaya

Updates to zig 0.9.0

Hi! I am very new to Zig and I have very little idea of what I am doing as I had never touched anything Zig (or C, for that matter) up until a couple of hours ago.

That said, I've tried running a couple of examples from this repo using the latest Zig nightly build and got a few compilation errors. Guessing I was looking at issues brought by the changes in the latest versions of Zig I thought I'd try my hand at updating the code.

So far I got the following examples working:

  • [ ] tilescript
  • [x] tilemap
  • [x] editor
  • [x] texture_packer_cli
  • [x] texture_packer
  • [X] empty
  • [x] offscreen_rendering
  • [X] todo
  • [x] docking

Questions:

  1. what to do with the missing edge.zig file imported by src/math/rect.zig?
  2. unused params such as fn hello(world: T) {} should be ignored using fn hello(_: T) {} or fn hello(world: T) { _ = world; }?
+207 -175

3 comments

42 changed files

jacoscaz

pr closed time in 2 months

pull request commentprime31/zig-upaya

WIP: updates to zig 0.9.0

The commits are looking good to me so far! To answer your questions:

  1. Edge struct is below
  2. It’s probably cleaner and easier to do fn hello(_: T)

pub const Edge = enum(u8) {
    right,
    left,
    top,
    bottom,

    pub fn opposing(self: Edge) Edge {
        return switch (self) {
            .right => .left,
            .left => .right,
            .top => .bottom,
            .bottom => .top,
        };
    }

    pub fn horizontal(self: Edge) bool {
        return self == .right or self == .left;
    }

    pub fn vertical(self: Edge) bool {
        return self == .top or self == .bottom;
    }

    pub fn max(self: Edge) bool {
        return self == .right or self == .bottom;
    }
};
jacoscaz

comment created time in 2 months

issue closedprime31/zig-ecs

Missing license

Any plans to add a license?

closed time in 2 months

uggwar

issue commentprime31/zig-ecs

Missing license

License added!

uggwar

comment created time in 2 months

push eventprime31/zig-ecs

prime31

commit sha 76000d3596caee7366c5ffd8f28187c5270c2a44

Create LICENSE

view details

push time in 2 months

push eventprime31/zig-gamekit

prime31

commit sha 5907f654e4f6e6391e8c0a39a7b5abfc196a81ff

Create LICENSE

view details

push time in 2 months

PR merged prime31/zig-gamekit

Create LICENSE
+21 -0

0 comment

1 changed file

prime31

pr closed time in 2 months

PR opened prime31/zig-gamekit

Create LICENSE
+21 -0

0 comment

1 changed file

pr created time in 2 months

create barnchprime31/zig-gamekit

branch : add-license-1

created branch time in 2 months

issue closedprime31/zig-gamekit

License

Hi, I'd like to know if I can use gamekit in a project. What is the license for it?

closed time in 2 months

ethernetsellout

issue commentprime31/zig-gamekit

License

I'll stick an MIT license on there. It's a do whatever you want lib.

ethernetsellout

comment created time in 2 months

push eventprime31/zig-upaya

prime31

commit sha 0e58ee0b3e0351183a3c7839e59867df59a7a6fd

Adios buffer stream

view details

push time in 2 months

push eventprime31/zig-ecs

RUSshy

commit sha adad8969a5fb65c789a487790012310776e60f76

Added missing entity traits changes

view details

prime31

commit sha c31326760c0e43213e011cdf89caa591c6d59dc8

Merge pull request #17 from RUSshy/fix_memleak_2 Added missing entity traits changes

view details

push time in 2 months

PR merged prime31/zig-ecs

Added missing entity traits changes
+7 -6

0 comment

1 changed file

RUSshy

pr closed time in 2 months

push eventprime31/zig-ecs

RUSshy

commit sha 5734d4e25b66c0496ccc50a7308dc1f835c707bc

Update handles.zig

view details

RUSshy

commit sha 4519e0c556d5627fbe857a0292ebb7dd7c4fc2ef

Update sparse_set.zig

view details

RUSshy

commit sha b49f5cf54a7cbde5f3ff4a0c6358168705a83b97

Update handles.zig

view details

RUSshy

commit sha 965b02d4ca87eac874efcffe5b239045b4a6df83

Update registry.zig

view details

RUSshy

commit sha 6b0390bb5e25b88a359933fe739781ee01767dcb

Merge pull request #1 from RUSshy/fix_memleak Fix memory leak

view details

prime31

commit sha bcdb34a355fefb40016e77d7e73f98d4e2569a8d

Merge pull request #16 from RUSshy/master Fix memory leak #15

view details

push time in 2 months

PR merged prime31/zig-ecs

Fix memory leak #15

Fixes #15

+21 -21

1 comment

3 changed files

RUSshy

pr closed time in 2 months

issue closedprime31/zig-ecs

Memory Leak

Hello, take this example:

const std = @import("std");
const ecs = @import("ecs");

// override the EntityTraits used by ecs
pub const EntityTraits = ecs.EntityTraitsType(.large);

pub const Test = struct { a: f32, b: i32 };

pub fn main() !void {
    var reg = ecs.Registry.init(std.testing.allocator);
    defer reg.deinit();

    while(true)
    {
        var e1 = reg.create();
        var e2 = reg.create();
        var e3 = reg.create();
        var e4 = reg.create();
        reg.add(e1,Test{ .a = 0, .b = 0 });
        reg.add(e2,Test{ .a = 0, .b = 0 });
        reg.add(e3,Test{ .a = 0, .b = 0 });
        reg.add(e4,Test{ .a = 0, .b = 0 });
        reg.destroy(e1);
        reg.destroy(e2);
        reg.destroy(e3);
        reg.destroy(e4);

        std.os.windows.kernel32.Sleep(1000);
    }
}

And watch the memory grow forever

I suspect the issue is with the SparseSet, it always reallocates pages

closed time in 2 months

RUSshy

pull request commentprime31/zig-ecs

Fix memory leak #15

Tis’ beautiful!

RUSshy

comment created time in 2 months

push eventprime31/Nez

David Socha

commit sha 22b35ba33926fa34eeda4ff875d6054b19b314a7

Move Label fontScale fields into LabelStyle (#686)

view details

push time in 2 months

PR merged prime31/Nez

Move Label fontScale fields into LabelStyle

Shifts the existing _fontScaleX and _fontScaleY fields from properties of a Label to properties within LabelStyle. This allows font sizes for labels, TextButtons, etc. to be set globally through the skin/style system.. Also exposes these new style fields on the style objects for UI elements that contain Labels as children (e.g. TextButton/TextButtonStyle and Window/WindowStyle).

This should partially resolve Issue 600 - it provides a style-level means of scaling text on Label and UI elements containing Label, but doesn't change anything about the TextField element. Could potentially do something similar with TextField, but there's no current scaling logic in that class so I left it alone for now.

Thanks for creating this framework by the way! Have found it to be very helpful 😃

+79 -23

0 comment

4 changed files

David1Socha

pr closed time in 2 months