Coder Social home page Coder Social logo

poverty-vs-you-2d's People

Contributors

klesun avatar

Watchers

 avatar  avatar

poverty-vs-you-2d's Issues

Note about nice 3D background

I just realized the buildings do not vitally require redrawing. I suppose it will still look nice if i just move the bitmap when camera moves... i believe.

But whereas building bitmap will linearly (or * 0.5, parallax, stuff ?) moves, the grid must stay still.

TODO list

  • Implement serialization somehow to store created levels and maybe save game.
  • Move the vector moving logic out of Person and Missile to upper level to avoid repeating code.
  • Implement in-game level editing: drawing Obstacles, resizing them

Physics

Moving elements by their vector values should be general.
Each element should have a "mass" property.

See: https://en.wikipedia.org/wiki/Brownian_motion for reference.
Particularly: https://upload.wikimedia.org/wikipedia/commons/6/6d/Translational_motion.gif

If mass is zero (missile), element is not affected by gravity and does not affect other elements physically (does not change their vectors).

If mass is 9999999, the heavy element is almost not affected by other elements physically. If an easy element interacts with it, the easy element is just mirrorly reflected.

If mass is normal - do as in the image.
I believe i even had code doing this in Pascal: https://github.com/klesun/Progmeistars_tasks/tree/master/Sem4_MathGraphic_SergeyTroll/d7
Look somewhere around, there was a version with 3 balls... also you could rotate the triangle

Add sounds on actions

This should be childishly simple thanks to HTML5

  • When Person jumps, he should say "NEAH!".
  • When Missile appears, it should say "WHOIP!".
  • When Person falls, his voice should be tuned down each frame linearly to his speed.
  • When Missile speedens-up, it's voice should be tuned up linearly to the speed.
  • When two objects collapse, they should say "BAM!" with volume and duration linear to their closing speed.

Gameplay thoughts

What i think is, jumping on heads of enemies is big fun! And, like, the much height is, the much damage enemy takes, but if you landed not on enemy, but on the ground, damage will be taken by you!

Jumping several times in a row on same enemy head should also be ok. Each next time should be harder than previous to get the aim.

Elements are removed from stage incorrectly

Sometimes missile shape freezes and does not disappear.
Steps to reproduce:

  1. Launch two missiles when enemy will certainly die after first of them. The remaining will freeze on place. I suppose it is somehow related to the fact "enemy" element was removed.
  2. Type "thereisnospoon" cheat and hold "fire" button for a while. When you release it, you should see some frozen missiles.

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.