Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
4002b21
src/gfx/fades.cpp: Made a few file-internal functions static.
rsaikkon Nov 5, 2017
30e4ad2
Move draw_with_vircr_mode check inside fillrect function
rsaikkon Nov 5, 2017
5dca763
Add a missing include to gfx/font.h (it refers to a Bitmap)
rsaikkon Nov 5, 2017
7d26c0d
src/io/dksfile.cpp: Remove unused variable
rsaikkon Nov 5, 2017
6306290
Clean up command-line parameter handling slightly
rsaikkon Aug 24, 2013
6ca0a4e
Improve all_bitmaps handling
rsaikkon Aug 24, 2013
8abf878
Optimize clip rectangle handling in Bitmap::blit()
rsaikkon Aug 24, 2013
2963fd4
Minor cleanup in refresh handling
rsaikkon Aug 24, 2013
3bc82d4
Minor cleanup in fillrect code
rsaikkon Aug 24, 2013
44ac4db
Preload all six mod files at start
rsaikkon Aug 24, 2013
33229a3
Support for creating a Bitmap given its data
rsaikkon Aug 24, 2013
3f5e183
Minor fixes to Makefile
rsaikkon Aug 24, 2013
1be2382
Remove unused function
rsaikkon Nov 5, 2017
760ec13
Unified key and mouse handling in menus
rsaikkon Nov 5, 2017
a6f3b73
Keyboard navigation for all menus
rsaikkon Aug 24, 2013
34943ff
Arrow-key navigation for menus
rsaikkon Aug 24, 2013
b9f6681
Minor display cleanup in do_aftermath
rsaikkon Aug 24, 2013
4c11ba6
Code cleanup: move code out of main_menu()
rsaikkon Aug 24, 2013
400d742
Clean up controls handling
rsaikkon Aug 24, 2013
3de563b
Support multiplayer players without roster entries
rsaikkon Aug 24, 2013
58dd5c0
Improve warning dialog UI
rsaikkon Apr 6, 2014
2c476c0
Upgrade to SDL 2.0
rsaikkon Jan 6, 2015
58be150
Fix bug in keyboard navigation of main menu
rsaikkon Nov 5, 2017
db4d487
Use "Anonymous pilot" consistently
lindi2 Nov 5, 2017
92cfdbf
Fix minor memory leak
lindi2 Nov 5, 2017
e083d13
Update build instructions
lindi2 Nov 5, 2017
2808eab
Update TODO list
lindi2 Nov 5, 2017
226a31d
Basic network game support
rsaikkon Aug 24, 2013
ddb472c
Minor bugfixes to network game UI
rsaikkon Apr 5, 2014
84cd9e2
Auto-allocate network game controls
rsaikkon Apr 5, 2014
66477c3
Minor UI improvement in netgame menu
rsaikkon Apr 6, 2014
7aedeea
Add big_warning function
rsaikkon Apr 6, 2014
0c9c291
Make network game client use big_warning
rsaikkon Apr 6, 2014
6f6552e
Asynchronous connect in network game client
rsaikkon May 4, 2014
06b8e97
New font for network game overlay texts
rsaikkon May 4, 2014
175fe34
Clarify network client overlay text
rsaikkon May 4, 2014
b7eea3e
Default to multiplayer when starting host
rsaikkon May 4, 2014
10356ca
Network game server: close connections with no data
rsaikkon May 5, 2014
409474b
Adjustable character and line spacing in fonts
rsaikkon May 10, 2014
9e7d2f9
Support for recoloring and outlining of bitmaps
rsaikkon May 10, 2014
7ca7bb7
Support for coloring and outlining fonts
rsaikkon May 10, 2014
bd2d4d8
Use outlining support for overlay font
rsaikkon May 10, 2014
b353d48
Check for ping timeouts in network games
rsaikkon Dec 30, 2014
3c351bf
Remove undocumented -sdldraw mode
lindi2 Nov 19, 2017
d51e338
Remove broken -2svga mode
lindi2 Nov 19, 2017
631530c
Make -3 the default, implement -1.
lindi2 Nov 19, 2017
7477434
Document Pause/F4
lindi2 Nov 19, 2017
34c46df
Refactor network UI. Remove support for specifying preferred plane
lindi2 Nov 19, 2017
898682e
Use black on cyan for OSD texts
lindi2 Nov 19, 2017
fea2503
Remove unused variable
lindi2 Nov 19, 2017
d420161
Rework network game texts
lindi2 Nov 19, 2017
4204459
Fix client controls when client disconnects
lindi2 Nov 19, 2017
d09c536
Remove chat support for now
lindi2 Nov 19, 2017
16ccac9
Update build instructions
lindi2 Nov 19, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,24 @@ DESTDIR ?=

CXX ?= g++
OPTIFLAG = -O2 -g
SDL_CONFIG ?= sdl-config
SDL_CONFIG ?= sdl2-config
VERSION = 1.0.8
CFLAGS := -Wall -Isrc $(OPTIFLAG) $(CFLAGS_NOSDL) `$(SDL_CONFIG) --cflags` -DHAVE_SDL_MIXER "-DTRIPLANE_DATA=\"$(PREFIX)/share/games/triplane\"" "-DTRIPLANE_VERSION=\"$(VERSION)\""
LDFLAGS =
LIBS := `$(SDL_CONFIG) --libs` -lSDL_mixer -lm
LIBS := `$(SDL_CONFIG) --libs` -lSDL2_mixer -lz -lm
INSTALL_DATA ?= install -m 644
INSTALL_PROGRAM ?= install

