Comments (6)
This may also extend to NPCs in general, but we do not currently have any moving NPCs other than cats.
from community-rpg.
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.
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.
Building more refined state and animation tracking into the sprites is also worth considering. We hardcode frame numbers right now. 🙃
from community-rpg.
I'm working on this.
from community-rpg.
Testing indicates that up and down data now gets used for cats and dogs. 👍
from community-rpg.
Related Issues (20)
- Bug: Camera moves oddly when entering/exiting interiors HOT 1
- Enhancement: Entity Component System
- Feature: Give characters foot step sounds HOT 1
- Feature: Add sounds for doors & item pickups
- Pressing the Main Menu button (Esc) crashes the game HOT 2
- :bug:: World Boundary
- Hitbox does not match textures HOT 2
- Farm Texture is Messed Up
- Add a sparkle effect ✨ for items that are searchable
- Switch to the Scene Manager HOT 1
- GUI System HOT 1
- Switch the main menu to use the arcade GUI HOT 1
- Switch to Raycasted Shadows HOT 2
- what the dog doin? HOT 1
- Bug: Foot step sounds get stuck re-playing rapidly HOT 1
- Update screenshot in README.md
- README.md needs to be updated with a link to the discussion board
- Controls listing in README is hard to read on one line
- Bug: Game crashes with exception when launching
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from community-rpg.