Dark Bit Factory & Gravity

PROGRAMMING => Freebasic => Topic started by: Xalthorn on September 02, 2008

Title: SPECCY Source
Post by: Xalthorn on September 02, 2008
This time I've attached a zip file with a fully compilable source folder with images, the music, a .bat to compile it and an exe of it compiled.  I've posted the source here for browsing as well.

I've just noticed that the comment for the masked picture drawing hasn't changed since I first wrote it.  In this demo, it wouldn't matter so much if things left the drawing area slightly, as the drawing area is in the centre of a canvas and any excess is removed (ignored) by the scaling routine.  Ah well.

EDIT: Oh dear, the source is too long to post.... you'll have to get it from the zip
Title: Re: SPECCY Source
Post by: Jim on September 03, 2008
Thanks for all the great source code!

Jim
Title: Re: SPECCY Source
Post by: Xalthorn on September 03, 2008
No worries, I figure that's the whole point of these forums.  See what other people are doing, show people what you're doing, and above all, share experience and source so that we can all improve ourselves.

If someone can understand my code and learn something from it, brilliant :D

I was shocked to see how large my .bas file was for this and Xalboy, it's amazing how quickly these things grow when you just jump in and start coding ;)
Title: Re: SPECCY Source
Post by: Shockwave on September 03, 2008
It's really nice of you to post these things Xal, so I want to echo Jims comments.

I'm really happy that you joined!  :) I'm happier still that you are posting these really nicely commented examples.
Title: Re: SPECCY Source
Post by: Xalthorn on September 03, 2008
It's really nice of you to post these things Xal, so I want to echo Jims comments.

I'm really happy that you joined!  :) I'm happier still that you are posting these really nicely commented examples.

Aww thanks.

I'm just pleased I found this place (well, was reminded that it existed by Jim), I've not had so much fun in ages.
Title: Re: SPECCY Source
Post by: gooner on September 03, 2008
Cheers Xalthorn  for the source code.I will have agood look at it later and see if i can work out whats going on.k++
 :cheers:
Title: Re: SPECCY Source
Post by: Xalthorn on September 03, 2008
Cheers Xalthorn  for the source code.I will have agood look at it later and see if i can work out whats going on.k++
 :cheers:

You're welcome, don't hesitate to ask questions about it on here if you want.  Throughout the challenge I did some rather bizarre stuff.  For example, if you look at the source for bluegold and look at how I did the shadows for the balls, it might look odd.

This one does something my others didn't, it actually messes around with the window that the demo is running in, shaking it about for the earthquake bit.  There's so much we can do with the windows now that we can grab the window handle :D
Title: Re: SPECCY Source
Post by: DrewPee on September 04, 2008
Xalthorn,
I just LOVE that! wicked wicked stuff - it is something that I would love to have done, especially in the correct resolution! wicked stuff!
Thanks for the code!

DrewPee
Title: Re: SPECCY Source
Post by: Xalthorn on September 04, 2008
Xalthorn,
I just LOVE that! wicked wicked stuff - it is something that I would love to have done, especially in the correct resolution! wicked stuff!
Thanks for the code!

DrewPee

Aww thanks, and you could always grab the source and mess around with it...