COMMON_OBJS = src/gfx/bitmap.o src/gfx/font.o \
src/gfx/gfx.o src/util/wutil.o src/util/random.o \
src/io/sdl_compat.o src/io/video.o \
src/io/sdl_compat.o src/io/video.o src/io/network.o \
src/io/mouse.o src/io/dksfile.o src/io/timing.o
TRIPLANE_OBJS = src/triplane.o src/world/tripai.o \
src/world/tripmis.o src/gfx/fades.o src/menus/tripmenu.o \
src/world/tripmis.o src/gfx/fades.o \
src/menus/menusupport.o src/menus/tripmenu.o \
src/world/terrain.o src/world/fobjects.o src/world/tmexept.o \
src/gfx/extra.o src/settings.o src/world/plane.o src/io/joystick.o src/io/sound.o \
src/world/tripaudio.o
src/world/tripaudio.o src/io/netclient.o
LVLEDIT_OBJS = src/tools/lvledit/lvledit.o
PGDVIEW_OBJS = src/tools/pgdview/pgdview.o
PCX2PGD_OBJS = src/tools/pcx2pgd/pcx2pgd.o
Expand Down Expand Up @@ -83,7 +84,6 @@ install:
mkdir -p $(DESTDIR)$(PREFIX)/share/man/man6
$(INSTALL_DATA) doc/triplane.6 $(DESTDIR)$(PREFIX)/share/man/man6/triplane.6
test:
if [ ! -d triplane-testsuite ]; then echo Please darcs get http://iki.fi/lindi/darcs/triplane-testsuite; false; fi
SDL_VIDEODRIVER=dummy bash tools/run-all-tests tools/run-one-test ./triplane triplane-testsuite

build-data-from-source: tools/pcx2pgd
Expand All @@ -98,5 +98,5 @@ dist:

# man -Tps doc/triplane.6 > triplane.ps
# ps2pdf triplane.ps
.PHONY: all checkdepend depend clean install test
.PHONY: all checkdepend depend clean install test build-data-from-source dist
-include .depend
5 changes: 3 additions & 2 deletions README.install
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ Dependencies
------------

* g++
* SDL 1.2
* SDL mixer 1.2
* SDL 2.0
* SDL mixer 2.0
* GNU make
* zlib

Build procedure
---------------
Expand Down
1 change: 1 addition & 0 deletions data/fokker.lst
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ data/menus/roster.pgd
data/misc/score.pgd
data/misc/lappu1.pgd
data/misc/lappu2.pgd
data/menus/netmenu.pgd
;SFX
data/sfx/aargh1.wav Die1
data/sfx/aargh2.wav Die2
Expand Down
Binary file added data/menus/netmenu.pgd
Binary file not shown.
1 change: 1 addition & 0 deletions data_src/pcx.lst
Original file line number Diff line number Diff line change
Expand Up @@ -367,3 +367,4 @@ data/icons/ase3.pgd data_src/pcx/icons/ase3.pcx \\x41\\x53\\x45\\x33\\x00\\x00\\
data/icons/ase4.pgd data_src/pcx/icons/ase4.pcx \\x41\\x53\\x45\\x34\\x00\\x00\\x00 \\x20 1 3
data/icons/ase1.pgd data_src/pcx/icons/ase1.pcx \\x41\\x53\\x45\\x31\\x00\\x00\\x00 \\xc4 5 9
data/icons/ase2.pgd data_src/pcx/icons/ase2.pcx \\x41\\x53\\x45\\x32\\x00\\x00\\x00 \\x00 2 8
data/menus/netmenu.pgd data_src/pcx/menus/netmenu.pcx NETMEN\\x00 \\x00 320 200
Binary file added data_src/pcx/menus/netmenu.pcx
Binary file not shown.
1 change: 0 additions & 1 deletion doc/TODO
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ PDF manual
Support for more than two joysticks
Network game
src/gfx/extra.cpp: embedded graphics, should read from data file instead
investigate if http://scale2x.sourceforge.net/ could be used for scaling

12 changes: 4 additions & 8 deletions doc/triplane.6
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,9 @@ Start the game without sounds. Note: This option also disables sounds
in the configuration file so sounds will be disabled also the next
time you start triplane. To enable sounds set Physical
Examination->Hearing->Sounds on in the game menus.
.IP "\fB\-2, -3, -4\fP"
Scale the 320x200-pixel game window 2x, 3x or 4x using software
scaling. This helps you play Triplane on displays that cannot switch to
such low resolutions.
.IP "\fB\-2svga\fP"
Scale the 800x600-pixel window 2x using software scaling, to
produce a 1600x1200-pixel window. This resolution is used only in
multiplayer mode.
.IP "\fB\-1, -2, -3, -4\fP"
Scale the initial 320x200-pixel game window 1x, 2x, 3x or 4x.
The default is -3. You can resize the window freely at runtime.
.PP
Note that triplane does not warn about unknown options.
.SH "GETTING STARTED"
Expand All @@ -53,6 +48,7 @@ controls:
.IP "\(bu use X and W to steer the plane" 4
.IP "\(bu use 1 to drop a bomb" 4
.IP "\(bu use S to roll the plane upside down" 4
.IP "\(bu use Pause or F4 to pause the game" 4
.PP
When you have destroyed all the targets try to land by releasing power
and gliding to the runway. Holding up and down simultaneously
Expand Down
Loading