Stop clipping the cat at the window edge
The cat was drawn in a 100 x 90 box that was exactly the window, so anything reaching past it was cut off: the right whiskers always, and more of them in poses that push the head forward, up to art x 109 while stretching. The window box is now 120 x 106 with the drawing inset at (7, 14). The slack is symmetric on purpose, because facing left mirrors the art about the box centre, so asymmetric slack would clip the other side instead. The mood-name mapper grew the shared aspect ratio and became CatDefs, so every window sizes the cat the same way. Nose and mug offsets follow the new inset. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
403ac30b3a
commit
6b9553f6d4
8 files changed
+78
-66
No files matched your search
@@ -50,7 +50,7 @@ CatController::CatController(AppSettings *settings, QObject *parent)
|
||||
|
||||
qreal CatController::catNose() const
|
||||
{
|
||||
return m_facingRight ? m_x + m_catWidth * 0.78 : m_x + m_catWidth * 0.22;
|
||||
return m_facingRight ? m_x + m_catWidth * 0.86 : m_x + m_catWidth * 0.14;
|
||||
}
|
||||
|
||||
void CatController::setX(qreal x)
|
||||
@@ -193,7 +193,7 @@ void CatController::coffeeBreak()
|
||||
return;
|
||||
|
||||
endChase();
|
||||
const qreal reach = m_catWidth * 1.08; // just past the whiskers
|
||||
const qreal reach = m_catWidth * 1.02; // just past the whiskers
|
||||
const qreal edge = m_catWidth * 0.5;
|
||||
|
||||
// Put the mug on the side the cat faces, unless that runs off the screen.
|
||||
|
||||
Reference in new issue
Block a user