Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple sleeping places & more #3

Open
kernelb00t opened this issue Jul 5, 2023 · 3 comments
Open

Support multiple sleeping places & more #3

kernelb00t opened this issue Jul 5, 2023 · 3 comments

Comments

@kernelb00t
Copy link

  • Neko goes to sleep to the nearest "couch" and sleeps (another behavior would be to randomly pick a couch)
  • She can randomly decide to wake up and switch to another one
  • maybe by drag&drop we could force her to go to another couch.

An example of this in use can be seen in #2.

@kyrie25
Copy link
Owner

kyrie25 commented Jul 6, 2023

This is almost entirely impossible without a preset of elements as there is no way of telling which element is a container, has an outline border for her to sleep on, or if she is covering anything else, similarly to how the progress bar was used.

If you still want to do this, then I guess the only way is to suggest which specific place you would want her to sleep on and I'll look into it.

Randomly picking a couch is a better idea though, I do like that since it adds a bit of fun to see where she's going to sleep.

@Jenyyk
Copy link

Jenyyk commented Feb 8, 2025

I think it would be atleast nice to customize the position in which Neko sleeps on the progress bar.
This could be easy to implement, as the position is just determined here in oneko.js lines 126-128:

    // Make the cat sleep on the progress bar
    mousePosX = progressBarRight - 16;
    mousePosY = progressBarTop - 8;

mousePosX could be decremented by a value selected by the user, instead of 16, which could make it so that Neko sleeps on practically any place on the progress bar.
No idea how to make this value accessible to the user though...

@kyrie25
Copy link
Owner

kyrie25 commented Feb 9, 2025

I think it would be atleast nice to customize the position in which Neko sleeps on the progress bar.

That's a good idea actually, and I already have an idea on how to go about it.
Will look into it when I have the time 👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants