HFIELD
所属分类:游戏
开发工具:Unix_Linux
文件大小:136KB
下载次数:3
上传日期:2009-05-11 10:44:00
上 传 者:
Awl2007
说明: 游戏高空视野引擎源代码
游戏高空视野引擎源代码
文件列表:
ORIGINAL\ES.DOC (3831, 1995-10-23)
ORIGINAL\FILE_ID.DIZ (287, 1995-10-23)
ORIGINAL\ORDER.TXT (12138, 1995-10-23)
CLOUD.PCX (29905, 1995-09-29)
CWSDPMI.DOC (2151, 1995-03-21)
CWSDPMI.EXE (25648, 1995-03-21)
FILE_ID.DIZ (288, 1995-10-23)
GROUND.PCX (54995, 1995-09-29)
HEIGHT.PCX (53445, 1995-09-29)
HFIELD.C (14875, 1995-10-23)
HFIELD.EXE (57344, 1995-10-23)
POPUP.C (7698, 1995-10-22)
ORIGINAL (0, 1995-10-24)
Height Field Engine Port V1.0 Jonathan Griffiths 25 Oct 1995
=========================================================================
Hello there djgpp users!
This package is a port of a height field engine written for watcom using the
wordup graphics toolkit version 5.1. I have changed the source to use
JLib V1.0 so it will now run under linux too. JLib can be found at:
x2ftp.oulu.fi /pub/msdos/programming/djgpp2/jlib_1-0.zip
The original engine came with an order form for wgt and a list of the authors
other productions. I have left this information intact in the directory
"original". You can get the original package from:
x2ftp.oulu.fi /pub/msdos/programming/wgt/wgten1.zip
First let me say thanks to Chris Egerter for putting the source in the
public domain. Thanks Chris!
I have made a couple of changes to the original code, mostly a couple of
simplifications and optimisations. I think you will find the results quite
impressive. To compile the engine, assuming you have JLib installed for
a 320 x 200 target, change to this directory and type the following:
DOS Users:
gcc hfield.c -lj -lpc -lm -O3
strip a.out
stubify a.out
Now you can run it by typing: a.exe
A pre-compiled DOS binary (hfield.exe) is provided.
Linux Users:
gcc hfield.c -lj -lvga -lvgagl -lm -O3
Now you can run it by typing: a.out
Remember that you have to be setuid root to run svgalib programs.
If you are using JLib version 1.0 (which is the latest release version as I
write this) then you can make the menus better by copying the file popup.c
to your jlib/source/misc/ directory, overwriting the existing version. If
you remake the library before compiling the engine your popup menus will
look much nicer. The new version of popup.c formats strings containing
newlines correctly. The precompiled binary is built from the new popup.c.
Notes on running the precompiled executable:
You must have cwsdpmi.exe in the path for the program to run, or
be running under a DPMI host such as windows. The program will auto-detect
whether DPMI is present and load cwsdpmi.exe if needed. If you experience
problems running under Windows (for example, the demo freezes at the first
menu), you will need to create a .PIF for the executable (using the PIF
editor in Windows), and specify more memory for the program (around 300k low
minimum and 1 meg extended minimum should do it). Of course, if you are
running djgpp you know all about this!
Copyright Stuff:
cwsdpmi is copyrighted free software. You can get its source code from
http://www.delorie.com or ftp.delorie.com and its mirrors. The stub program
attached to the executable is also copyrighted free software. You can get
source code for the stub, the program used to compile it, and the whole
djgpp C/C++ development system from the same address. cwsdpmi and djgpp are
brought to you by the hard work of great people like D J Delorie and Charles
Sandmann. Thanks guys!
Enjoy yourselves,
Jon Griffiths (jpg@cs.waikato.ac.nz untill jan '96)
p.s Please report your success or failure running the demo under OS/2,
and whether you needed to do anything special to get it to run. Also
if you failed to run the demo on a machine without a math coprocessor
I would like to hear about it (I haven't figured out the v2 approach
to fp emulation yet). Cheers!
近期下载者:
相关文件:
收藏者: