AminetAminet
Search:
84479 packages online
About
Recent
Browse
Search
Upload
Setup
Services

dev/c/nc2sdl.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:convert from Ncurses to SDL
Author:lombi at iprimus.com.au (Lorence Lombardo)
Uploader:lombi iprimus com au (Lorence Lombardo)
Type:dev/c
Version:22-Jan-2012
Architecture:m68k-amigaos
Date:2012-01-21
Download:http://aminet.net/dev/c/nc2sdl.lha - View contents
Readme:http://aminet.net/dev/c/nc2sdl.readme
Downloads:960

How to convert from Ncurses to SDL by Lorence Lombardo.


Although I am using GeekGadgets 68k this readme is also relevant to other
architectures and environments.

Steps:-

1. You need to have the SDL implementation of ncurses. i.e. pdcurses
 
   http://aminet.net/package/dev/lib/libpdcurses
 
   Because I already have ncurses in my GG environment I have made a
   "pdcurses" directory in my "GG:include". This also requires a small
   modification to the pdcurses includes so I have provided my pdcurses
   includes in this archive.


2. You need to have some ncurses software to compile which is provided in
   this archive. I am using "bastet-0.41" which is a game by
   Federico Poloni. This was originally obtained from here:-
   http://fph.altervista.org/prog/files/bastet-0.41.tgz


3. In the game sources I have commented all occurrences of 
   "#include <ncurses.h>", "#include <curses.h>" and "#include <term.h>".

   These have been replaced respectively with the following:-
   "#include <pdcurses/curses.h>", "#include <pdcurses/curses.h>" and
   "#include <pdcurses/term.h>" .


4. In the "Makefile" compare the "LDFLAGS" changes to that of the original.


Additional notes:-

For this readme I have chosen to use the FPU version of libpdcurses.

The games keyboard controls are best and most responsive when playing
level 9. 



Feeling bored ?  :)
Why not check out this URL ?

http://home.iprimus.com.au/lombi/1/homepage.htm



Contents of dev/c/nc2sdl.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[unknown]                  101     119  84.9% -lh5- a29a Oct 15  2004 nc2sdl/bastet-0.41/authors
[unknown]                 1841    6063  30.4% -lh5- 5500 Oct 15  2004 nc2sdl/bastet-0.41/bast-old.c
[unknown]                 1907    4814  39.6% -lh5- e1bc Jan 22 10:03 nc2sdl/bastet-0.41/bast.c
[unknown]                   39      46  84.8% -lh5- 5ecb Jan 22 10:13 nc2sdl/bastet-0.41/bast.d
[unknown]                  171     237  72.2% -lh5- 777d Oct 21  2004 nc2sdl/bastet-0.41/bast.h
[unknown]                  718    1250  57.4% -lh5- 3602 Oct 15  2004 nc2sdl/bastet-0.41/bastet.6
[unknown]                  752    1730  43.5% -lh5- 591e Oct 15  2004 nc2sdl/bastet-0.41/bastet.h
[unknown]                   40     160  25.0% -lh5- b074 Jan 22 10:50 nc2sdl/bastet-0.41/bastet.scores
[unknown]                  104     180  57.8% -lh5- 60c8 Oct 15  2004 nc2sdl/bastet-0.41/bugs
[unknown]                  383     781  49.0% -lh5- 36ac Oct 15  2004 nc2sdl/bastet-0.41/config.h
[unknown]                 7015   18009  39.0% -lh5- e98e Oct 15  2004 nc2sdl/bastet-0.41/copying
[unknown]                 4032   16126  25.0% -lh5- 0463 Jan 22 10:05 nc2sdl/bastet-0.41/game.c
[unknown]                   51      62  82.3% -lh5- 92de Jan 22 10:13 nc2sdl/bastet-0.41/game.d
[unknown]                  309     511  60.5% -lh5- 0199 Oct 15  2004 nc2sdl/bastet-0.41/game.h
[unknown]                 1260    3221  39.1% -lh5- 9d6f Jan 22 10:06 nc2sdl/bastet-0.41/highscore.c
[unknown]                   53      75  70.7% -lh5- baa7 Jan 22 10:13 nc2sdl/bastet-0.41/highscore.d
[unknown]                  141     223  63.2% -lh5- 9286 Oct 15  2004 nc2sdl/bastet-0.41/highscore.h
[unknown]                 2937    8265  35.5% -lh5- 1ec2 Jan 22 10:08 nc2sdl/bastet-0.41/main.c
[unknown]                   48      58  82.8% -lh5- 96db Jan 22 10:13 nc2sdl/bastet-0.41/main.d
[unknown]                  121     181  66.9% -lh5- 6beb Oct 15  2004 nc2sdl/bastet-0.41/main.h
[unknown]                  595    1135  52.4% -lh5- 997a Jan 22 10:41 nc2sdl/bastet-0.41/Makefile
[unknown]                  534    1036  51.5% -lh5- 53d3 Oct 19  2004 nc2sdl/bastet-0.41/Makefile.orig
[unknown]                  384     594  64.6% -lh5- 614e Oct 15  2004 nc2sdl/bastet-0.41/news
[unknown]                 1306    2395  54.5% -lh5- 48eb Oct 15  2004 nc2sdl/bastet-0.41/readme
[unknown]                 2553    5023  50.8% -lh5- d918 Oct 15  2004 nc2sdl/bastet-0.41/README-Petris
[unknown]                  148     207  71.5% -lh5- c573 Oct 15  2004 nc2sdl/bastet-0.41/todo
[unknown]               132172  132172 100.0% -lh0- 61f8 Jan 22 10:31 nc2sdl/bastet.exe
[unknown]                   40     160  25.0% -lh5- b074 Jan 22 10:50 nc2sdl/bastet.scores
[unknown]                  826    1653  50.0% -lh5- dcb2 Jan 22 13:45 nc2sdl/nc2sdl.readme
[unknown]                12106   49915  24.3% -lh5- 15ac Jul 15  2008 nc2sdl/pdcurses/curses.h
[unknown]                 1536    4013  38.3% -lh5- fe0a Jan 22 08:50 nc2sdl/pdcurses/curspriv.h
[unknown]                  490    1512  32.4% -lh5- 65e3 Jan 22 08:49 nc2sdl/pdcurses/panel.h
[unknown]                  627    1570  39.9% -lh5- 3c05 Jan 22 07:49 nc2sdl/pdcurses/term.h
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        33 files  175340  263496  66.5%            Jan 21 20:59

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>