this repo has no description

got enemies shooitng and changed level

+121 -34
+2 -2
WhitesOnly.hxproj
··· 27 27 </classpaths> 28 28 <!-- Build options --> 29 29 <build> 30 - <option directives="flixel=4.3.0&#xA;openfl=3.6.1&#xA;lime=2.9.1&#xA;hscript=2.1.1&#xA;flixel-addons=2.5.0&#xA;flixel-ui=2.2.0&#xA;HXCPP_QUIET&#xA;openfl-next&#xA;tools=2.9.1&#xA;FLX_NO_DEBUG&#xA;no-compilation&#xA;NAPE_RELEASE_BUILD&#xA;openfl-flash&#xA;web&#xA;display" /> 30 + <option directives="flixel=4.3.0&#xA;openfl=3.6.1&#xA;lime=2.9.1&#xA;hscript=2.1.1&#xA;flixel-addons=2.5.0&#xA;flixel-ui=2.2.0&#xA;HXCPP_QUIET&#xA;openfl-next&#xA;tools=2.9.1&#xA;no-compilation&#xA;openfl-flash&#xA;web&#xA;display" /> 31 31 <option flashStrict="False" /> 32 32 <option noInlineOnDebug="False" /> 33 33 <option mainClass="ApplicationMain" /> 34 34 <option enabledebug="False" /> 35 - <option additional="--macro flixel.system.macros.FlxDefines.run()&#xA;-swf-version 11.8" /> 35 + <option additional="--macro flixel.system.macros.FlxDefines.run()&#xA;-swf-version 11.8&#xA;-debug " /> 36 36 </build> 37 37 <!-- haxelib libraries --> 38 38 <haxelib>
+35 -20
assets/data/level1.oel
··· 1 - <level width="2500" height="1400" room="0"> 2 - <Floors tileset="black" exportMode="CSV">1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1,-1 1 + <level width="2500" height="1880" room="0"> 2 + <Floors tileset="black" exportMode="CSV">1,-1,-1,-1,-1,-1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="3" x="928" y="864" /> 51 - <enemy id="4" x="224" y="576" /> 52 - <enemy id="5" x="1808" y="240" /> 53 - <enemy id="6" x="160" y="848" /> 54 - <enemy id="7" x="1408" y="848" /> 55 - <enemy id="8" x="1536" y="272" /> 56 - <enemy id="9" x="432" y="704" /> 57 - <enemy id="10" x="1936" y="656" /> 58 - <enemy id="11" x="976" y="704" /> 59 - <enemy id="12" x="672" y="736" /> 60 - <enemy id="13" x="912" y="1248" /> 61 - <enemy id="14" x="1744" y="672" /> 62 - <enemy id="15" x="1264" y="224" /> 62 + <enemy id="1" x="416" y="768" /> 63 + <enemy id="2" x="624" y="800" /> 64 + <enemy id="3" x="944" y="1344" /> 65 + <enemy id="4" x="240" y="1056" /> 66 + <enemy id="5" x="1824" y="720" /> 67 + <enemy id="6" x="176" y="1328" /> 68 + <enemy id="7" x="1424" y="1328" /> 69 + <enemy id="8" x="1552" y="752" /> 70 + <enemy id="9" x="448" y="1184" /> 71 + <enemy id="10" x="1952" y="1136" /> 72 + <enemy id="11" x="992" y="1184" /> 73 + <enemy id="12" x="688" y="1216" /> 74 + <enemy id="13" x="928" y="1728" /> 75 + <enemy id="14" x="1760" y="1152" /> 76 + <enemy id="15" x="1280" y="704" /> 77 + <player id="16" x="2336" y="352" /> 63 78 </entities> 64 79 </level>
+7 -1
designDoc.txt
··· 17 17 maybe the player types in a bunch of things they like and dont like 18 18 they'll say they don't like it and when they get shot, they just say things like, yeah same, mee too and whatnot, just generic things 19 19 20 - IN THE COLOR LEVEL all the shapes will have actual opinions 20 + IN THE COLOR LEVEL all the shapes will have actual opinions 21 + 22 + followers should shoot also so its like hivemind 23 + 24 + have some sort of story which players can empathize 25 + 26 + story: the white kid is part of a minority, and they've felt alone because of this. So they go to shoot people to both change their opinions, and make them similar to themselves
+1 -1
export/.build
··· 1 - 171 1 + 183
+64 -3
source/Enemy.hx
··· 3 3 import flixel.FlxG; 4 4 import flixel.FlxObject; 5 5 import flixel.FlxSprite; 6 + import flixel.group.FlxGroup.FlxTypedGroup; 6 7 import flixel.system.FlxAssets.FlxGraphicAsset; 7 8 import flixel.util.FlxColor; 8 9 ··· 12 13 */ 13 14 class Enemy extends FlxSprite 14 15 { 15 - 16 + private var bulletArray:FlxTypedGroup<Bullet>; 17 + public var justShot:Bool = false; 18 + private var rateOfFire:Int = 6; 19 + private var fireCoutner:Int = 0; 20 + public var xPos:Float = 0; 21 + 22 + private var knockBack:Float = 3; 23 + 24 + 16 25 private var whiteNess:Float = 0; 17 26 public var justThought:Bool = false; 18 27 private var thoughtTimer:Float = 4; ··· 23 32 24 33 public var canJump:Bool = false; 25 34 26 - public function new(?X:Float=0, ?Y:Float=0, ?SimpleGraphic:FlxGraphicAsset) 35 + public function new(?X:Float=0, ?Y:Float=0, enemyBulletArray:FlxTypedGroup<Bullet>) 27 36 { 28 - super(X, Y, SimpleGraphic); 37 + super(X, Y); 29 38 makeGraphic(64, 64); 30 39 color = FlxColor.BLACK; 31 40 drag.x = rndDrag; 32 41 maxVelocity.x = FlxG.random.float(240, 300); 42 + 43 + bulletArray = enemyBulletArray; 33 44 } 34 45 35 46 override public function update(elapsed:Float):Void ··· 38 49 39 50 canJump = isTouching(FlxObject.FLOOR); 40 51 52 + if (velocity.x > 0) 53 + { 54 + facing = FlxObject.RIGHT; 55 + } 56 + if (velocity.x < 0) 57 + { 58 + facing = FlxObject.LEFT; 59 + } 60 + 41 61 if (whiteNess > 1) 42 62 { 43 63 color = FlxColor.WHITE; ··· 73 93 } 74 94 } 75 95 96 + if (color == FlxColor.WHITE) 97 + { 98 + shooting(); 99 + } 100 + 76 101 } 102 + 103 + private function shooting():Void 104 + { 105 + 106 + justShot = false; 107 + if (FlxG.keys.pressed.SPACE) 108 + { 109 + fireCoutner += 1; 110 + if (fireCoutner >= rateOfFire) 111 + { 112 + fireCoutner = 0; 113 + attack(); 114 + justShot = true; 115 + } 116 + } 117 + } 118 + 119 + private function attack():Void 120 + { 121 + switch (facing) 122 + { 123 + case FlxObject.RIGHT: 124 + xPos = x + 54; 125 + x -= knockBack; 126 + case FlxObject.LEFT: 127 + xPos = x - 22; 128 + x += knockBack; 129 + default: 130 + throw("OOPSIE WOOPSIE!! Uwu We madea fucky wucky!! A wittle fucko boingo! The code monkeys at our headquarters are working VEWY HAWD to fix this!"); 131 + } 132 + 133 + var newBullet = new Bullet(xPos, y + 32, 1600, facing, 10); 134 + bulletArray.add(newBullet); 135 + 136 + } 137 + 77 138 78 139 public function hit():Void 79 140 {
+5 -5
source/PlayState.hx
··· 62 62 63 63 FlxG.worldBounds.setSize(10000, 10000); 64 64 65 - wasdTxt= new FlxText(_player.x - 64, _player.y - 100, 0, "A & D == Move", 16); 65 + wasdTxt = new FlxText(_player.x - 64, _player.y - 100, 0, "A & D == Move", 16); 66 66 add(wasdTxt); 67 67 68 - _txtShoot = new FlxText(_player.x + 100, _player.y - 100, 0, "Spacebar to shoot", 16); 68 + _txtShoot = new FlxText(170, 720, 0, "Spacebar to shoot", 16); 69 69 add(_txtShoot); 70 70 _txtShoot.visible = false; 71 71 ··· 100 100 } 101 101 else if (entityName == "enemy") 102 102 { 103 - var enemy:Enemy = new Enemy(x, y); 103 + var enemy:Enemy = new Enemy(x, y, playerBullets); 104 104 _grpEnemies.add(enemy); 105 105 } 106 106 } ··· 113 113 override public function update(elapsed:Float):Void 114 114 { 115 115 super.update(elapsed); 116 - 116 + /* 117 117 if (_player.x >= _txtShoot.x) 118 118 { 119 119 _txtShoot.visible = true; 120 120 wasdTxt.visible = false; 121 121 } 122 - 122 + */ 123 123 if (_player.justShot) 124 124 { 125 125 var flash:MuzzleFlash = new MuzzleFlash(_player.xPos, _player.y + 26);
+7 -2
source/Player.hx
··· 106 106 } 107 107 } 108 108 109 + shooting(); 110 + 111 + 112 + } 113 + 114 + private function shooting():Void 115 + { 109 116 110 117 justShot = false; 111 118 if (FlxG.keys.pressed.SPACE) ··· 118 125 justShot = true; 119 126 } 120 127 } 121 - 122 128 } 123 129 124 130 125 131 126 132 private function attack():Void 127 133 { 128 - 129 134 switch (facing) 130 135 { 131 136 case FlxObject.RIGHT: