Home | Rules and Guide | Sign In/Create Account | Write a Post | Reddit | #ludumdare on irc.afternet.org (Info)

Thanks for making Ludum Dare 26 AWESOME! See you in August!

Ludum Dare 26 — April 26-29th, 2013
[ Results: Top 100 Compo, Jam | Top 25 Categories | View My Entry ]
[ View All 2346 Games (Compo Only, Jam Only) | Warmup ]

[ 10 Sec Video Compilation (x3) | 260 Game Video Compilation | IndieCade Deal | Ludum Deals (Unity Deal Ends Soon!) ]


About mjau (twitter: @kamjau)

Entries

 
Ludum Dare 19
 
MiniLD 12
 
Ludum Dare 15
 
 
 

mjau's Trophies

Keynote Master!
Awarded by Flyboy on December 18, 2010
Fellow Kitty Award
Awarded by fydo on December 19, 2007
Porting Excellence Award of Sound
Awarded by allefant on December 16, 2007

mjau's Archive

Dynamic OpenGL for LuaJIT

Posted by (twitter: @kamjau)
Friday, April 20th, 2012 2:37 pm

I’ve been toying around with LuaJIT lately. If you’re not familiar with LuaJIT, it’s a just-in-time compiler that not only makes your Lua code run super fast, but it also makes it possible to call native code from Lua without any native glue code at all. Pretty cool tech.

OpenGL requires some special handling though, so I made an OpenGL loader for it that handles all the dynamic loading, version differences and extensions and such for you (based on the official spec files), and added some extra code to make shaders easier to work with. I didn’t really plan on using this for LD, but hey, might as well post it now so that I have the option: ld23base.zip (zlib license)

That zip includes some example code using SDL + OpenGL to draw a spinning rectangle in pure Lua =).  I doubt anyone else will use this, but you’re of course welcome to if you want =). Please let me know if you do! It’s a bit WIP-y still, but fully usable and should be pretty straightforward if you’re familiar with SDL and OpenGL. It probably requires LuaJIT 2.0 (beta) to run, and it’s only been tested on 64-bit Linux, but it should hopefully run on anything supported by LuaJIT as long as SDL and OpenGL libs are available.

declaration of in-ness / dgl

Posted by (twitter: @kamjau)
Friday, April 29th, 2011 2:57 pm

Yup, I’m in!

Anyway, I was hoping to get some basecode ready for the compo for once, but it’s still missing some critical stuff (like sound, lack of bugs, etc), and while I could post what I’ve got so far and then work more on that during the compo, I don’t see that ending well for either the basecode or any eventual game. So.. I’ll just go from scratch, or maybe try Flash again or something.

Well, almost. I do have one little thing I’ve been fiddling with lately: dgl! Calling it “basecode” is a bit of a stretch though, it’s really just a dynamic OpenGL loader and extension detector. Similar to GLEE and the like, except it’s smaller (less than 40k compiled), only covers the GL parts (no GLX/WGL/etc, you pass it a function pointer to use for resolving symbols, works great with SDL), and also it loads everything dynamically, not just extension functions (this actually makes cross-compiling from Linux to Windows much easier). Oh, and it’s a work in progress (most things work though), and I’ve given it a zlib-like license. If this sounds interesting, you can get it here: dgl-wip-ld20.tar.gz. (Not sure if I’ll actually use OpenGL for the compo yet, but I’m posting this just in case.)

And now, I’m off to replace my slightly broken Linux install with Ubuntu 11.04, new Unity interface and all. What could possibly go wrong? This is surely an excellent idea at this point in time.

[edit: turns out it wasn't. in my defense though, i really did need to fix my linux install. oh well, better luck next time..]

Planets

Posted by (twitter: @kamjau)
Sunday, December 19th, 2010 7:10 pm

Well, I decided to enter what I’ve got. It’s not really a game, but you can, uh, look at planets? You might like it for a few seconds. (Some people expressed an interest in the source, which is of course included. It’s a horrible mess though, and not really the best way to do this kind of thing.. (also it’s unfinished))

Anyways, you can get it here

Shadows

Posted by (twitter: @kamjau)
Sunday, December 19th, 2010 11:44 am

Woke up after having slept way too long, fixed some bugs with the planet generator and the shadows

(click for anim)

I somewhat doubt this’ll be done for the compo, or even the jam, but I’m not giving up just yet. Have some ideas.. Even if nothing comes of this though, I’ve learned a lot, so it hasn’t been a waste.

A planet

Posted by (twitter: @kamjau)
Sunday, December 19th, 2010 3:12 am

Not really sure what I’m doing here, but there will apparently be planets!

(Click the image to animate)

The story so far

Posted by (twitter: @kamjau)
Thursday, August 19th, 2010 3:14 pm

Everyone should do one of these. Here’s mine:

ld-mjau

Been a while since I successfully entered an LD apparently, so I’ll try to do something about that. Haven’t decided what to use for this one yet, but hey, that’s what the first few hours of the compo is for… right?

A screenshot

Posted by (twitter: @kamjau)
Sunday, February 21st, 2010 12:18 pm

Here’s a screenshot of my progress so far:

skjermbilde1

Also done some music bits. Most of the time has been spent working on things behind the scenes; mostly graphics processing stuff and sound mixing.

Had to disable fullscreen mode since SDL does something weird with the audio callback there (I need that to work for audio/visual synchronization, which I definitely want to do), but otherwise it actually works now. There’s even a simple level generator (wip), so for once I’m actually going to have some levels =)

If it gets done, that is. I kinda doubt this is going to be done before the deadline. Still have to add player and enemy characters, and interaction, and lots of other stuff, and I don’t know if I can do much more today. Still want to see how the game turns out though, so I’ll probably finish it sometime regardless.

