Dark Bit Factory & Gravity
PROGRAMMING => Freebasic => Topic started by: Xalthorn on July 02, 2008
-
(Updated with source files now)
I hesitate to post this as I'm not really happy with it, but I also want to take the techniques I've learned from doing it forward into a 'proper' project so I need to draw a line under it soon and I might as well share what I've been messing around with.
It's a quick little scroller I threw together and carried on bolting little bits on (always a bad idea). I will release the code when I've tidied it up so it doesn't embarrass me as much as it would now.
The code is a huge mess of unused variables, partial routines that I couldn't work out how to include, and so on. It has no music or sound effects because it doesn't really have a theme or progression that would warrant it.
(I'd never make a salesman would I)
Although there are a couple of non text bits in there, the whole point of the thing was to test a concept for text scrollers. As such, you won't find any 3D routines in there but you'll find lots of text.
Anyway, now I've REALLY sold it to you, download it and have a giggle.
Xal.
-
Great! I love it! Keep it on
-
Xalthorn this is fantastic I love the reflections and the way the tiny text gets pushed around. You definately got some skills 8) karma comin your way for a great prod
-
Unbelievable. This is truly rocking. Please add some music. It is very
good !!!
K++
-
I like it, but there're more envelopes to be pushed ;)
Jim
-
Thanks for the comments folks, I've nearly tidied the code up so I'll post that in a bit.
I considered adding music, and even popped the code in and threw a tune at it. However, it didn't really fit as I kept changing what the demo did so the music would never be more than a simple backing track. You may as well simply pop a tune on your PC and play that whilst watching the thing :)
I like it, but there're more envelopes to be pushed ;)
Jim
Hehe, I know. This is hardly groundbreaking or even nudging envelopes. It started as a little concept but I kept adding things to it (without any coordination or planning) simply because I could.
As a result, rather than trying to wrap a full demo around it, I figured I'd step back, take what I'd learned and plan (scary concept) something bigger.
I intend to use that proportional font quite heavily for all sorts of things, including a game project that I have planned (there's that scary word again).
I had fun (?!?) coding the plasma, drawing from a source in C I found on the net. I had to change some things to make the gradient smooth (the original code had definite banding), which confused me for a while and then I threw it down to a single colour.
There is a commented line in my source that changes the plasma colour but it didn't look right for that use as the background then started to attract more attention than the text. It also messed up the anti-aliasing on the font as I'm cheating rather than using alpha mixing.
-
Okay, the source files are now in the updated zip.
Help yourself to the code and stuff, and if you want me to try to explain why the heck I did something in a certain way, just ask.
On the flip side, if you're scratching your head because you know a better way to do something I did, PLEASE PLEASE tell me.
If you read through the source, you may get the impression that I was aiming to do more with the principle behind it than I demonstrated. If you get this impression, then you'd be perfectly correct. I was aiming to make a fairly generic object handling system. I was tempted to drop some fun objects in there with the scroller, but it felt like I would be adding stuff just because I could.
Which all boils down to the fact that I'll probably use this system for something a little bigger next time :D
-
More K for supplying code!!!
Looking forward to see more projects by you!
-
Thanks for sharing the source, BTW what version of FB are you using I think you need to update. Also you should use rbz's tinyPTC_ext it has fixed some issues (mmx + refresh rate related) its only available here at dbf and is excellent for pixel pushing
-
Thanks for sharing the source, BTW what version of FB are you using I think you need to update. Also you should use rbz's tinyPTC_ext it has fixed some issues (mmx + refresh rate related) its only available here at dbf and is excellent for pixel pushing
I'm using the version with modifications found on here, following Shocky's tutorial on getting going with FB.
when I run 'fbc -version' it says I'm using Version 0.15 for win32.
-
The current release is 0.18. Maybe a good idea to switch now so that others interested in your code / code by others will compile without having to use commandline parameters.
Just looking through the source preaty well coded with plenty of inlining in there too :) I like what I see you keep your code lean and mean. Only real problem is the bloat but it isnt your code bloating it maybe its crt.bi?
-
yeah excellent stuff xalthorn!
i had a good look at your code and i think youve done quite a good job there. i use a diffrent style when i code in that i try to make my basic look a bit like oop and i try to keep every thing in types but for the way you code i dont think theres much to falt there.
-
Thats amazing Xalthorn dude, welldone. Great work and effort :)
Cheers,
Clyde
-
Astonishingly good for a first FB demo Xalthorn :) :clap:
I often wondered what you would make if you had proper graphics capabilities, please add a song next time though :D
Have some good karma!
-
Wow! Great effects mate. Keep these coming.
-
Love what you have done there - excellent visuals!
Andy