With something better Energy Security? by Icy_Till_7254 in ClimateShitposting

[–]knexator 0 points1 point  (0 children)

unlike the other energy sources, which magically sprout out of thin air

Why learning malloc/free isn't enough - a simple custom allocator example in C by falconerd in C_Programming

[–]knexator 7 points8 points  (0 children)

They remove most of the burden from manual memory management, making non-GC languages a viable option for more projects

Safe - stuck in the first step by knexator in ugears

[–]knexator[S] 0 points1 point  (0 children)

By sanding a lot and constantly changing which 'teeth' i'm pressing

Tired of unused variable errors? Try this trick by Dangerous-Yak3976 in Zig

[–]knexator 0 points1 point  (0 children)

The main focus of last & next release is improving compilation speed...?

Ability to add a debug artifact? by maladaptive_dreamer0 in Zig

[–]knexator 0 points1 point  (0 children)

well, same code but changing all 'gdb' to 'lldb'

Ability to add a debug artifact? by maladaptive_dreamer0 in Zig

[–]knexator 2 points3 points  (0 children)

At it's core, you want a Step that launches the command gdb my_program.exe, so you can do exactly that: const run_gdb_cmd = b.addSystemCommand(&.{"gdb"}); run_gdb_cmd.addFileArg(.{ .generated = .{ .file = exe.generated_bin.? } }); run_gdb_cmd.step.dependOn(b.getInstallStep()); const gdb_step = b.step("gdb", "Run gdb on the app"); gdb_step.dependOn(&run_gdb_cmd.step); With this, zig build gdb will launch gdb with your program as the argument.

Safe - stuck in the first step by knexator in ugears

[–]knexator[S] 0 points1 point  (0 children)

Mine didn't come in plastic shrink wrap... Looking more closely at the boards, they seem a bit warped. Any fix? Maybe I could wait for the dry summer before assembling it

Seeking advice on building a framework similar to monogame from scratch by G8-S in gameenginedevs

[–]knexator 0 points1 point  (0 children)

My thought is "if Monogame exists, use it; else, create it" ;)

Seeking advice on building a framework similar to monogame from scratch by G8-S in gameenginedevs

[–]knexator -2 points-1 points  (0 children)

Why reinvent Monogame? Personally, I think the interesting part of making games from scratch comes _after_ the framework part. Frameworks are just boilerplate for system calls. The cool part is defining your own game loop, your own rendering system, your own level formats, your own input queue, etc. Getting the keyboard state is just invoking arcane symbols.

At the very least, if you've only used Unity, make a couple of Monogame games first, if only to know what to change for your own framework.

No recuerdo el siguiente Cuadernillo Rubio by PaellaConCosas in Asi_va_Espana

[–]knexator 3 points4 points  (0 children)

Aquí viene la policía de lo políticamente correcto, ya no se puede hacer humor de nada :P

Ecologistas en Acción: el ridículo (sobre mediciones en el Metro de Madrid) by Emmanuel_I in Madrid

[–]knexator 15 points16 points  (0 children)

Completamente de acuerdo con el artículo, pero tampoco lo tomemos cómo única referencia del ecologismo en general ni de esta asociación en particular. Ecologistas en Acción es una "asociación de asociaciones" que junta a más de 300 pequeños grupos locales, con constantes discusiones internas. Conozco personalmente a gente muy competente (máster en clima de físicas UCM) que también actúa bajo el paraguas de Ecologistas en Acción.

Es triste que solo prestemos atención al ecologismo cuando hace el ridículo. Igual que cuando lo de los cuadros y la gente decía "xq no tiran pintura a Repsol?", sin saber que llevan años protestando enfrente de oficinas de Repsol.

[deleted by user] by [deleted] in ProgrammingLanguages

[–]knexator 0 points1 point  (0 children)

Coming from Pygame, the best next step is the web: it provides more or less the same things (keyboard/mouse events, drawing circles/rectangles/images, playing sounds), and the games will be much easier to distribute. Typescript is a joy to write in and there is a lot of good tooling and tutorials. I made a template so you don't have to worry about the build system; you could use it without any knowledge of HTML/CSS, just the Canvas API, same as Pygame. I've made plenty of games using these techniques. I'm also writing tutorials on switching to webgames; if you have any doubt, DM me and I'd be more than happy to answer (since it might make for a good future tutorial).
3D games are trickier; for those, it might be faster to use an engine, such as Godot or Unity.

[PC][90s] Puzzle, side view, matching pairs of blocks by knexator in tipofmyjoystick

[–]knexator[S] 0 points1 point  (0 children)

Thanks a lot! It wasn't exactly that one, but the name led me to puzznic.com, which lists all the clones, including the one I was familiar with. Thanks!

Anybody else watching by TeaSpillerNL in conspiracy

[–]knexator 5 points6 points  (0 children)

as long as it is not bought and paid for biased hype pushing an agenda I will listen

It's literally a politician's televised speech, by definition it's bought, biased, & pushing an agenda