Activity
Mon
Wed
Fri
Sun
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
What is this?
Less
More

Memberships

Game Craft

14 members • $9/month

Ooga Booga Game Devs

3.1k members • Free

13 contributions to Ooga Booga Game Devs
Share your project fork!
Make sure your fork of the ooga booga repo is public and comment a link to it down below.
1 like • Aug '24
my fork, things might look a little different though.. https://github.com/louiidev/oogabooga/tree/master/oogabooga
What would you add to C?
While I'm a caveman who appreciate the very simple environment which is C, there are some features, mainly semantic, missing from C which are kind of obvious and doesn't really complicate things much but ends up being very useful for long-term projects (example: overloads). So I'm wondering, if you could extend C with tiny features like these without turning it into a complex mess like C++, what would you add? Here are some examples that I have thought of: - Function overloads - Runtime type reflection (enum names, member info, type sizes, kinds etc) - Better error messages - Strict enums - Jai/Odin-like compile-time arguments (this one is less trivial, and can cause C++ moments) - No declaration order - Built in vector & matrix base types that we can use arithmetic operators on
3 likes • Aug '24
I've been playing around with https://c3-lang.org/ a little bit, I feel like its covered a lot of things I wish C had so far. Mostly just: - No header files - Modules - Dynamic Arrays - Built in vectors - Semantic macros - Generics - Reflection
“Advanced C” tutorial by Charles Cabergs
I came across this C tutorial series on YouTube today, seems valuable to me as someone who is learning C for the first time and the videos are quite direct and to the point. https://youtube.com/playlist?list=PL71Y0EmrppR0KyZvQWj63040UEzKQU7n8&si=JjQoyWkwhWKPLuhK
Share your super scuffed prototype programmer art
Say it with me lads... WE ARE IN THE PROTOTYPING PHASE. If I catch any of y'all tryharding on drawing some good art... there will be consequences. Comment to share what you've whipped up so far!
Share your super scuffed prototype programmer art
1 like • Aug '24
@Michael Negre damn dude, I really like your drawing style, interested to see what you produce
7 likes • Aug '24
After changing games, here's my new art lol
simple approach to 2D arrays in c
Came across this cool approach to handling 2D arrays in C which I thought might be nice to share. The approach is basically using a 1d of size width*height of the array e.g: say we have a 1d array of our tiles enum: enum TILES tiles[TILES_WIDTH * TILES_HEIGHT]; we can just loop over it with a single index: for(int i = 0; i < TILES_WIDTH * TILES_HEIGHT; i++) { enum TILES tile = tiles[i]; // If we need the x and y values int x = index % TILES_WIDTH; int y = index / TILES_WIDTH; draw_rect(v2(x * tile_size, y * tile_size), v2(tile_size, tile_size), color); } if we want to index into a given x and y coordinate we multiply the y index by the width of the array and add the x index: tiles[y * TILES_WIDTH + x] I've found this approach has been useful for tile/grid based games EDIT: Thanks @Nick H for the suggestion
1 like • Jul '24
@Chris H really with skool had some sort of markup support, writing code in plain text is a bit aids haha
0 likes • Aug '24
@Sam Smith yeah I’m just so used to doing the 2d array method in languages like c# since I’m pretty new to C
1-10 of 13
Louis Johnson
4
86points to level up
@louis-johnson-8530
Currently based in Chiang Mai, Thailand. Full time indie dev.

Active 130d ago
Joined Jun 20, 2024
Chiang Mai, Thailand