diff --git a/README.md b/README.md deleted file mode 100644 index 4947956..0000000 --- a/README.md +++ /dev/null @@ -1,2 +0,0 @@ -name_me -======= diff --git a/build/gcw/default.gcw0.desktop b/build/gcw/default.gcw0.desktop new file mode 100644 index 0000000..1d13853 --- /dev/null +++ b/build/gcw/default.gcw0.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Hase Prototype +Comment=A game about bunnies in space +Exec=hase.sh +Terminal=false +Type=Application +StartupNotify=true +Icon=hase_prototype +Categories=games; diff --git a/build/gcw/hase.sh b/build/gcw/hase.sh new file mode 100755 index 0000000..1fb1115 --- /dev/null +++ b/build/gcw/hase.sh @@ -0,0 +1,3 @@ +#!/bin/sh +cd hase +LD_LIBRARY_PATH=. ./lobby diff --git a/build/gcw/hase_prototype.png b/build/gcw/hase_prototype.png new file mode 100644 index 0000000..7ed8039 Binary files /dev/null and b/build/gcw/hase_prototype.png differ diff --git a/build/pandora/hase/PXML.xml b/build/pandora/hase/PXML.xml index dfcbf32..4c0672c 100644 --- a/build/pandora/hase/PXML.xml +++ b/build/pandora/hase/PXML.xml @@ -1,67 +1,63 @@ - - - - - - - - Hase Prototype - - - - Hase Prototype - - - - A prototype of a 2D worms like game with gravitation and stuff... - Entry for the crap game competition 2013. - - - - A prototype of a 2D worms like game with gravitation and stuff... - Entry for the crap game competition 2013. - - - - - - Hase Prototype against Player - - - - A game about bunnies in space - - - - - - - - - - - - - - - - Hase Prototype against AI - - - - A game about bunnies in space - - - - - - - - - - - - - - + + + + + + + +Hase Prototype 2 + + + + +A prototype of a 2D worms like game with gravitation and stuff... +Version 2: Now with network support! + + + + + + + + + + + + + + +Hase Prototype 2 + + + +Hase Prototype 2 + + + + +A prototype of a 2D worms like game with gravitation and stuff... +Version 2: Now with network support! + + + +A prototype of a 2D worms like game with gravitation and stuff... +Version 2: Now with network support! + + + + + + + + + + + + + + + + + + diff --git a/build/pandora/hase/hase.sh b/build/pandora/hase/hase.sh index 321780b..f78e8d8 100755 --- a/build/pandora/hase/hase.sh +++ b/build/pandora/hase/hase.sh @@ -13,7 +13,7 @@ cat /proc/pandora/nub1/mode > /tmp/nub1mode_before_hase echo absolute > /proc/pandora/nub0/mode echo absolute > /proc/pandora/nub1/mode -LD_LIBRARY_PATH=. ./hase $* +LD_LIBRARY_PATH=. ./lobby $* cat /tmp/nub0mode_before_hase > /proc/pandora/nub0/mode cat /tmp/nub1mode_before_hase > /proc/pandora/nub1/mode diff --git a/build/pandora/hase/hase_ai.sh b/build/pandora/hase/hase_ai.sh deleted file mode 100755 index 35bd037..0000000 --- a/build/pandora/hase/hase_ai.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -export PATH=":${PATH:-"/usr/bin:/bin:/usr/local/bin"}" -export LD_LIBRARY_PATH=":${LD_LIBRARY_PATH:-"/usr/lib:/lib"}" -export HOME="/mnt/utmp/hase" XDG_CONFIG_HOME="/mnt/utmp/hase" - -if [ -d /mnt/utmp/hase/share ];then - export XDG_DATA_DIRS=/mnt/utmp/hase/share:$XDG_DATA_DIRS:/usr/share -fi -export SDL_AUDIODRIVER="alsa" - -cat /proc/pandora/nub0/mode > /tmp/nub0mode_before_hase -cat /proc/pandora/nub1/mode > /tmp/nub1mode_before_hase -echo absolute > /proc/pandora/nub0/mode -echo absolute > /proc/pandora/nub1/mode - -LD_LIBRARY_PATH=. ./hase --ai $* - -cat /tmp/nub0mode_before_hase > /proc/pandora/nub0/mode -cat /tmp/nub1mode_before_hase > /proc/pandora/nub1/mode - -rm /tmp/nub0mode_before_hase /tmp/nub1mode_before_hase diff --git a/build/pandora/make_package.sh b/build/pandora/make_package.sh index 68235a1..a857355 100755 --- a/build/pandora/make_package.sh +++ b/build/pandora/make_package.sh @@ -1 +1 @@ -/opt/pandora-sebt/scripts/pnd_make -p ../../../hase_prototype.pnd -d . -x ./PXML.xml -i ./hase_prototype.png +/opt/pandora/sdk_utils/pnd_make.sh -c -p ../../../hase.pnd -d . -x ./PXML.xml -i ./hase_prototype.png diff --git a/hase.md b/hase.md new file mode 100644 index 0000000..f8fc5c8 --- /dev/null +++ b/hase.md @@ -0,0 +1,4 @@ +Hase +==== + +To do. :P diff --git a/lobby.c b/lobby.c index 02eccd6..d3fa484 100644 --- a/lobby.c +++ b/lobby.c @@ -27,13 +27,13 @@ void resize( Uint16 w, Uint16 h ) spFontAddButton( font, 's', SP_BUTTON_DOWN_NAME, 65535, spGetRGB(127,127,127) ); // s == down button spFontMulWidth(font,spFloatToFixed(0.9f)); - spSetVirtualKeyboard(SP_VIRTUAL_KEYBOARD_IF_NEEDED,0,h-w*48/320,w,w*48/320,spLoadSurface("./data/keyboard320.png"),spLoadSurface("./data/keyboardShift320.png")); + spSetVirtualKeyboard(SP_VIRTUAL_KEYBOARD_ALWAYS,0,h-w*48/320,w,w*48/320,spLoadSurface("./data/keyboard320.png"),spLoadSurface("./data/keyboardShift320.png")); } int main(int argc, char **argv) { spSetRand(time(NULL)); - spSetDefaultWindowSize( 640, 480 ); + spSetDefaultWindowSize( 320, 240 ); spInitCore(); spInitNet(); screen = spCreateDefaultWindow(); diff --git a/make_every_target.sh b/make_every_target.sh new file mode 100755 index 0000000..622b19f --- /dev/null +++ b/make_every_target.sh @@ -0,0 +1,20 @@ +#!/bin/sh +# Change the folder to YOUR sparrow3d folder! +cd ../sparrow3d +FILES=./target-files/* +echo "Compiling for all targets..." +for f in $FILES +do + cd ../hase + TARGET=`echo "$f" | cut -d/ -f3 | cut -d. -f1` + make clean > /dev/null + make TARGET=$TARGET > /dev/null + if [ $? -ne 0 ]; then + echo "Error compiling for \033[1;31m$TARGET\033[0m!" + else + echo "Everything fine with \033[1;32m$TARGET\033[0m!" + fi +done +echo "Compiling for default..." +make clean > /dev/null +make > /dev/null diff --git a/make_release_packages.sh b/make_release_packages.sh new file mode 100755 index 0000000..61b4f2e --- /dev/null +++ b/make_release_packages.sh @@ -0,0 +1,54 @@ +#!/bin/sh +PROGRAM="hase" +VERSION="1.1.0.0" +DEST=./build/* +echo "" > index.htm +echo "" >> index.htm +echo "" >> index.htm +echo "" >> index.htm +TIME=`date -u +"%d.%m.%Y %R"` +echo "Updated at the $TIME." >> index.htm +echo "

