Coder Social home page Coder Social logo

Comments (4)

vulpineblaze avatar vulpineblaze commented on September 8, 2024

maybe this is long-term, and outside the scope of this issue...

I'd like to have nested sprites like so:

  • empty, just move & rotate scripts
    • five segments ~72 degrees aparts

the top layer controls where the ship is going and pointing
the five segments get:

  • sprites
  • health & damage
  • AI to determine when to shoot:
    • laser
    • fusion bombs

and when one dies, it "explodes" switching to a "Destroyed" sprite. both types have a random pool so each ship looks different. each time a piece is destroyed, there's an increasing chance that the whole ship is destroyed. If not triggered by the last piece, then the enemy just exists, like a asteroid, after destruction, and the player can mine it.

but like i said, there a lot of mechanic we dont need now so it might be out of scope..

from framework_demoes.

vulpineblaze avatar vulpineblaze commented on September 8, 2024

Currently implemented:

  • the overall container + move sprites, with some clunky rotation
  • The 5 wedges with static sprites
  • health and damage
    • PartialHealthScript handles wedge damage, and then on 0 hp, passes 'real' damage to top level gameObject. Does not destroy wedge.
    • currently mis-passes hp to top level, 50 hp became 38 after 5 wedges @ 1hp/wedge. (7 extra damage was applied by unkown cause). My current guess is that the Damage() call takes too long, and so it applied more than once during combat.
  • Saurothrop script only fires with the closest wedge, the other 4 remain dormant.
  • ST script does not take into account destroyed wedges
  • destroyed sprite anim not implemented
  • 'wreckage' state for top level gameObject not implemented either.

from framework_demoes.

vulpineblaze avatar vulpineblaze commented on September 8, 2024

@jsmunster Close this issue and make the remaining items into non-milestone issues?

from framework_demoes.

jsmunster avatar jsmunster commented on September 8, 2024

@vulpineblaze has completed this issue.

from framework_demoes.

Related Issues (20)

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.