Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Galactic Conquest: GCFONT.PAS (drop in LoadFont replacement) (Announce)

posted by Arjay, 26.10.2010, 11:57

> 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:

Back to the forum
Board view  Mix view
22762 Postings in 2122 Threads, 402 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum