About JayCFraser

Entries

 
Ludum Dare 22

JayCFraser's Trophies

JayCFraser's Archive

I’m (tentatively) in (for a potential third run)

Posted by
Wednesday, April 24th, 2013 11:36 am

I want to try programming games using a mixture of client side JavaScript scripting and the Apache web server. Having recently started a job which involves using Linux a everyday, I’m starting to gain competence. My reservations are that I only have a laptop for development and I don’t have access to the internet for the entire 48 hours (that and there’s always the possibility I will hit something painful that bites me for too much time during the competition).

Still, provided I can get some more Apache learnt in the next couple of days there shouldn’t really be a reason I couldn’t give it all a try! And the idea of launching a website as my entry is very appealing :D!

Anyway, good luck to all participating.

I’m in!

Posted by
Friday, August 24th, 2012 5:35 pm

A fairly last minute entry, but never mind. I had intended to get some hello world style preparation done for this Ludum Dare but haven’t done so, much to my shame. Anyway, I intend to write my entry as my first ever website – so this will probably go very wrong. Client side to be done in JavaScript and server side (if any) in Java. Wish me luck!

Phew!

Posted by
Sunday, December 18th, 2011 7:36 pm

So, my original plan (documented in a recent post) was abandoned as soon as the theme was announced. The theme suggested to me a mood/story based game, as opposed to a mechanic oriented game (which themes like self replication would lend themselves to). So, sadly, I haven’t commented my game making process at all (as writing a story based game in a short time seems, to me at least, to be a challenge bound to end in poor code as there is not time to create an editor for your game’s resources). In fact, there is one line of code which, to me, stands out as the single worst line of code in the whole game:

    //play music
    memset(stream, 0, len);

Yes – the time constraint defeated me on at least one account :-(.

Anyway, the game I made:

 

You are a member of a crew on a space ship when you wake up to find the lights aren’t functioning. You have your camera with you to use for light if necessary (I forgot to update the dialogue to reflect this >.<).

About the game-

The levels are randomly generated

When you use a light source (flare or camera flash) it takes a moment for your eyes to accustom themselves to the dark once more.

The monster will be stunned if you use the flash on him (I don’t think my dialogue makes this explicit enough – the game would just be repeatedly dying to the monster without this information).

Hopefully it will be fun :-). The only line of code I can think of which I haven’t tested is the displaying of the victory splash screen at the end of the game^_^! Hopefully people will test that for themselves.

 

LINK: http://dl.dropbox.com/u/19102639/LD22.zip

 

Now for two weeks of playing and judging everyone else’s games =D!

25 hours in and I realise…

Posted by
Saturday, December 17th, 2011 8:01 pm

That I forgot “SDL_Init” at the beginning of my game… On the plus side it doesn’t look like the function achieves very much :-S.

Discovery!

Posted by
Saturday, December 17th, 2011 5:32 pm

So, at ~22 hours in I made a discovery about C.

Personally, I am a fan of forward declaring all of my functions for code readability, and have only just found out that:

<type> foo(<type>, <type>, …);

<type> foo(<var>, <var>, …)

{ … }

Is legal code where I have been using:

<type> foo(<type>, <type>, …);

<type> foo(<type> <var>, <type> <var>, …)

{ … }
Are there strong opinions on which is better practice? And what are the arguments for them?

Personally I lean towards the former style – it looks more elegant to me.

Issues

Posted by
Friday, December 16th, 2011 3:03 pm

I’ve had two issues in the run up to Ludum Dare:

1. I have been busy this week due to unforeseen circumstances. No further work has happened on the Repton clone (which is particularly sad as it is so close to being finished). When I finish it I’ll post it on SourceForge and will post a link to it on this blog.

2. There is a problem with X on my Linux installation. Fortunately I only just set up MinGW, notepad++ and SDL on my Windows installation, so this will have practically no effect on my development environment whatsoever (except that I no longer will have an undeserved feeling of gosu from using Linux).

Anyway, four hours until the competition and I’m all set! Good luck to all!

Warm up

Posted by
Friday, December 9th, 2011 9:22 pm

I’m very glad to see there is an official warm up :-D! This looks like great fun. As it happens, I have already written a clone of the classic game Repton 3 as my warm up. I am currently polishing off the details of the game (GUI, neatening source code etc). Once all that is done, I shall post it to the warm ups page. If you haven’t played Repton before you simply must give it a go! The game is older than me (it is 26 years old, I am 22), and is still by far better than the vast majority of games on the market today.

My dad meticulously documented all of the maps from all Repton 3 games when he played the original game so that he may remake the game later. Since then he has remade the game twice (as various technologies have died. Specifically the BBC micro and DOS). Hence I shall post all of the map files along with the game. I won’t have the original artwork, though. I should be able to use the music from Repton 3. I ultimately aim for something as close to the original as I can get.

I’m in!

Posted by
Monday, December 5th, 2011 7:28 am

I intend to take this competition as a somewhat masochistic programming exercise. As such I intend to develop in Linux using gedit and makefiles writing my code in C and using SDL (unless I have a good reason to use C++). For the record, apart from the choice of C over C++, this is my usual development environment.

I intend to blog about my design choices in both the game and about how I decide to write it. My hope for the competition is that my blog and source code could hopefully serve as a resource for a beginner programmer (having stumbled through learning to program games, I feel a well documented example would have been very useful).

Of course, given the ludicrous time constraint I cannot guarantee meeting such a hopeful goal! At the least though I hope that something will get hacked together in order to be judged.

An additional goal is to have as little as possible handled outside of source code. E.g. procedurally generating resource images would be nice. However, this goal will soon be thrown out of the window if the competition requires an animated human, say. This is more just a nice thought.

Good luck to all taking part! I look forward to playing your games whether or not I qualify to judge them also :-).

[cache: storing page]