Dark Bit Factory & Gravity
PROGRAMMING => Freebasic => Topic started by: ninogenio on April 11, 2007
-
Ok heres the source to my typewritter its not very commented but thats because im not very good at commenting my code.
it should be fairly self explanitory but if theres anythings anyones not sure off just give me a shout.
-
Cheers m8 ill have look at this later when kids are asleep
:goodpost:
-
Overkill code, far, far too complicated for what it is doing, but it does the job, needs to be fully commented to help Codeman as it has some quite confusing things such as pointers there for someone new to Freebasic.
Also just one more thing, there is no need to be using screensync.. You should be using rbraz's version of tinyptc, screensync is un-necessary, so Codeman if you have your version of tinyptc updated, you can safely take that line away. Also the code this typer seems far too complicated for what it is doing.
I will make a tutorial soon that is easy to understand for everyone, this listing would be of more use to someone with a fairly good idea of what they are doing, thanks for posting it nino, this is not negative criticism, I just don't want codeman or any other new coders to give up because it looks difficult.
-
Nice one Nino :)
@Nick: You paraphrased "It's too complicated for what it's doing" 4 times there :P
However, he is right..
-
I overcomplicated my reply :P I'll give myself some bad Karma :D
-
No I wanna do it!!
(BTW sorry, this is going off-topic.)
-
You can give me bad Karma too if you want.
Sorry for the off topicness.
-
I really like typewriters in general ... keep it up!
-
yeah your right shockwave its very complicated i wrote it for my own purposes and just put it up incase someone might find yousfull but your right its not really worth looking a if your a begginer there is much easyer ways of doing this folks.
and just to balance it out ill give you k shock.
-
Phew
I nearly started crying when i looked at the code lol
Still appreciate you posting the code m8 :)
-
@ninogenio:
Didn't look at your source - but it doesnt matter in the beginning if you may have
a wasty coding style as long as you achieve what you wanted. In the beginning
I think this is just because you may not know every instruction or command available.
But this makes it even more fun and actually harder to achieve the fx you want.
I remember my first intros on the amiga in assembly. The code was so shitty - but
it does what I wanted to. The main reason was - as soon as I read the description
of some instructions I start thinking about how I can use the instructions to achieve
the fx I wanted to code. If I come up with a solution I immediately started to code,
although if I would have continued reading some more description of other instructions
I would have realized that with them it could be done more elegantly...
But who cares in the end - we are all in for the fun of it !!!
-
it doesnt matter in the beginning if you may have a wasty coding style as long as you achieve what you wanted. In the beginning I think this is just because you may not know every instruction or command available.
true reminds me of a time i coded a bitmap before I learned about loops thank god there was another way. Hey nino I dont think you did to bad at all nearly 90% of that code is actually the font that you used which is bound to take up a bit of memory although I cant comment on the executable code dont know FB too well
-
The writer works fine, I didn't mean to be harsh, I'm just making sure that everyone gets the most they can out of here. :)
-
@SW:
Definately. I guess ninogenio and all of us know that, Shocky. I just posted my
last post because it really reminds me on my first steps in programming - and
still nowadays - I sometimes realized that I could have solve some programming
problems a bit earlier / easier if I'd checked out some more opportunities concerning
programming languages/frameworks and techniques.
-
true reminds me of a time i coded a bitmap before I learned about loops
Actually, if you look at an Atari ST game like R-Type, you'll find the level with the big ship on it (L3?) is all hard coded into optimised movem.l instructions. It was the only way to get it fast enough. Imagine that monster!
So who's going to do their own version of a typewriter now?
Jim
-
Thanks Nino :)
-
Thanks Clyde.