Opportunity to push/promote Ada coming soon (Can this be pinned?)

Hi,

There is a good chance to push and promote Ada in the area of game development coming up, but is SDL specific.

The official SDL Discord (SDL Enthusiasts) are having a Game jam if anyone wants to enter.

You must use SDL1, 2 or 3 (no other drawing libs allowed apparently, so no gl, vulkan, metal, etc. but you can use libs which use SDL rendering API’s), nothing else. This includes the satellite libraries, image, mixer and ttf.

The details are sketchy at this time, but a few things have been mentioned on the above discord. Details known so far (I will update as I find out):

Start Date

Seems it will be the last 2 weeks of August.

Duration

Two weeks?

Theme

TBA.

Git

Use the master branches from:

And pin them with Alire if using.

Please add any functions you need that do not have bindings yet and send a PR.

5 Likes

If no bindings are allowed, won’t that rule out SDLAda? (hoping not!)

Doh, didn’t mean that. Fixed.

I’ll be adding the GetKeybordState function and the rest of the rendering functions that were added after I did the initial ones.

1 Like

I’ve added this function. I’m going through the wiki and reorganising the list of functions in the readme to match the wiki. There is a ton of stuff not bound and also a lot of new stuff.

I’ve updated the README list of bound functions after going through the wiki. The wiki has missing entries so it might not be complete.

I really need this to be automated really.

I’ve added ALL the hints from the SDL2 branch today.

Also, ANuklear with SDL renderer can be used for GUI’s.

2 Likes

I have pushed a number of changes to the SDLAda repo including the related Render_Geometry procedure for rendering 2D geometry.

1 Like

So, they just announced the theme:

the SDL 2024 Discord Game Jam’s theme is islands. Itch.io page will be up later this week. Use SDL2 or SDL3 to render. Deadline is last day of August at midnight PST.

That’s BST+8 and CEST+9, if what I’ve read is correct.

Discord Announcement

Render_Geometry are the two functions you need to be looking at for rendering.

2 Likes

I’m not really a game designer type, but hope that anyone that enters has a great and fun time!

2 Likes

Also, they confirmed that you can start now.

2 Likes

Hi Luke, are these changes also available in the alire crate?
Thanks!

No. If you look at this unpublished/pushed tutorial I’ve been writing, it’ll show you how to grab the latest with alr.

Also, here’s the source from that tutorial which you can grab with git and alr run --args=<path to a ttf font> and it’ll work.

Wow, ok! This is great, I was trying to do the SDL tutorials from “Beginning Game Programming v2.0” on lazyfoo in Ada but now I’m going to do yours instead :slight_smile:

1 Like

Hi again Luke, I got the tutorial working up to drawing the triangle, great stuff!

Is the FPS counter part complete? You mention that the last part is not working properly.

I’ve also noticed that when toggling from windowed to full screen, there’s a noticeable delay in clearing the screen that doesn’t seem to happen from full screen to windowed. Is that something we can do anything about?

Thanks again!

The FPS part isn’t complete.

Dunno about the delay as it’s just a function call to change the mode.

Apart from those two things, did you have any issues?

Just a few small things that I could easily fix with the help of the compiler:

Needed to add
use Windows; for the operators to work on the Window_Flags.
with SDL.Events.Keyboards; was needed.

Removed as it had no effect (I think all the codes are prefixed):
use type SDL.Events.Keyboards.Key_Codes;

Had to modify the renames:
package Renderers renames Video.Renderers.Makers;
package Textures renames Video.Textures.Makers;
to
package Renderers renames Video.Renderers;
package Textures renames Video.Textures
as it seems that Renderer and Texture types are not in the Makers packages.

1 Like

I’ll need to check the doc as the source compiles.

They finally have the itch.io page up.

2 Likes