Giter Site home page Giter Site logo

Comments (6)

pushfoo avatar pushfoo commented on September 24, 2024

This may also extend to NPCs in general, but we do not currently have any moving NPCs other than cats.

from community-rpg.

Cleptomania avatar Cleptomania commented on September 24, 2024

A question that maybe makes sense for this, this is easy if it is only ever moving in one direction(left, right, up, down) but what happens when it's moving at an angle, say left and up at the same time, do we use the left facing or the up facing texture?

Obviously this could be solved by having textures for those angled directions, but those do not exist in the current spritesheet(at least for the cat specifically, but probably also for other characters). This can maybe be partially solved by switching some things to a more complete set of sprites from kenney.nl? We would definitely still have to build some logic in to handle the various directions other than left or right.

from community-rpg.

pushfoo avatar pushfoo commented on September 24, 2024

For the alignment question you brought up, I think matching the sprite to the nearest or most recent movement vector change would be fine. I think the player character behaves that way right now, but not the cats.

from community-rpg.

pushfoo avatar pushfoo commented on September 24, 2024

Building more refined state and animation tracking into the sprites is also worth considering. We hardcode frame numbers right now. 🙃

from community-rpg.

bkiu avatar bkiu commented on September 24, 2024

I'm working on this.

from community-rpg.

pushfoo avatar pushfoo commented on September 24, 2024

Testing indicates that up and down data now gets used for cats and dogs. 👍

from community-rpg.

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.