3 ms·
Fun and creative idea. A couple of things I think would make this more enjoyable... 1. Prevent double tapping buttons from zooming in on mobile 2. Increase th
by jsf01 7y ago
Fun and creative idea. A couple of things I think would make this more enjoyable...
1. Prevent double tapping buttons from zooming in on mobile
2. Increase the firing rate
- snazz 7y agoI’m not at my computer, but I think .the-name-of-the-button-class { touch-action: manipulation; } would fix both issues on mobile and make it a lot more fun.
- noobermin 7y ago2. might just be the lay of the land. Tbh if you never played old space shooters they weren't easy; you had to learn to cope with the firing rate, it more or less became part of the game. Modern shooters tend to make it more easier and thus hit gratification buttons quicker.
- chimi 7y agonah, it's on line 33 of player.js if(this.isShooting){ this.bullet.y -= 0.1 * dt; Changing that 0.1 to 1 would make the bullet move 10x faster. It'd be neat if you could have multiple bullets on the screen at the same time, but then the developer would need to maintain an array of bullets and update all of their .y values. In this case, a new bullet is created when the .y value gets to zero, so there isn't an easy way to increase the firing rate except to increase the speed of the bullet. By "easy" I mean, can be done in under 5 keystrokes to the code and without introducing potential bugs. Adding an array of bullets moving at the same rate, but able to be fired with less time delay between each bullet, would require at least an order of magnitude or two more than that amount of effort and also a not insignificant amount of testing.
- jacobwilliamroy 7y agoThere is no fire rate. The bullet has to hit an enemy or reach the end of the screen before the player can fire again. I think it's kinda neat.
- edoceo 7y agoI would like to step it up to 3 and 5 bullets in action, maybe with powerup