Galactic Conquest: GCFONT.PAS (drop in LoadFont replacement) (Announce)
> Works like a charm!
Good glad to hear it. Thanks for the positive feedback.
> I appreciate the use of this code.
No problem happy to help as/when I can. Note: recently I've been very busy elsewhere (work/life/some project coding) hence I've been very quiet on here.
> Question... is
> there any way to modify this to pass the object name as a parameter
> (maybe via dummyfilename?).
Yes. Do you want the fonts to be stored in the EXE or as separate files? The reason for asking is depending on what you need depends on the end code.
> I'm toying around with the idea of loading multiple fonts within
> the game (ie: font switching/animation).
Ok.
> I can make multiple procedures in the unit (one for each font),
> but wondered if there were a simpler way to just pass in the name
> of the obj (and .obj file...would be identical).
Object files are designed for static linking to the EXE at compilation time or to put it another way object files are basically useful only for times when you want external content built into the binary not as separate files.
Aside from object files there are other ways of including data within the EXE but as object files are a fairly straight forward method I decided to use it for you here. I'll be interested in knowing a little more in terms of what you want to do and will then revisit this code (and similar code I have also written) and see what I can muster up which will be straight forward to use.
> Other updates --
>
> I'm hoping to have this done within a week or so, as I'm headed north with
> our newborn to introduce him to my family (2 months old already!)
Excellent update! Just be sure to introduce him to computers early also ;)
> http://www.godhasanswers.com/main/media/gc/
Ok great thanks! I noted the site changed then the directory disappeared :(
> credit given in both code and game.
Thanks for taking the time to credit folks.
> I'm looking into using different keyboard handling,
but I may simply use
> the Ctrl-Break code I have for popping up a window to quit the game
> (including during all-CPU wars).
Ok.
Complete thread:
- Galactic Conquest v9 beta 55 - sinclaj1, 29.12.2009, 20:53 (Announce)
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- Galactic Conquest v9 beta 55 - Rugxulo, 29.12.2009, 22:05
- Galactic Conquest v9 beta 55 - Deniska, 07.01.2010, 00:53
- Galactic Conquest v9 beta 55 - sinclaj1, 07.01.2010, 05:46
- Galactic Conquest v9 beta 55 - sinclaj1, 08.05.2010, 04:21
- Galactic Conquest v9 beta 55 - Arjay, 08.05.2010, 15:07
- Galactic Conquest v9 beta 55 - rr, 08.05.2010, 21:06
- Galactic Conquest v9 beta 55 - additional feedback - Arjay, 09.05.2010, 21:26
- Galactic Conquest v9 beta 55 - additional feedback - sinclaj1, 13.05.2010, 05:58
- Galactic Conquest v9 beta 55 - additional feedback - Arjay, 19.05.2010, 17:27
- Galactic Conquest v9 beta 55 - additional feedback - sinclaj1, 24.06.2010, 16:01
- Congratulations / Galactic Conquest v9 beta 55 - Arjay, 25.06.2010, 03:37
- Galactic Conquest: GCFONT.PAS (drop in LoadFont replacement) - Arjay, 25.06.2010, 10:16
- Galactic Conquest: GCFONT.PAS (drop in LoadFont replacement) - Arjay, 25.06.2010, 12:20
- Galactic Conquest: GCFONT.PAS (drop in LoadFont replacement) - sinclaj1, 26.10.2010, 05:56
- Galactic Conquest: GCFONT.PAS (drop in LoadFont replacement) - Arjay, 26.10.2010, 11:57
- Galactic Conquest: GCFONT.PAS (drop in LoadFont replacement) - sinclaj1, 26.10.2010, 13:59
- Galactic Conquest: GCFONT.PAS (drop in LoadFont replacement) - rr, 26.10.2010, 21:13
- Galactic Conquest: GCFONT.PAS (drop in LoadFont replacement) - sinclaj1, 26.10.2010, 13:59
- Galactic Conquest: GCFONT.PAS (drop in LoadFont replacement) - rr, 26.10.2010, 21:07
- Galactic Conquest: GCFONT.PAS (drop in LoadFont replacement) - Rugxulo, 27.10.2010, 23:43
- Galactic Conquest: GCFONT.PAS (drop in LoadFont replacement) - Arjay, 26.10.2010, 11:57
- Congratulations / Galactic Conquest v9 beta 55 - Rugxulo, 26.06.2010, 14:59
- Galactic Conquest v9 file compression / UPX vs aPACK - Arjay, 27.06.2010, 00:11
- Galactic Conquest v9 file compression / UPX vs aPACK - Rugxulo, 27.06.2010, 08:10
- TP5_2COM - an example of how to generate a COM file from TP5 - Arjay, 27.06.2010, 13:30
- Galactic Conquest v9 file compression / UPX vs aPACK - Arjay, 27.06.2010, 14:00
- Galactic Conquest v9 file compression / UPX vs aPACK - Rugxulo, 28.06.2010, 06:45
- early Turbo Pascal quirks - Rugxulo, 28.06.2010, 07:02
- Galactic Conquest v9 file compression / UPX vs aPACK - Rugxulo, 28.06.2010, 06:45
- Galactic Conquest v9 file compression / UPX vs aPACK - Rugxulo, 27.06.2010, 08:10
- Galactic Conquest v9 file compression / UPX vs aPACK - Arjay, 27.06.2010, 00:11
- Galactic Conquest: GCFONT.PAS (drop in LoadFont replacement) - Arjay, 25.06.2010, 10:16
- Congratulations / Galactic Conquest v9 beta 55 - Arjay, 25.06.2010, 03:37
- Galactic Conquest v9 beta 55 - additional feedback - sinclaj1, 24.06.2010, 16:01
- Galactic Conquest v9 beta 55 - additional feedback - Arjay, 19.05.2010, 17:27
- Galactic Conquest v9 beta 55 - additional feedback - sinclaj1, 13.05.2010, 05:58
Mix view