1st commit
This commit is contained in:
29
assets/levels/gen.sh
Executable file
29
assets/levels/gen.sh
Executable 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
17
assets/levels/gurke.lvl
Normal file
@@ -0,0 +1,17 @@
|
||||
Description: find the fruit
|
||||
Background: background-orange
|
||||
|
||||
|
||||
##############
|
||||
# #
|
||||
############ #
|
||||
# S #
|
||||
# ############
|
||||
# #
|
||||
############ #
|
||||
# # # #
|
||||
# ##### # # #
|
||||
# # #
|
||||
##############
|
||||
|
||||
|
||||
17
assets/levels/intro.lvl
Normal file
17
assets/levels/intro.lvl
Normal file
@@ -0,0 +1,17 @@
|
||||
Description: Introduction: collect the goods by moving the ball onto them
|
||||
Background: background-lila
|
||||
####################
|
||||
# #
|
||||
# #
|
||||
# #
|
||||
# #
|
||||
# #
|
||||
# #
|
||||
# ######
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
####################
|
||||
Reference in New Issue
Block a user