From 7e29fbe5e063db65c09b0fca030c3ec5a92e50a5 Mon Sep 17 00:00:00 2001 From: Fabien Freling Date: Thu, 12 Aug 2021 14:25:32 +0200 Subject: [PATCH] update missile --- cart.wren | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/cart.wren b/cart.wren index 6e2bba3..1134228 100644 --- a/cart.wren +++ b/cart.wren @@ -49,8 +49,8 @@ class Bullet { construct new(x, y) { _x = x _y = y - _w = 3 - _h = 1 + _w = 8 + _h = 6 _speed = 5 } @@ -64,7 +64,8 @@ class Bullet { } draw() { - TIC.rect(_x, _y, _w, _h, 4) + //TIC.rect(_x, _y, _w, _h, 4) + TIC.spr(288, _x, _y - 4, 0) } expired { @@ -287,7 +288,7 @@ class World { var speed = 0.1 var mediumTick = (spaceBetween + width) / speed if (_t % mediumTick == 0) { - _stars.add(Star.new(W, R.int(0,H), width, speed, 13)) + _stars.add(Star.new(W, R.int(0,H-20), width, speed, 13)) } // Map scrolling @@ -444,6 +445,23 @@ class Game is TIC{ // 020:ccca00ccaaaa0ccecaaa0ceeaaaa0ceeaaaa0cee8888ccee000cceeecccceeee // 033:0000000000000000000000000002200000022000000000000000000000000000 // 034:0000000000000000000000000003300000033000000000000000000000000000 +// 064:0000000000000000000000000000000200000022000002220000222200022221 +// 065:0000000000002222022222222222222222222222212222221112222211112222 +// 066:0000000022220000222222202222222222222222222222222222222222222222 +// 067:0000000000000000000000002000000022000000222000002222000022222000 +// 068:0000000000011000001111000111111011111111000110000001100000011000 +// 080:0002222200022222002222220022222200222222022222220222222202222222 +// 081:1112222221222222222222222222222222222222222222222222222222222222 +// 082:2222222222222222222222222222222222222222222222222222222222222222 +// 083:2222200022222000222222002222220022222200222222202222222022222220 +// 096:0222222202222222022222220022222200222222002222220002222200022222 +// 097:2222222222222222222222222222222222222222222222222222222222222222 +// 098:2222222222222222222222222222222222222222222222222222222222222222 +// 099:2222222022222220222222202222220022222200222222002222200022222000 +// 112:0002222200002222000002220000002200000002000000000000000000000000 +// 113:2222222222222222222222222222222222222222022222220000222200000000 +// 114:2222222222222222222222222222222222222222222222202222000000000000 +// 115:2222200022220000222000002200000020000000000000000000000000000000 // // @@ -452,6 +470,7 @@ class Game is TIC{ // 002:2000000202333320032222300320023003200230032222300233332020000002 // 016:43dddddd4ddddddd4eeeeeee0ccccccc00000000000000000000000000000000 // 017:ddccccccddddddd0eeeeee000000000000000000000000000000000000000000 +// 032:0000000099aab000899aabbc08899aab08899aab899aabbc99aab00000000000 // //