$PROGRAM download links:

" >> index.htm +for f in $DEST +do + if [ -e "$f/$PROGRAM/lobby" ]; then + NAME=`echo "$f" | cut -d/ -f3 | cut -d. -f1` + echo "$NAME:" + echo "--> Copy temporary folders" + cp -r data "$f/$PROGRAM" + cp -r textures "$f/$PROGRAM" + cp hase.md "$f/$PROGRAM" + cd $f + echo "--> Create archive" + if [ $NAME = "pandora" ]; then + cd $PROGRAM + ../make_package.sh + cd .. + echo "$NAME
" >> ../../index.htm + else + if [ $NAME = "i386" ]; then + tar cfvz "$PROGRAM-$NAME-$VERSION.tar.gz" * > /dev/null + mv "$PROGRAM-$NAME-$VERSION.tar.gz" ../.. + echo "$NAME
" >> ../../index.htm + else + if [ $NAME = "gcw" ]; then + mksquashfs * "$PROGRAM.opk" -all-root -noappend -no-exports -no-xattrs + mv "$PROGRAM.opk" ../.. + echo "$NAME
" >> ../../index.htm + else + zip -r "$PROGRAM-$NAME-$VERSION.zip" * > /dev/null + mv "$PROGRAM-$NAME-$VERSION.zip" ../.. + echo "$NAME
" >> ../../index.htm + fi + fi + fi + echo "--> Remove temporary folders" + rm -r $PROGRAM/data + rm -r $PROGRAM/textures + rm $PROGRAM/hase.md + cd .. + cd .. + fi +done +echo "" >> index.htm +echo "" >> index.htm