|
This thread is locked; no one can reply to it. |
1
2
|
Ha haha..... I'm having trouble with alfont. |
X-G
Member #856
December 2000
|
Quote: I copied it from a tutorial I made and didn't feel like deleting them. What tutorial? Seriously, tell me. I need to know. -- |
Taiko Keiji
Member #8,307
February 2007
|
I havent put it online yet but when I do i'll let you know where to get it.8-) Life could be better, machines could program themselves. Taiko Keiji- |
gnolam
Member #2,030
March 2002
|
If the rest of it looks like that, please don't unleash it upon the world... -- |
CGamesPlay
Member #2,559
July 2002
|
I don't know if you care, because in any case, it works now, but: The alfont_init didn't make it work, something else you changed did. Remember when we did this? Quote: E:\game stuff\Dev-Cpp\Game Engine/Fonts/abaddon.ttf does not exist file_exists is not dependent on alfont, so having not initialized alfont couldn't have been the problem. -- Ryan Patterson - <http://cgamesplay.com/> |
Tobias Dammers
Member #2,604
August 2002
|
Quote: The question is, can you really depend on it short circuiting? Yes. The C standard mandates short-circuit logic. Quote: What tutorial? Seriously, tell me. I need to know. "Teach Yourself How Not To Do Things Right In 24 Hours" Personally, I'd do:
...but that's just me. --- |
Taiko Keiji
Member #8,307
February 2007
|
Even when I got it to work, it said this file does not exist but then it continued with the program and loaded the font just fine. The tutorial isn't meant to be the simplest and prettiest. It's meant for beginners to get a grasp of how the most basic of allegro functions work. Life could be better, machines could program themselves. Taiko Keiji- |
CGamesPlay
Member #2,559
July 2002
|
Quote: Even when I got it to work, it said this file does not exist but then it continued with the program and loaded the font just fine. Ah, you are correct. I misinterpreted the documentation for file_exists. It should read: file_exists("Fonts/abaddon.ttf", FA_ALL, NULL). Quote: Have you tried to make any tutorials for other beginners? NO, then shut up, atleast i'm trying to help by sharing what knowlege I have. You know what happens when you assume, right? -- Ryan Patterson - <http://cgamesplay.com/> |
X-G
Member #856
December 2000
|
Yeah, the problems begin with that knowledge is misleading and contains horrible coding practices no one should ever be taught. -- |
Taiko Keiji
Member #8,307
February 2007
|
My bad, I was just trying to help some people who were in the same boat I once was; and obviously still am. So I added a few brackets, it's just to show how it's laid out. Other than that it really is just basic loading a Bitmap fron a file, loading a font( correctly, not anything to do with this thread), and displaying a few different things using a buffer. That's all. Sorry for making assumptions by the way. Life could be better, machines could program themselves. Taiko Keiji- |
|
1
2
|