• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

client/H03-May-2022-119,612113,443

common/H17-Oct-2015-3,6352,220

docs/H03-May-2022-397341

game/H17-Oct-2015-7,7545,142

gui/H17-Oct-2015-8,0514,657

intl/H17-Oct-2015-14,63910,465

m4/H17-Oct-2015-2,9902,762

po/H03-May-2022-13,24810,847

server/H03-May-2022-3,6452,901

ABOUT-NLSH A D03-May-201352.6 KiB769723

AUTHORSH A D03-May-20131.1 KiB3925

COPYINGH A D03-May-201314.8 KiB281237

ChangeLogH A D17-Oct-201529 KiB693633

INSTALLH A D03-May-20136.8 KiB168129

Makefile.amH A D03-May-20133.4 KiB7560

Makefile.inH A D03-May-202225.7 KiB782695

READMEH A D03-May-201310.2 KiB236219

TODOH A D03-Feb-2014401 1211

acinclude.m4H A D03-May-20136.1 KiB176162

aclocal.m4H A D17-Oct-201531.6 KiB892802

config.guessH A D03-May-201342.6 KiB1,4611,263

config.h.inH A D17-Oct-20158.7 KiB327231

config.rpathH A D03-May-201314.6 KiB549443

config.subH A D03-May-201330.4 KiB1,5501,409

configureH A D03-May-2022300.5 KiB10,7278,932

configure.inH A D17-Oct-20153.9 KiB156130

depcompH A D03-May-201314.8 KiB523330

install-shH A D03-May-20139 KiB323188

lbreakout2.desktop.inH A D03-May-2013139 87

lbreakout2.specH A D03-May-20131.2 KiB4839

missingH A D03-May-201310.4 KiB361270

mkinstalldirsH A D03-May-20133.3 KiB151102

touchallH A D03-May-2013158 86

win32_mancompH A D03-May-2013436 1716

win32_preparchiveH A D03-May-2013697 2321

README

