An 8-bit multiplayer platform shooter.
Smash Battle depends on the following packages:
- libsdl1.2
- libsdl-mixer1.2
- libsdl-net1.2
- libcurl
- zlib
sudo apt-get install libsdl1.2{debian,-dev} libsdl-{net,mixer}1.2{,-dev} libcurl4-openssl-dev zlib1g-dev
brew install sql sql_net sql_mixer curl zlib
cmake .
make
For a debug build, generate a debug Makefile with:
cmake -DCMAKE_BUILD_TYPE=Debug .
Variant determine which characters and title screen are loaded. They can be configured in Main.h
. There are three variant at the moment:
Do not define PBWEB
or TWEAKERS
.
Define PBWEB
.
Define TWEAKERS
.
sudo apt-get install doxygen
cd /path/to/your/smashbattle
doxygen Doxyfile
Documentation will be created in `docs/' directory.
The level editor can be found on github.
Simply launch a server:
smashbattle -s "BOULDERDASH" 1100 "Some server name here" [ {true|false} ]
Optional parameter is no_sdl flag
smashbattle --> choose "play online"
Or use the shortcut (can be convenient when debugging):
smashbattle -c host:port [ character_name ]
#!/bin/ksh
# CONTROL+C on this script will kill all running smashbattle exes.
trap "killall -9 smashbattle" 2
./smashbattle -s "TRAINING DOJO" 1100 "RAY'S TRAINING SERVER" &
sleep 3
./smashbattle -c localhost:1100 2>&1 >>/dev/null &
sleep 0.3
./smashbattle -c localhost:1100 2>&1 >>/dev/null &
sleep 0.3
./smashbattle -c localhost:1100 2>&1 >>/dev/null &
sleep 0.3
./smashbattle -c localhost:1100 2>&1 >>/dev/null &
sleep 0.3
./smashbattle -c localhost:1100 2>&1 >>/dev/null &
# etc....
# You have one hour to kill everything with ctrl+c. :)
sleep 3600