Git Product home page Git Product logo

bands's Introduction

buildnshoot.io v0.4.7

An online multiplayer shooter game

Please post any bugs or feature requests on the Issues page!

How to play:

Controls:

Movement: Move using the WASD keys.

Aiming: Aim by moving your mouse.

Shooting: Shoot by pressing the Left Mouse Button.

Reloading: Reload by pressing R. This will reload 1 bullet at time and can be cancelled at any point during the reload. If you use all of your bullets, you will have to reload the clip, which takes longer than 1 bullet at a time!

Building: Switch to Build Mode by pressing the Right Mouse Button. Then press the Left Mouse Button to build on a tile adjacent to you. Note: You cannot build if a player is occupying the tile!

Shoveling: Switch to Shovel Mode by pressing the Right Mouse Button in Build Mode. Then press the Left Mouse Button on an active block to remove it. Note: Removing a block with a shovel places it in your inventory if you aren't full already!

Goals:

Currently the game is just a endless fighter, but soon there will be objectives for each team to compete for. I have not finalized the goals yet, and there may end up being multiple game modes.

Tips:

  • Blocks can be destroyed by shooting them (3 hits), or by using the Shovel!
  • You can see when the other players have to reload, use this to your advantage!
  • Players can't shoot when they don't have their gun out, attack them then!
  • Use the Shovel to gain more blocks. You can use this to repair or move defenses!
  • You cannot hurt your teammates, feel free to shoot through them as a human shield!

Weapons:

Currently there is only a single weapon implemented. More will be added later! Full stats will be added later once they are closer to being finalized.

Rifle:

High Damage, Slow Fire Rate, Medium Reload Time, Medium Clip Size, Fast Projectile Speed, Good Short-Range Accuracy, Good Long-Range Accuracy.

SMG (Not Implemented):

Low Damage, Fast Fire Rate, Long Reload Time, Large Clip Size, Average Projectile Speed, Fair Short-Range Accuracy, Fair Long-Range Accuracy. Note: I may change this from an SMG to more of an LMG. Still deciding. Or add both.

Shotgun (Not Implemented):

High Damage, Average Fire Rate, Short Reload Time, Small Clip Size, Average Projectile Speed, Good Short-Range Accuracy, Poor Long-Range Accuracy.

Updates:

Please check the CHANGELOG.txt for a list of current updates

Planned Features:

  • Team load balancing to prevent everyone from joining one team
  • Objectives, this may be a Capture the Flag objective or capture zones, or something else entirely
  • At least two other weapons, SMG and Shotgun listed above
  • Images for the players, weapons, bullets, blocks
  • Rifle will be a hitscan not a projectile
  • Some sort of non-intrusive Ad system for monetization
  • Leaderboard
  • Chat (Perhaps locked to team only chat, to provide better cooperation)

Other Information:

You can see my other work on my personal website at http://lutzkellen.com/.

License:

I am leaving this open source because I think it may help someone else make their own games. For any questions please contact me.

bands's People

Contributors

drwhocares avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bands's Issues

Aiming when on the left or bottom edge of the map.

When you're getting close to a border (bottom or right*), and you're between the middle of the screen and the border, the character doesn't follow the mouse properly anymore. This would seem to be caused by the mouse being tracked in relation to the middle of the screen, instead of in relation to the player's location on the screen, although I'm not a 100% on that.

*Edited, originally read "left", but was supposed to read "right" the whole time.

If player has no blocks, and clicks in build mode, will shoot once swapping back

Please fill out this Issue template to the best of your ability!

Type of Issue

  • This Issue is a Bug
  • This Issue is a Feature Request
  • This Issue is a Design Issue/Request

Hint: Design Issues or Requests are changes to existing features, not new ones.

Description of the Issue:

If the player has 0 blocks, and the player left clicks while in Build mode, once they swap back to Weapon mode, they will shoot a projectile.

Steps to reproduce the Issue (For Bugs):

  • I am using Google Chrome
  • I am using Mozilla Firefox
  • I am using YOUR_BROWSER