1
2				LBreakout2
3
4		a breakout-style arcade game for Linux
5			    by Michael Speck
6
7********************
8I.   Requirements
9II.  Installation
10III. Network Server
11IV.  Documentation
12V.   Troubleshooting
13VI.  Localization
14VII. Resources
15VIII. Feedback
16********************
17
18********************
19I.   Requirements
20********************
21LBreakout runs in X and uses SDL (any version though >= 1.1.4
22is recommended), SDL_mixer (optional for sound) and SDL_net
23(optional for networking on non-Unices). These libraries
24can be found at http://libsdl.org. The graphical stuff requires PNG
25which is usually included in a distro. If not check out
26http://www.libpng.org/pub/png/libpng.html.
27
28********************
29II.  Installation
30********************
31Enter your favorite shell and type in the following stuff (in the
32directory you extracted the LBreakout source)
33> ./configure [--disable-audio] [--disable-install] [--enable-warp]
34              [--with-docdir=DOCDIR] [--disable-network]
35              [--enable-sdl-net] [--localstatedir=HIDIR]
36    --disable-audio:       no sound
37    --disable-install:     no installation; play from source directory
38    --enable-warp:         nescessary for non-Unices to use relative
39                           mouse motion for inverting or modify mouse
40                           speed
41    --with-docdir:         install documentation to $DOCDIR/lbreakout2
42                           DEFAULT: /usr/doc
43    --disable-network:     compile LBreakout2 without any network
44                           support
45    --enable-sdl-net:      use SDL_net for networking (required if
46                           platform is not Unix-like)
47    --localstatedir:       install global highscores to this directory
48                           REPLACES --with-highscore-path TO COMPLY
49                           WITH AUTOCONF; THE DEFAULT LOCATION NOW
50                           DEPENDS ON YOUR DISTRIBUTION: PREVIOUSLY
51                           IT WAS /var/lib/games. USE
52                           --localstatedir=/var/lib/games FOR EXISTING
53                           HIGHSCORES.
54> make
55> su (become root)
56> make install (if install wasn't disabled)
57> exit (become user again)
58> lbreakout2 (run client/non-network game)
59
60Note: Swearing is disabled in version >= 2.6. To enable it you have to
61edit ~/.lgames/lbreakout2.conf manually and set the hidden option badspeech
62to 1. If you cannot find the option start and quit LBreakout2 once.
63
64Building on Win32
65-----------------
66There might be an easier way to get things to work but at least
67the following worked for me. Simplifications are welcome.
68
691) Get MinGW, Msys, MsysDTK from http://mingw.sf.net
70   The following uses michael as the Msys home directory, naturally
71   you'll have to substitute your windows user name for this.
722) Get SDL, SDL_mixer, SDL_net from http://libsdl.org as tar.gz's
73   and put them to c:\msys\1.0\home\michael (or whereever you
74   installed Msys to)
753) Get libpng and zlib from http://libpng.org and put them to the
76   same directory as above.
774) Same with the latest and greatest LBreakout2 package, which you
78   already have, I assume. :)
795) Start Msys and enter the commands
80   tar -xzf *.tar.gz (extract the above archives)
81   cd SDL-1.2.7; (your version might differ, of course)
82   configure; make; make install;
83   cd ..
84   [do the same with SDL_net, SDL_mixer, zlib]
85   ln -s libpng-1.2.5 libpng (your version might differ, of course)
86   ln -s zlib-1.1.3 zlib (your version might differ, of course)
87   cd libpng-1.2.5
88   cp scripts/makefile.gcc Makefile; make
89   cp png.h pngconf.h /usr/local/include
90   cp libpng.a /usr/local/lib (manual install as the linux makefile
91                               caused problems)
92   cd ..
93   cd lbreakout2-2.5
94   export LDFLAGS="-L/usr/local/lib"
95   export CFLAGS="-I/usr/local/include"
96   echo '' > depcomp (why this is required is again a mystery to me)
97   configure --disable-install --enable-sdl-net
98   win32_mancomp (this is a hack required for unknown reasons here.
99            make works but it just states the gcc commands but does
100            not execute them, in this little script they work however,
101            dunno why... a fix for this would be most welcome. if you
102            change any configure or install settings the hardcoded
103            compile command in win32_mancomp will probably not work so
104            you should check it for such a case)
105   make
1066) Get the dll's of SDL, SDL_mixer, SDL_net, libpng, zlib and put
107   them to c:\msys\1.0\home\michael\lbreakout2-2.5\win32dlls as well
108   as msvcrt.dll (freely available from Microsoft)
1097) run win32_preparchive (this will copy all required files to
110                          the directory lbreakout2)
1118) copy c:\msys\1.0\home\michael\lbreakout2-2.5\lbreakout2 to
112   c:\games or whereever you want to and run the game from there.
113NOTE: The server does not open any display and in windows a message
114overwrites all old messages in stdout.txt. Also the command line options
115do not work, at least it seems so. All I managed was to run the server
116without any options but at least I could connect to it successfully.
117
118Lee Read added some scripting to create a standalone installer. This
119scripting is broken right now, but hopefully fixed soon.
120
121Building on OS/2
122----------------
123On OS/2 GCC creates windowed console apps by default. There are various
124solutions, see http://www.edm2.com/index.php/SDL#General_tips_and_tricks
125or run 'emxbind -e -p lbreakout2.exe' after building. - Dave Yeo
126
127********************
128III. Network Server
129********************
130To run a server start lbreakout2server with any of the following
131options:
132-p <PORT>     server port (default 2002)
133-l <LIMIT>    maximum number of users that may connect to the server
134              (default is 30)
135-i <IDLETIME> a user will be kicked if he didn't communicate with the
136              server for this amount of seconds (default is 1200)
137-n <MESSAGE>  this message is displayed to welcome a user
138-a <PASSWORD> a user that logs in with this name will become
139              administrator named admin (default is no admin)
140-b <BOTNUM>   number of bots with strength 800 and 1000 (paddle speed
141              in pixels, default is none)
142After that you'll have to query your IP (e.g. with
143/sbin/ifconfig) and pass it to your friends as there is no permanent
144internet server yet. Note, that you shouldn't use localhost as you
145won't be able to challenge others then.
146Check the online documentation at http://lgames.sf.net
147for information on how to play.
148When updating this README the last time, petersdtp.net:8000 has been
149the current internet test server.
150
151********************
152IV.  Documentation
153********************
154If you have any questions about options, game play or editor
155please check the documentation and see if you
156can find an answer there. I will not respond to any eMails concerning
157questions easily answered by the manual (/usr/doc/lbreakout2).
158However, if you have any other problems or suggestions or you found a
159bug please contact me: kulkanie@gmx.net
160
161********************
162V.   Troubleshooting
163********************
164The solution for relative mouse motion (nescessary when inverting or
165slowing down mouse by motion modifier) works fine for Linux and
166Win32 but fails for other non-Unices. Current solution is to warp the
167mouse (by using configure option --enable-warp). Unfortunately, this
168will handicap events when trying to fire weapon or release balls AND
169move the paddle at the same time. This means it may happen that a weapon
170is not fired or doesn't stop fire, balls keep being attached and so
171on...
172---
173Disabling sound while playing seems to result in loosing various
174sound channels when some sounds were actually mixed.
175---
176Someone reported that he had problems with PNG (configure script
177didn't find it) if it was installed to /usr/local/lib.
178Setting a link in /usr/lib fixes this.
179---
180If you have SDL_mixer installed but configure tells you that it can't
181find it, remember that you have to install the development package
182for compiling!
183---
184If you can't compile because LBreakout2' timestamps are slightly in
185the future run 'touchall' (found in the configure directory).
186---
187If 'fullscreen' just adds a black frame around the game but does
188not change the solution make sure that you have 640x480 available
189as resolution in your Xconfig.
190---
191If the SDL sound seems to be out of sync first try
192to modify the audio buffer size in ~/.lgames/lbreakout2.conf.
193If this fails set SDL_AUDIODRIVER to dma (export SDL_AUDIODRIVER=dma).
194
195********************
196VI.  Localization
197********************
198This game now supports i18n. If you want to add l10n for your native language,
199please contact me first, to prevent overlapping translations. A thorough
200documentation can be found at
201  http://www.gnu.org/software/gettext/manual/html_mono/gettext.html
202Basically, you will have to do the following:
203  1) cd po
204  2) add your language code (e.g., de for German) to the existing line in
205LINGUAS merely separated from the other languages by a blank
206  3) run `msginit -o <LL>.po` with <LL> replaced by your language code
207  4) translate the english message IDs in <LL>.po
208  5) run make <LL>.gmo
209Whenever you change something in your translation you'll have to repeat
210step 5). I strongly recommend to configure the program with --disable-install
211while working on a translation. Otherwise you'd have to copy and rename the
212.gmo file as root every time you want to see your changes. If the source has
213been compiled without installation, only step 5) and simply running the game
214is required. (Of course, the enviroment variable LANG must be set to your
215locale.)
216This should suffice. If not, please read the excellent documentation at
217gnu.org. The fonts do only contain the basic latin letters. No special letters
218(like the german umlauts or any accents for example) are supported, so a l10n
219should not use them. If a string has a single %, meant as a percent sign,
220you'll have to manually remove the 'format' comment above the id (if any).
221
222********************
223VII.  Resources
224********************
225Some graphics and sounds has been taken and modified from other
226non-copyrighted resources:
227Backgrounds:    http://www.grsites.com/textures
228Sounds:         "Web Clip Empire 50.000", NovaMedia Verlag, Germany
229Thanks to all of these guys for there free stuff!
230
231********************
232VIII. Feedback
233********************
234LGames URL:  http://www.lgames.sf.net
235e-Mail:      kulkanie@gmx.net
236