dos-tpdemos

所属分类:Linux/Unix编程
开发工具:Pascal
文件大小:0KB
下载次数:0
上传日期:2018-11-24 19:34:52
上 传 者sh-1993
说明:  Borland Turbo Pascal 7中的Retro编程
(Retro programming in Borland Turbo Pascal 7)

文件列表:
LICENSE (1071, 2018-11-24)
TURBO.DSK (354, 2018-11-24)
TURBO.TP (4034, 2018-11-24)
assets/ (0, 2018-11-24)
assets/cube.vec (993, 2018-11-24)
assets/cubglenz.vec (993, 2018-11-24)
assets/smile64.pcx (5395, 2018-11-24)
assets/tricube.vec (1222, 2018-11-24)
assets/trigerow.vec (971, 2018-11-24)
assets/triglenz.vec (1331, 2018-11-24)
build/ (0, 2018-11-24)
buildall.bat (1090, 2018-11-24)
screenshots/ (0, 2018-11-24)
screenshots/demo01.png (928, 2018-11-24)
screenshots/demo02.png (6383, 2018-11-24)
screenshots/demo03.png (6312, 2018-11-24)
screenshots/demo04.png (14298, 2018-11-24)
screenshots/demo05.png (5578, 2018-11-24)
screenshots/demo06.png (2977, 2018-11-24)
screenshots/demo07.png (3291, 2018-11-24)
screenshots/demo08.png (1779, 2018-11-24)
screenshots/demo09.png (2556, 2018-11-24)
screenshots/demo10.png (3221, 2018-11-24)
screenshots/demo11.png (2436, 2018-11-24)
screenshots/demo12.png (2861, 2018-11-24)
screenshots/demo13.png (12268, 2018-11-24)
screenshots/demo14.png (8111, 2018-11-24)
screenshots/demo15.png (4958, 2018-11-24)
screenshots/demo16.png (5154, 2018-11-24)
screenshots/demo17.png (4716, 2018-11-24)
screenshots/demo18.png (2891, 2018-11-24)
screenshots/demo19.png (5784, 2018-11-24)
screenshots/demo20.png (2370, 2018-11-24)
screenshots/tp.png (10460, 2018-11-24)
src/ (0, 2018-11-24)
src/demo01.pas (969, 2018-11-24)
src/demo02.pas (2413, 2018-11-24)
src/demo03.pas (2575, 2018-11-24)
... ...