See description

Additional comments or information:

Map only covers 1/4 of the entire map

I expanded the world to be 4x it's normal size of 1600x960 (the size of the grid image).
Now it is 6400x3840. I had a generation, but it was laggy and didn't work for all clients. Now the image doesn't cover all of the playable space.

Original Issue:
To generate the map, I just layer the background multiple times and save it's data as an image.
This is quite costly as it causes the browser to freeze while it does it.
I will attempt to see if a single larger image will be a better solution.

Enemy character bug

Enemy character changes viewing angle to look at the player when the player moves to the bottom right of the enemy at about 45 degrees.

Player movement

Player can move with both WASD and Arrow Keys.
This movement is sync'd across all connected clients.

Projectile is slightly off when out of deadzones

Please fill out this Issue template to the best of your ability!

Type of Issue

  • This Issue is a Bug
  • This Issue is a Feature Request
  • This Issue is a Design Issue/Request

Hint: Design Issues or Requests are changes to existing features, not new ones.

Description of the Issue:

Projectile doesn't reach the exact spot the mouse is aiming when outside of deadzones.

Steps to reproduce the Issue (For Bugs):

  • I am using Google Chrome
  • I am using Mozilla Firefox
  • I am using YOUR_BROWSER

When outside of deadzones, aim directly to your left, the projectile will be slightly off from it's mark.

Additional comments or information:

I have a feeling I know what this issue is, but adding this just in case it proves to be more difficult than I thought.

Large Grid sizes (world size) causes lag

Please fill out this Issue template to the best of your ability!

Type of Issue

  • This Issue is a Bug
  • This Issue is a Feature Request
  • This Issue is a Design Issue/Request

Hint: Design Issues or Requests are changes to existing features, not new ones.

Description of the Issue:

The game will lag when moving if the world is large.

Steps to reproduce the Issue (For Bugs):

  • I am using Google Chrome
  • I am using Mozilla Firefox
  • I am using YOUR_BROWSER

If the world is 6400x3840, this is highly noticeable.

Additional comments or information:

I need to optimize the grid calculations. I already have a solution in mind for this, just need to implement it.

No way to manually reload

Please fill out this Issue template to the best of your ability!

Type of Issue

  • This Issue is a Bug
  • This Issue is a Feature Request
  • This Issue is a Design Issue/Request

Hint: Design Issues or Requests are changes to existing features, not new ones.

Description of the Issue:

I think it would be nice to be able to manually reload maybe by pressing R. I think this would probably discard the clip (no magical saving of bullets.)

Additional comments or information:

invisible blocks

Some blocks get placed but don't show that they've been placed until you rejoin

Aim bug on sides

If the player is in a camera deadzone, and does not move the cursor while moving, the bullet does not properly fly at the cursor.

Ammo bug on joining

When joining the game, if the player clicks to join they will start with one less ammo, while if you press enter to join you start with full ammo.

Leftover shoot commands resulting in double shots.

If you run out of bullets and try to shoot, you can't, but the next time your ammo gets refilled you automatically shoot once. Same happens when reloading; when you're out of ammo and start reloading, just spam click shoot until your reload is done and you'll shoot automatically and will have a 0 second cooldown for the next shot. Both of these result in being able to do a double shot.

Chrome does not generate the map

Please fill out this Issue template to the best of your ability!

Type of Issue

  • This Issue is a Bug
  • This Issue is a Feature Request
  • This Issue is a Design Issue/Request

Hint: Design Issues or Requests are changes to existing features, not new ones.

Description of the Issue:

On chrome map will always be missing

Steps to reproduce the Issue (For Bugs):

  • I am using Google Chrome
  • I am using Mozilla Firefox
  • I am using YOUR_BROWSER

Use chrome, map must be generated

Additional comments or information:

Camera view moves with player in center

This is a viewport implementation, similar to how Slither.io and Agar.io.

In essence there is a "camera" following the player, so the player is always in the center (unless at an edge).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.