my third game, simple arkanoid - Printable Version +- NaaLaa (https://www.naalaa.com/forum) +-- Forum: NaaLaa (https://www.naalaa.com/forum/forum-1.html) +--- Forum: NaaLaa 7 Code (https://www.naalaa.com/forum/forum-4.html) +--- Thread: my third game, simple arkanoid (/thread-107.html) |
my third game, simple arkanoid - aliensoldier - 03-17-2024 I share with you a simplified version of arkanoid, to move use the arrows and to pause the "p" key. There are three levels and in each level the ball will move faster. There is one thing that I have not been able to add and I was looking for how to do it but I did not find anything, I wanted to be able to control the movement of the ball, when the ball collides with the left or the right part of the edge of the player's racket I wanted the ball to If he moved in that direction with spin, like when a soccer player hits the ball with spin, I think it would have been more fun. I put the missing file here because it won't let me put more than 5 at a time. To start press the enter key and to start moving the ball press the space key. RE: my third game, simple arkanoid - johnno56 - 03-17-2024 Nicely done! Those multi-hit bricks gave the ball a work out.... Good job! RE: my third game, simple arkanoid - 1micha.elok - 03-18-2024 (03-17-2024, 03:24 PM)aliensoldier Wrote: I share with you a simplified version of arkanoid... Your arkanoid is "rompe-ladriollos del mundo" note : Is it correct to say "brick breaker of the world" in Spanish ? RE: my third game, simple arkanoid - Marcus - 03-18-2024 Very nice, very retro It's kind of hard to get the ball where you want it, lots of waiting. Nothing wrong with that. If I rememeber correctly, that's the way it worked in the good old days too! But I've modified your collision_ball function (player.n7) so that it's possible to aim a little. If the ball bounces on the left part of the paddle, the ball goes left. The more left on the paddle, the more left it goes. Same thing with the right side. If the ball hits the absolute center of the paddle, the ball goes straight up. That's how I usually make the controls for breakout games. I don't think it's the "spin" thing you asked for, because I didn't quite understand what you meant. Code: player.collision_ball = function() RE: my third game, simple arkanoid - aliensoldier - 03-18-2024 (03-18-2024, 01:00 AM)1micha.elok Wrote:(03-17-2024, 03:24 PM)aliensoldier Wrote: I share with you a simplified version of arkanoid... Yeah that's right. "rompe-ladrillo del mundo" (03-18-2024, 06:19 PM)Marcus Wrote: Very nice, very retroThe translator translates in his own way. I have noticed a problem with your code, while playing it happened that the ball got stuck on the right side of the screen. I'll give you a video of the Super Nintendo game Arkanoid in case you want to play this game a little on the emulator and check what I say about handling the direction of the ball. https://www.youtube.com/watch?v=7O2Xjpk7a-M (03-17-2024, 05:42 PM)johnno56 Wrote: Nicely done! Those multi-hit bricks gave the ball a work out.... Good job! I have to think of a way to increase the difficulty in the games I'm making because they're too easy. RE: my third game, simple arkanoid - johnno56 - 03-18-2024 Hitting the brick two or three times is "too easy"? lol Nah... I knew what you meant. As Marcus has already said, "Very retro"! Cool... RE: my third game, simple arkanoid - 1micha.elok - 03-19-2024 (03-18-2024, 10:22 PM)johnno56 Wrote: Hitting the brick two or three times is "too easy"? lol Nah... I knew what you meant. Arkanoid - Level 3 Please don't try this at home click the image to see the animated gif of Level 3 |