1st commit

This commit is contained in:
2024-02-06 15:26:20 +01:00
commit 014209898f
33 changed files with 984 additions and 0 deletions

29
assets/levels/gen.sh Executable file
View File

@@ -0,0 +1,29 @@
#!/bin/sh
width=$(grep "width int" ../main.go | awk '{print $4}')
height=$(grep "height int" ../main.go | awk '{print $4}')
read -p " Enter level name: " name
read -p " Enter background: " background
read -p "Enter description: " des
if test -z "$name"; then
name="newlevel"
fi
if test -z "$bbackground"; then
background="background-lila"
fi
(
echo "Description: $des"
echo "Background: $background"
w=$(($width / 32))
h=$(($height / 32))
for x in $(seq 1 $h); do
for y in $(seq 1 $w); do
echo -n " "
done
echo
done
)

17
assets/levels/gurke.lvl Normal file
View File

@@ -0,0 +1,17 @@
Description: find the fruit
Background: background-orange
##############
# #
############ #
# S #
# ############
# #
############ #
# # # #
# ##### # # #
# # #
##############

17
assets/levels/intro.lvl Normal file
View File

@@ -0,0 +1,17 @@
Description: Introduction: collect the goods by moving the ball onto them
Background: background-lila
####################
# #
# #
# #
# #
# #
# #
# ######
#
#
#
#
#
#
####################