Rud156 Posted November 22, 2017 Share Posted November 22, 2017 The title might be a bit misleading but that was the best I could come up with. So now to the main part. I am having a hard time making the controls for a game which was inspired by Ball Wars By Brackeys and a classic of game of Capture the Flag. Basically you either shoot and kill your opponent or be the first one to capture their crystal by standing on top of it. The controls are what I could decipher from the video. But I am having a lot of difficulty aiming because of the way I implemented the game by seeing the video. Also I want both the players to play from the same keyboard as of now. So any help regarding how to implement the aiming would help me out a lot. The controls are WASD to move and T to Shoot and Y to Jump for Player 2 and Arrow Keys to move Space to jump and Ctrl to shoot for Player 1. The code is available on Github: https://github.com/Rud156/Sketches The project name is: ballBlasters Any help would be gladly appreciated. Quote Link to comment Share on other sites More sharing options...
kiemu Posted November 23, 2017 Share Posted November 23, 2017 I think when Player use T and Y key, their hand will cover the Space. How about T,Y ->V,B for player 2 and [Space], Ctrl -> O,P for Player 1 Quote Link to comment Share on other sites More sharing options...
Rud156 Posted November 23, 2017 Author Share Posted November 23, 2017 Thanks. But I have changed the logic completely to make the controls way easier. Could you try out the game and suggest anything more I can add to it. Although I have plans to add randomized levels, multiplayer support and power ups. https://codepen.io/Rud156/full/VrxNYE/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.