User prompt
make it so the bullet function still works
User prompt
Please fix the bug: 'TypeError: hero.shoot is not a function' in or related to this line: 'bullets.push(hero.shoot());' Line Number: 271
User prompt
so it goes back to the starting point when it switches, make it so that it stays in the same place but just switches from 'hereleft' to 'heroright' while staying in the same place
User prompt
put the same movment speed limit on 'heroleft' as the movement speed of 'heroright'
User prompt
Please fix the bug: 'TypeError: hero.update is not a function' in or related to this line: 'hero.update();' Line Number: 276
User prompt
Please fix the bug: 'ReferenceError: HeroRight is not defined' in or related to this line: 'if (!(hero instanceof HeroRight)) {' Line Number: 248
User prompt
Please fix the bug: 'ReferenceError: heroright is not defined' in or related to this line: 'heroright.update();' Line Number: 276
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'expand')' in or related to this line: 'var HeroLeft = Hero.expand(function () {' Line Number: 21
User prompt
okay when the cursor is on the right of the hero, the hero needs to be 'heroright' and when the cursor is on the left it needs to be 'heroleft' However it can't change any preexisting game mechanics, it cant interfere with movement or bullet mechanics
User prompt
Please fix the bug: 'ReferenceError: hero is not defined' in or related to this line: 'if (distance > hero.speed) {' Line Number: 203
User prompt
Please fix the bug: 'ReferenceError: hero is not defined' in or related to this line: 'if (monster.intersects(hero)) {' Line Number: 287
User prompt
Please fix the bug: 'ReferenceError: hero is not defined' in or related to this line: 'monster.moveTowards(hero.x, hero.y);' Line Number: 286
User prompt
rename the hero 'heroright'
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'x')' in or related to this line: 'if (self.x > LK.mouse.x) {' Line Number: 26
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'x')' in or related to this line: 'if (self.x > LK.mouse.x) {' Line Number: 26
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'x')' in or related to this line: 'if (self.x > LK.mouse.x) {' Line Number: 26
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'x')' in or related to this line: 'if (self.x > LK.mouse.x) {' Line Number: 26
User prompt
can we add a function that makes the wizard flip over the y-axis and face the direction that he is moving
User prompt
make the bullets 1.5 times faster
User prompt
make the bullets 2 times as fast
User prompt
make the bullets 2 times as fast
User prompt
can we get rid of the extra button
User prompt
add reward for destroying monsters 5 points
User prompt
make the player 3 times faster
===================================================================
--- original.js
+++ change.js
@@ -227,11 +227,11 @@
hero.y = 2732 / 2;
game.on('move', function (obj) {
var pos = obj.event.getLocalPosition(game);
if (pos.x > hero.x) {
- if (!(hero instanceof HeroRight)) {
+ if (!(hero instanceof Hero)) {
hero.destroy();
- hero = game.addChild(new HeroRight());
+ hero = game.addChild(new Hero());
hero.x = 2048 / 2;
hero.y = 2732 / 2;
}
} else {
wooden door thats round at the top 8 bit. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
wisard 8 bit from the top down. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
tentacle monster 8 bit. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
8 bit tentacle monster. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
8 bit stone brick dungeon floor with a tiny amount of moss with tinny little bricks and very low contrast make it darker to. Single Game Texture. In-Game asset. 2d. Blank background.. No shadows.
8 bit fireball with a flame trail that goes down. Single Game Texture. In-Game asset. 2d. Blank background.. No shadows.
just move the tentacles a tinny litle bit
make the monster move
green button 8 bit. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.