exit mjau

Posted by (twitter: @kamjau)
Sunday, December 13th, 2009 5:16 am

Looks like I’m going to have to drop out of yet another LD. Sigh.

Good luck to everyone else.

portaslug

Posted by (twitter: @kamjau)
Saturday, December 12th, 2009 7:21 am

Fixed some bugs in slug so that mouse/fullscreen actually works now, and also fixed up my build system so that I could build a portable Linux executable (new build/src is here, if anyone’s interested). Assuming slug is “done” for now (haha), this means i don’t have to compile anything again for the rest of the compo, just writing Lua scripts and automatically have everything work on both Linux and Windows. Mac support would be nice too, but I don’t have a mac, so.

Now, time to get started on the actual game! I wish I had any good ideas. Guess I’ll just start making a platform engine and see where it goes from there…

Breakfast

Posted by (twitter: @kamjau)
Saturday, December 12th, 2009 4:07 am

I’m going to sustain myself exclusively on these things during the compo:

klementiner

So, exploration. Not sure what I’m going to do yet, but it’s probably going to be a platformer of some sort. Kinda want to do something ala Monty on the Run or Dizzy, but we’ll see.

Right now though I’ll go fix some bugs in slug: Mode switching corrupts the graphics, and mouse coordinates aren’t scaled right. Might add some new features too, though I suppose I should wait until I actually need them now that the compo has started and all. In fact, I’m not even sure I’m going to use slug at all, might try to go for a Flash game again instead. Time to  make up my mind =]

Oh, and here’s some eggs I had for breakfast:

egg

powered by slugs

Posted by (twitter: @kamjau)
Friday, December 11th, 2009 7:00 pm

My Lua game engine thing: I call it “slug” [update: hit the slug tag for newer versions]

A bit rough around the edges and messy code, but it seems to work for what it does.  (Here’s a readme.)

wikiquiz

Posted by (twitter: @kamjau)
Sunday, September 13th, 2009 5:01 pm

Well, it’s done, I guess.  Not a lot of improvements since last time really, but it’s got interactivity now at least. Oh, and score. Also made it request about 4 pages from wikipedia per question overall, in stead of infinite.

entry page

Choose wisely.

Posted by (twitter: @kamjau)
Sunday, September 13th, 2009 5:14 am

Making a quiz type thing (using php and, uh, lua). No interactivity yet (other than reload), but it can load random pages from Wikipedia, parse descriptions, select one as an answer, and show options! Yay!

who

cavern box

Posted by (twitter: @kamjau)
Sunday, August 30th, 2009 5:25 pm

Well, this isn’t going to get finished in time, but I’m submitting what I’ve got, which isn’t much. It’s got music though.

[ entry page ]

Need sleep now.

Day 2

Posted by (twitter: @kamjau)
Sunday, August 30th, 2009 1:57 am

Woke up again. This keeps happening.

Anyway, I don’t have much to show for yesterday. My code can draw animated tiles and tilemaps (scrolled) into a rectangle, but that’s about it. Oh, and maintain correct aspect ratio no matter what size it’s rendering at. Originally I wanted to support fullscreen, but apparently flash disables keyboard in fullscreen mode for some reason, so it’s not very useful unless I do a mouse-controlled game, which I probably won’t. You can still just plop the swf directly in the browser to fill the browser window though.

Also, I think I got an idea now. Don’t know if it’ll be good yet, but at least it’s something. Time to draw some gfx.

Tiles and Bacon

Posted by (twitter: @kamjau)
Saturday, August 29th, 2009 9:30 am

After hours of stuggling with getting flash to do what I want and some adventures in bugfixing, I now have the ability to display animated tiles and tilemaps in a clipped rectangle! Which is nice. Now I just need to make the actual game. If only I had a good idea for something doable in 48 hours. I guess I’ll just keep working and see if something turns up.

I also sampled some homemade bacon ice cream that a flatmate decided to make. This was an interesting experience. Not pleasant, but not as unpleasant as one might expect either.

Success!

Posted by (twitter: @kamjau)
Saturday, August 29th, 2009 4:44 am

I’ve now got a black screen that scales to fit the flash window, adding borders as neccessary to maintain aspect ratio and keep it in the middle and such. Might restrict it to integer multiples later, but for now it scales freely. I had to disable flash’s built-in stage scaling and positioning to make this work right, which tells me that I’m probably doing things very wrongly, but hey. Onwards!

Still no real game idea though. Will take a shower now and think about things.

Just woke up

Posted by (twitter: @kamjau)
Saturday, August 29th, 2009 2:02 am

So, Caverns ..  not what I was hoping for, and I’ve no idea what to make. At least not yet.

What I do know, however, is that I’m going to use flash for this compo, which will be interesting because I’ve never done anything in flash before. I don’t even know the language, so if anyone got a link to a quick reference of ActionScript 3 that’d be nice =). I did read through a tutorial over the past few days and tried out some example code though.

Right now I’m going to eat some breakfast, maybe take a shower, and then it’s up and away into the unknown! Or maybe down, considering the theme.

Sandbox

Posted by (twitter: @kamjau)
Sunday, July 26th, 2009 9:59 am

Decided to try something today. So far it’s a box, with sand in it! Also, you can rotate it.

It’s actually kinda fun to play with already. Not much of a game though ..

Hello

Posted by (twitter: @kamjau)
Sunday, April 19th, 2009 7:01 pm

Hello

Hello! For windows and linux, plus source of course. I scrapped my original game and made this instead.


All posts, images, and comments are owned by their creators.

[cache: storing page]