From ec409c81778cbabef8b1c8b90757815f7e84232c Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Fri, 8 Apr 2016 23:50:52 +1000 Subject: [PATCH] Reduced a graphical artifact, but it's still visible --- rsc/graphics/sprites/Barrier/Base.png | Bin 738 -> 738 bytes rsc/graphics/sprites/Barrier/Colored.png | Bin 763 -> 763 bytes rsc/graphics/sprites/Barrier/Slot 1 Green.png | Bin 273 -> 273 bytes rsc/graphics/sprites/Barrier/Slot 1 Red.png | Bin 270 -> 270 bytes rsc/graphics/sprites/Barrier/Slot 2 Green.png | Bin 305 -> 305 bytes rsc/graphics/sprites/Barrier/Slot 2 Red.png | Bin 302 -> 302 bytes rsc/graphics/sprites/Barrier/Slot 3 Green.png | Bin 423 -> 423 bytes rsc/graphics/sprites/Barrier/Slot 3 Red.png | Bin 422 -> 422 bytes rsc/graphics/sprites/Barrier/Slot 4 Green.png | Bin 301 -> 301 bytes rsc/graphics/sprites/Barrier/Slot 4 Red.png | Bin 299 -> 299 bytes rsc/graphics/sprites/Barrier/Slot 5 Green.png | Bin 385 -> 385 bytes rsc/graphics/sprites/Barrier/Slot 5 Red.png | Bin 383 -> 383 bytes rsc/graphics/sprites/Barrier/Slot 6 Green.png | Bin 412 -> 412 bytes rsc/graphics/sprites/Barrier/Slot 6 Red.png | Bin 402 -> 402 bytes rsc/graphics/sprites/Barrier/Slot 7 Green.png | Bin 431 -> 431 bytes rsc/graphics/sprites/Barrier/Slot 7 Red.png | Bin 429 -> 429 bytes rsc/graphics/sprites/Barrier/Slot 8 Green.png | Bin 429 -> 407 bytes rsc/graphics/sprites/Barrier/Slot 8 Red.png | Bin 424 -> 400 bytes rsc/graphics/sprites/Barrier/Slots.png | Bin 656 -> 656 bytes rsc/graphics/sprites/Barrier/Visible #1.png | Bin 680 -> 680 bytes .../sprites/Barrier/barrier template.xcf | Bin 48458 -> 48741 bytes rsc/scripts/setup_server.lua | 12 ++++++++++-- 22 files changed, 10 insertions(+), 2 deletions(-) diff --git a/rsc/graphics/sprites/Barrier/Base.png b/rsc/graphics/sprites/Barrier/Base.png index 1fd83309a7cf6d0f3458fc89b7b5f6fc3c49577b..68376b5ef3aa8578ffdebcee40037294963b38b7 100644 GIT binary patch delta 20 bcmaFF`iONx5GM-SLM^#L2?JYaqQnKG<<$^kx7uJO#M` delta 19 acmeBU>SLM^#K|nrC(G2gZ4KkZ=*<8#Yz6B8 diff --git a/rsc/graphics/sprites/Barrier/Slot 2 Green.png b/rsc/graphics/sprites/Barrier/Slot 2 Green.png index f7bd62e1eace8029869d6d949ad347803df77841..495d98e1610e7eb43522273c78782f403c80acd8 100644 GIT binary patch delta 19 bcmdnUw2^5-5GM-+y)r{ delta 19 bcmZ3-w2o;)5GS)dpDd&J{=d5?MqdU1Id%r; diff --git a/rsc/graphics/sprites/Barrier/Slot 3 Green.png b/rsc/graphics/sprites/Barrier/Slot 3 Green.png index 2f7a861b9d55da62cb96b1362938add0d7d7a47e..c249d9894e3fb0ca5e03f2b04d049f94daba69a2 100644 GIT binary patch delta 20 bcmZ3^yqtML5GM-w3cZ?5GM-w3cZ?5GS)dpDaVdjGN06U@vHUIzs diff --git a/rsc/graphics/sprites/Barrier/Slot 7 Green.png b/rsc/graphics/sprites/Barrier/Slot 7 Green.png index 53beb34eb6aca7e975847cc3424018b94aec5f68..db29c2f22d711e959a24121549a136111eba4b16 100644 GIT binary patch delta 20 bcmZ3_yqyq0-F5GM-yq0-F5GS)dpDd&J{=d67Mh7th06*FWhX4Qo diff --git a/rsc/graphics/sprites/Barrier/Slot 8 Green.png b/rsc/graphics/sprites/Barrier/Slot 8 Green.png index 34fc58504d7db0170e59f187abdaec58ba9625d1..554b2ed685d74015e13a29c6f33dcfe4bab9f2d6 100644 GIT binary patch delta 291 zcmZ3>Je_$$P(2F=uYuHoh~(=G42&wCE{-7;x8B}8$a~0ufyHsQJ?|xM{i=n&mzfk> zcrWEJD%`!nY5y!L`%iZ9xhK{8civ3ZXk`~rX6O)PIKsh@#KK_6)F8p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Wbqq)sXZlm`0mnVS$sNF{xau?ZPOsODiRmuY%ofTME4>xI?!@*) zeD~1KhsrwocRi@Wn9ov{b3ZCuQq`l2oF^Br`NT~q?wd70*^bic+k^xC^epgpFQ1i! zO`6}6{*GKESLk6hALeMb1IEq2U|nTwEb=AppMMaX0_R*nV!2E)KL5&!@I delta 1515 zcmai!ZD?Cn7{~v)Y0|ii#4UlX+OA7s-DbDNb>6sjTV?~Z0lThcTU@8b(`8LHqqKu* zk(F4js8k9w=YyS9@nuDjsdQ(Epl;#^k*Q1>_=3(4;t<);6%k=?_5bwTFXoFs_}zPW za-Qeh-1D4!@w#*Ns&jO!gCA$M_4>O01{P$1*fF5C3rKtmtY`z)y$h^=5pX{T(lMaz zVW4vvu!r-yL%{w4pl>(u$QV$%8z|QT(?Jk@XirRUTM^U|XUctBB1Cys0nVpfF(pBw ztj^Cs;1?kH0}$#lgYleSzcyK|M>9M0Namoq;uL+RCv@6ZAH_}I+`_piZuo<9;kgK| zIsRZ6HMr&vh9YrYiY0V*!Ib-tR42-l3x}ipn-dZw${KD0B1s_H2rQbaTzJ4Fqv3$t zAqhlzvR1sn*R@@OL|Nlc0ZX0%YWQkyn`N!Ps`WXyR^L+^Y8{t(mb!>HP`ryQSI6ZO zXE_#>wT`>8tOcmQ0W5#TtgOoh+~?(YqCA<}@Fq8GvjmBn}I*RIz$#}WtFOCL!EqO8rMz+GI=eVLvxea%I`UfTJzejv5bW$k$suOin= zX|`fD$AYq^-UBunpoNXLWnJa|*~Za5pjRXqQ{J@m)Ugsw^-b3c=Xi1Oq! zq}ix#4@!_IYx*kCdK1X-C~YtP=NZgM=FvbZ%WarP@hY-Vb_37TVvYr6&F%#5+Xd|4 zu6LYfp?!XxTRLGP?Jrfi-^fIwJXxdjcb>WP@ diff --git a/rsc/scripts/setup_server.lua b/rsc/scripts/setup_server.lua index c2dab02..afbac57 100644 --- a/rsc/scripts/setup_server.lua +++ b/rsc/scripts/setup_server.lua @@ -57,16 +57,24 @@ local function bunnySquare(creature) --is it time to change direction? - if os.time() - tonumber(timestamp) >= 1 then + if os.time() - tonumber(timestamp) >= 4 then -- print("changing directions") if string.match("south", direction) then + direction = "east" + creatureAPI.SetMotion(creature, 1, 0) + else + if string.match("east", direction) then direction = "north" creatureAPI.SetMotion(creature, 0, -1) else + if string.match("north", direction) then + direction = "west" + creatureAPI.SetMotion(creature, -1, 0) + else --south is a default direction = "south" creatureAPI.SetMotion(creature, 0, 1) - end + end end end timestamp = tostring(os.time()) ret = 1 end