# dos-tpdemos Retro programming in Borland Turbo Pascal 7 ![Screenshot](https://github.com/screenshots/tp.png "Turbo Pascal IDE") ## Prerequisites To build and run the Borland Turbo Pascal demos, you must first install the following tools: - [DOSBox](https://github.comhttps://www.dosbox.com/download.php) - [Borland Turbo Pascal](https://github.comhttps://winworldpc.com/product/turbo-pascal/7x) ### Install DOSBox #### openSUSE `$ sudo zypper install dosbox mtools p7zip-full` #### Ubuntu `$ sudo apt install dosbox mtools p7zip-full` #### Configuration When starting `dosbox` the first time, the configuration file `~/.dosbox/dosbox-0.74-2.conf` will be generated ### Install Borland Turbo Pascal 1. Download `Borland Turbo Pascal 7.1 (3.5).7z` 1. Create a directory which will contain the DOS C: drive ``` $ mkdir ~/DOSBox ``` 1. Extract the downloaded Turbo Pascal archive ``` $ 7z x "Borland Turbo Pascal 7.1 (3.5).7z" ``` 1. Extract the Borland Turbo Pascal disk images ``` $ cd "Borland Turbo Pascal 7.1 (3.5)"/ $ mkdir tpsetup $ for i in *.img; do echo $i; mcopy -m -i $i :: tpsetup; done ``` 1. Move the extracted files to the DOS C: drive ``` $ mv tpsetup ~/DOSBox/ ``` 1. Configure DOSBox Edit `~/.dosbox/dosbox-0.74-2.conf` and add the following autoexec options ``` [autoexec] mount c ~/DOSBox path %PATH%;C:\TP\BIN c: ``` 1. Start `dosbox`and execute the Borland Turbo Pascal installation program ``` $ dosbox C:\> cd tpsetup C:\TPSETUP> install.exe ``` In the installation program, select the following options ``` Enter the SOURCE drive to use: C Enter the SOURCE Path: \TPSETUP Install Turbo Pascal on a Hard Drive Start Installation ``` ## Build demos Link the `dos-tpdemos` git repository to the DOS C: drive ``` $ ln -s ~/git/github/dos-tpdemos ~/DOSBox/tpdemos ``` #### Build demos from DOS terminal 1. Execute build script ``` C:\TPDEMOS> buildall.bat ``` The demos will be located in the `C:\TPDEMOS\BUILD` directory 1. Run demo ``` C:\TPDEMOS> build\demo01.exe ``` #### Build demos from Borland Turbo Pascal IDE 1. Start Borland Turbo Pascal IDE ``` C:\TPDEMOS> turbo ``` 1. Configure Borland Turbo Pascal Press `ALT+O` for options Select `Directories` and type in the following directories ``` EXE & TPU directory: C:\TPDEMOS\BUILD Include directories: C:\TPDEMOS\ASSETS Unit directories: C:\TP\UNITS;C:\TPDEMOS\SRC\LIB ``` Select `Compiler` and the following options ``` [X] 286 instructions ``` Select `Environment`, `Preferences` and the following options ``` [ ] Auto save [ ] Change dir on open ``` Select `Environment`, `Editor` and the following options ``` [ ] Create backup files ``` Select `Save` 1. Open demo source file Press `F3` to open file 1. Build demo source file Press `F9` to build file 1. Run demo Press `ALT+R` and `R` to run demo ## License Licensed under MIT license. See [LICENSE](https://github.comLICENSE) for more information. ## Authors * Johan Gardhage ## Screenshots ![Screenshot](https://github.com/screenshots/demo01.png "Dot cube") ![Screenshot](https://github.com/screenshots/demo02.png "Dot torus with z light source") ![Screenshot](https://github.com/screenshots/demo03.png "Dot ball with z light source") ![Screenshot](https://github.com/screenshots/demo04.png "Dot tunnel with z light source") ![Screenshot](https://github.com/screenshots/demo05.png "Starfield with z light source") ![Screenshot](https://github.com/screenshots/demo06.png "Rotating starfield with z light source") ![Screenshot](https://github.com/screenshots/demo07.png "Morphing dot objects with z light source") ![Screenshot](https://github.com/screenshots/demo08.png "Wireframe cube") ![Screenshot](https://github.com/screenshots/demo09.png "Hiddenline wireframe cube") ![Screenshot](https://github.com/screenshots/demo10.png "Flat shaded object with z light source") ![Screenshot](https://github.com/screenshots/demo11.png "Flat shaded cube with z light source") ![Screenshot](https://github.com/screenshots/demo12.png "Flat shaded cube with real light source") ![Screenshot](https://github.com/screenshots/demo13.png "Flat shaded cube on fire with z light source") ![Screenshot](https://github.com/screenshots/demo14.png "Gouraud shaded object") ![Screenshot](https://github.com/screenshots/demo15.png "Gouraud shaded cube with z light source") ![Screenshot](https://github.com/screenshots/demo16.png "Gouraud shaded cube with real light source") ![Screenshot](https://github.com/screenshots/demo17.png "Glenzvector object") ![Screenshot](https://github.com/screenshots/demo18.png "Glenzvector cube with z light source") ![Screenshot](https://github.com/screenshots/demo19.png "Texture mapped cube") ![Screenshot](https://github.com/screenshots/demo20.png "Vector balls")

近期下载者

相关文件


收藏者