game programming youtube video
Mike Farrell

I got a funny idea today to put together a blitz programming youtube video. Essentially I recorded myself putting together a little 2D game using allegro.

I had no idea what I was gonna do even as I was starting to code, nonetheless I ended up with something pretty funny.

http://www.youtube.com/watch?v=P1MvnsTlJ9E

StevenVI

You should have shown the game in action. And sped it up. I got impatient and skipped over many many minutes of it.

Mike Farrell

its a real time video, so I didn't pause it at all except to split the parts. Part 2 shows the game, as does part 1.5 (stupid youtube cut the video off for part 1)

piccolo

try doing that for a mmrpg

Neil Black

We'll leave that up to you, piccolo. But I won't guarantee we'll watch it.

Archon

Some issues with the video: I prefer to return negative numbers for failures (eg. set_gfx_mode), 0 for success and 1 for "the end result is the same, but it's not as you expected".

Fortunately you were smart and didn't show the results of compiling your code :P

piccolo
Quote:

Fortunately you were smart and didn't show the results of compiling your code

i think he did show it really quick one time in vid 1.5 then he showed a quick debug

Vanneto

What IDE is you using?

Mike Farrell

I actually don't bother with IDE's for small projects.

Its just a text editor - kwrite that I personally colored with dark blue settings cause its better on my eyes, and a linux commandline for compilation.

I show the game in its entirely several times in 1.5 and in 2 towards the end.

Slartibartfast

It was interesting and amusing to watch, good job.
It was also really funny to watch you make a mistake and then think "no no no! you should have done X" or "argh! the variable is named "dead" not "alive"!", and then watch you fix it :)
A couple of things that did bother me enough to post here are:
Doing random()/RAND_MAX (I remember you doing it in one point, not sure if you fixed it when I wasn't paying attention) is pointless. Since both should be integers it will always return 0.
Also, doing random()%something works, but is not that great of an idea as IIRC it will give you lower quality random numbers. (I admit it doesn't really matter for a game like this.)

Also, you fiddled with the background image way too much :P

And some random stuff I had to say:
The game is incomplete, but looks cool enough :)
For these kinds of games I usually make do with the primitives since I'm too lazy to draw stuff :P

Mike Farrell

hah! you're right. I forgot to cast the divisor to float, thus all of them are moving at the same speed to the left.

oh well. i didn't realize that til you said something.

yea the bg image was pissing me off. I just gave up and put a simple blend.

Its clearly not finished but I got bored with it. You can go off infinitely in any direction but down. But its good enough for the vid

ixilom

Best of the video was the music :P

Trezker

Damnit, you stole my idea! ;)

Just a few weeks ago I thought it'd be cool to put a video like this on youtube. But I'm just not crazy enough to actually go through with it.

Mark Oates

Cool. I want to see more videos like this from more people! (sped up of course)

Vanneto

What be the filming appz for filming?

ReyBrujo

This could be funny for SpeedHacks :)

Mike Farrell

I used the only video capture program for linux that doesn't utterly dissapoint me: xvidcap

Jonny Cook

That's really cool. I like looking at peoples source code because it interests me to see the way people do things. This is even better! I get to see the thought process as well! More people should do this kind of thing, it's neat.

kenmasters1976

That's cool!. It's hard to find anything Allegro-related on youtube so, Well Done!.

nonnus29

Pretty cool, good job. Kinda boring though...

Mike Farrell

Here be the game

http://ltsword.allegronetwork.com/src/marineman.zip

it'd be cool to add like sidescrolling levels and new kinds of enemies, but alas i haven't the time. at least not for awhile

Neil Black

This kicks the ass of everything I've ever done. It makes me kinda sad to think of that.

psycho

Hey guy, this rocks :o
Taught me some things now.

And by the way, Compiz rocks, too ;D

BAF

You make a lot of typos. :P

Mike Farrell

you'd be surprised now much you mess up when the "camera's rolling"

Jonny Cook
Quote:

You make a lot of typos. :P

That's about how many I make. Sometimes I'm worse.

Neil Black

My entire source code is a typo. So I've developed a new method:

Get and infinite amount of monkeys, and an infinite amount of computers, and have all the monkeys start typing on the computers. Eventually, one of the monkeys will type out exactly what you need!

Unfortunately I could only afford one monkey and one computer, and all I got was out of the deal was some stupid play by a guy named "Shakespeare".

ImLeftFooted
piccolo said:

try doing that for a mmrpg

Mm, whens the next speedhack? I want try to do an MMO again...

Albin Engström

I think more people should post videos like this, especially like ReyBrujo said about speedhack and similar competitions.

Jonny Cook

agrees

Johan Halmén

You should have been thinking loud.

XaTrIxX

Problem solved....sorry

Thread #594974. Printed from Allegro.cc