fixed observers, added GameObserver

This commit is contained in:
2024-02-11 14:24:30 +01:00
parent 72f0aa7691
commit 65ddec3fa4
18 changed files with 122 additions and 53 deletions

17
assets/levels/0-own.lvl Normal file
View File

@@ -0,0 +1,17 @@
Description: win
Background: background-lila
########
# #o#
# S # #
# #### #
# #### #
# #
# o #
########

View File

@@ -1,6 +1,6 @@
#!/bin/sh
width=$(grep "width int" ../main.go | awk '{print $4}')
height=$(grep "height int" ../main.go | awk '{print $4}')
#!/bin/bash
width=$(grep "width " ../../main.go | awk '{print $4}')
height=$(grep "height " ../../main.go | awk '{print $4}')
read -p " Enter level name: " name
read -p " Enter background: " background
@@ -14,11 +14,12 @@ if test -z "$bbackground"; then
background="background-lila"
fi
w=$(($width/32))
h=$(($height/32))
(
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

View File

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