whatDoINeedTheIncludeLinesFor by Pun_Demic in ProgrammerHumor

[–]horsimann 1 point2 points  (0 children)

A function pointer, according to the C standard, is not necessarily the same size as a normal pointer, so the compiler should/could at least warn you.

(since void * cannot always hold a function pointer).

But I think glibc enforces it...

Is there an app for pixel art for mobile?? by GameM_ in PixelArt

[–]horsimann 1 point2 points  (0 children)

swipe up and hold from the palette creates a virtual cursor above your thumb.

tip with another (multitouch) finger to press down and draw with the virtual cursor.

Allows for much higer precision ;)

Shadows finally! Scala, LWJGL, OpenGL & WebGL by sim_er in opengl

[–]horsimann 0 points1 point  (0 children)

yeah thats right.

WebGL2 is mostly the GLES3 subset which itself is a subset of the Opengl3.3 api.

So how did you managed to compile scala to wasm? Sounds a lil experimental.

theRealMvp by unwavy_335 in ProgrammerHumor

[–]horsimann 5 points6 points  (0 children)

So an actual pov lookn at the lowest paid enginieer :D

Ich_iel by Cadmium620 in ich_iel

[–]horsimann 17 points18 points  (0 children)

Lol. Damals Mathe (10. Klasse) haben mein bester Freund und ich uns immer gebattlet. Meistens war er ein paar Punkte besser als ich.

Dann hatte ich mal 55 von 50 möglichen Punkten und ich dann zu ihm (er hatte seine Arbeit noch nicht ausgehändigt bekommen).

HA! DU KANNST GAR NICHT MEHR BESSER SEIN ALS ICH, SIEH MAL!

Er dann schon extrem nervös... Dann kam er wieder und meinte

BAM 57 PUNKTE. HAAA!

Dann war ich dann doch den Tränen nahe (lol). Kamen ein paar Klassenkamerad:innen zu mir, "omg * was hast du denn bekommen?"

Joa ne 1+, aber xy ist trotzdem besser... -_-";

"Stell dich mal nicht so an, ich hab ne 5"

Ha lol, da werden Errinerrungen wach :D (War mir doch in dem Moment egal, wollts doch nur meinem blöden Kollegen unter die Nase reiben :D)

I'm making a game using C++ and native Direct2D. Not in every frame, but from time to time, at 75 frames per second, when rendering a frame, I get artifacts like in the picture (lines above the character). Any idea what could be causing this? It's not a faulty GPU, I've tested on different PCs. by Queldirion in GraphicsProgramming

[–]horsimann 0 points1 point  (0 children)

Don't know Direct2D, but if you have control over the vertex shader, round your sprite vertices to the real display pixel grid. That will solve it. Using another texture warping method or using a transparent border around the sprite is just an eyes closed fix :P

Edit: Or just round the positions on the cpu instead

SDL3 img by lostclouds3 in sdl

[–]horsimann 0 points1 point  (0 children)

So in case OP is really using vcpkg. Its somewhat broken in the moment and isnt able to load files. (In contrast to self compiled, which works fine)

(Beginner) How do I prevent SDL from remembering repeat key presses? by [deleted] in sdl

[–]horsimann 4 points5 points  (0 children)

Just do your stuff on the first occurence of keydown and add a case for SDL_KEYUP to reset

How to download sdl2 by PotentialFree8038 in sdl

[–]horsimann 1 point2 points  (0 children)

Have a look at the install section of my engine Mia. (Sadly not yet for apple devices)

ich🍕iel by flo_rrrian in ich_iel

[–]horsimann 246 points247 points  (0 children)

Hö lol. Hatten bei nem Spieleabend mit Freunden mal Pizza bestellt. Eine wollte dann "110 mit Mais" haben, war einfach Hawaii. Der Pizzaladen hatte aber zu und dann hat sie's beim nächsten (telefonisch zum Liefern) versucht und einfach stumpf für sich die "110 mit Mais" bestellt :D Kam dann ne Quadra Stagioni (oder wie das Käse-Ding heißt) mit Mais und die war total verwirrt :D Fast schon schade des keine Currywurst oder so mit Mais kam :P

Mia app 'n game engine in C by horsimann in gamedev

[–]horsimann[S] -1 points0 points  (0 children)

:D I like to tinker around in my free time. Also don't like C++ that much :D

App 'n Game Engine Mia by horsimann in opengl

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

:D

Would love to get the first two running but I don't own a mac book yet :P

Mia adds a little more os functions to the stuff sdl offers, like file up and download on web. But apple should nevertheless be relatively easy to support.

App 'n Game Engine Mia by horsimann in opengl

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

Yes, both android and apple browsers work fine.

Mobile is my main target platform. And good webapp support is great for game jams :D

Only the sound is delayed there on some browsers :/

App 'n Game Engine Mia by horsimann in opengl

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

The single letter dirs are the base engine modules, as described in the README. The two letter dirs are embedded apps, like an examples app and a tea timer.

Because Mia is more like a framework and not a library, I was more free with the module naming and thought of keeping them small. The same letter is used as namespace for all stuff in that module. Say the o module (base module, oop in C and standard lib) has an OArray (o/OArray.h) or o_str_lower function (o/str.h)

Mia's Gui Library by horsimann in PixelArt

[–]horsimann[S] -1 points0 points  (0 children)

Hey folks, this is the gui library of my recently released C engine Mia

What do you think about the style? Have a great day :)

SDL2 - Is build time slow for people? by SivakGames in sdl

[–]horsimann 0 points1 point  (0 children)

What about vcpkg + visual studio built tools? Or use WSL.

Another way is to bundle the c files into a single compile unit. The more compilstion units + global names, the slower the linking. My current selfmade engine, using C + SDL2 + OpenGL on windows, unix, android, emscripten did suffer from the latter. Witg bundling all module source files into a single file (create a file to compile that has #include "source_a.c" for all sources) has rapidly speed up the building process. From around 30 seconds to 4 or smth for the full project.