<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://blog.legires.fr/feed.xml" rel="self" type="application/atom+xml" /><link href="https://blog.legires.fr/" rel="alternate" type="text/html" /><updated>2026-10-30T16:17:39+00:00</updated><id>https://blog.legires.fr/feed.xml</id><title type="html">suivez le guide</title><subtitle>personal blog</subtitle><author><name>le guide</name></author><entry><title type="html">chrono ccg - it’s really good</title><link href="https://blog.legires.fr/2026/10/30/chrono.html" rel="alternate" type="text/html" title="chrono ccg - it’s really good" /><published>2026-10-30T00:00:00+00:00</published><updated>2026-10-30T00:00:00+00:00</updated><id>https://blog.legires.fr/2026/10/30/chrono</id><content type="html" xml:base="https://blog.legires.fr/2026/10/30/chrono.html"><![CDATA[<blockquote>
  <p>chrono ccg is an online card game.
it’s very, very, very, very, very, very, very, very, very, very good.</p>
</blockquote>

<p>context: i’ve played a lot of legends of runeterra (top 100 EUW peak).</p>

<p>the points are sorted by order of importance:</p>

<p><strong>story</strong></p>

<p>there are only two categories of card games: good ones and bad ones.</p>

<p>and all the good ones can be traced back to a single common ancestor: divinatory tarot.
because there’s only one pleasure: telling a story with cards.</p>

<p>and chrono absolutely <strong>nails</strong> it.</p>

<p>the lor feeling is still there.
in my first close game,
in a discard mirror,
we both danced around each other’s cards beautifully,
but our health totals dropped, and it was time to lay our hands on the table,
to play everything in one final attack, one that would be fatal if it failed…</p>

<p>god, that’s good.</p>

<p><strong>units</strong></p>

<p>units are much more threatening than in lor.</p>

<p>each evolution condition is a mini-quest within the larger story of the game.
the immortalization mechanic will allow for many more balancing variables.</p>

<p>the fact that they can cast spells onto the stack is unusual, but why not,
it’s not the worst thing borrowed from magic (if you ask me, the worst are lands and units that heal themselves).</p>

<p><strong>terrain</strong></p>

<p>the other beautiful innovation. absolutely brilliant.</p>

<p>i love how they don’t look like much on paper, but turn out to be crucial in the heat of battle.</p>

<p><strong>divers</strong></p>

<p>it makes your hand much more consistent, but steers it toward 1- or 2-drops
that provide “setup” or “scale”, followed by a tendency to mulligan hard for combat tricks.
not a bad thing in itself; it highlights the spell chain.</p>

<p>some decks take big divers,
others a mid-game wipe.</p>

<p>but it reveals your plan to the opponent, which can lead to stalling.</p>

<p>the current balance, where divers are limited to one copy and aren’t considered to be “in your hand”, works perfectly.</p>

<p><strong>power scaling</strong></p>

<p>very well handled. the genius of lor’s mana system is the rising tension
created by mana scaling: big cards need to be scary,
but should be roughly equal in value to board control + setup.</p>

<p>and yet chrono’s cards have a ridiculously high power level compared to lor!</p>

<p><strong>the eye</strong></p>

<p>the board-state preview: probably one of lor’s greatest achievements.
kudos for already having it, dear developers!</p>

<p>and i really like the idea of integrating it into the game’s “ludonarrative”,
because you can see it by hovering over the “timeline”…</p>

<p><strong>vibe</strong></p>

<p>the whole time-travel thing, so good.
a bit of an isaac asimov vibe (“the end of eternity”),
a battle between factions for control of a possible future,
mysterious and engaging.</p>

<p><strong>mobile version</strong></p>

<p>dragging your finger across cards, picking them up with a swipe, playing anywhere…
lor was so good on mobile, and i’m just waiting for chrono ccg on mobile.</p>

<p>it’s coming to apple soon, i’m so excited!</p>

<p><strong>software</strong></p>

<p>unity-based.
it’s heavy, it can lag on my little computer,
but it gets the job done.</p>

<p>watch out for technical debt,
apparently lor ended up as spaghetti code.</p>

<p><strong>look</strong></p>

<p>the cards are gorgeous, the game a little less so.
better than the other way around!</p>

<p>it’s mostly down to the “temporal device” in the middle.
that can be fixed eventually; it’s a minor detail.</p>

<p>did you know the board elements make sounds
or can be activated by clicking on them?
you can still feel the attention to detail.</p>

<p><strong>marketing</strong></p>

<p>they say:
“make it so good they can’t ignore you”.
it’s already at <strong>that</strong> level of good.</p>

<p>the next big turn is an international competitive scene.
i’m really hyped.</p>

<p><strong>tutorial</strong></p>

<p>almost as horrible as lor’s tutorial.
you need to be able to skip it! two common situations where it gets in your way:
you’re showing the game to a friend,
or you’ve already done your homework by watching lots of videos beforehand.</p>

<p><strong>company</strong></p>

<p>i think the company is called “infinite or bust”.
what can i say other than: absolute chads.</p>

<p><strong>conclusion</strong></p>

<p><strong>game of the year.</strong></p>

<p>it’ll have to rise to the level of the greatest card game of all time,
then surpass it. the task is daunting, and yet i believe.</p>

<p>everything about this game radiates passion and competence.</p>

<p>the king is dead, long live the king!</p>]]></content><author><name>le guide</name></author><summary type="html"><![CDATA[chrono ccg is an online card game. it’s very, very, very, very, very, very, very, very, very, very good.]]></summary></entry><entry><title type="html">we’re all steve jobs now</title><link href="https://blog.legires.fr/2026/10/23/all_jobs.html" rel="alternate" type="text/html" title="we’re all steve jobs now" /><published>2026-10-23T00:00:00+00:00</published><updated>2026-10-23T00:00:00+00:00</updated><id>https://blog.legires.fr/2026/10/23/all_jobs</id><content type="html" xml:base="https://blog.legires.fr/2026/10/23/all_jobs.html"><![CDATA[<p>most devs want <strong>out</strong>.</p>

<p>because they’re
very polarized / concerned / antagonistic
towards ai,
they are
looking for arguments to <em>“retvrn”</em> to monke.</p>

<p>they don’t want to be the <em>meat proxy</em>,
they don’t want <em>cuckcoding</em>,
they don’t want <em>ai fatigue</em>,
they don’t want to be
<em>“babysitting the chaos magic machine”</em> (zangster),
so they’re trying to find a niche,
with the salary “as it was”,
and nothing ever changes and
everything is good forever.</p>

<p>in a
<a href="https://blog.legires.fr/2026/10/17/keyboard_hypnosis.html">previous post</a>,
i invited people to focus on the <strong>typing</strong> part of programming.</p>

<p>but i think you guys got the wrong message.</p>

<p>what i say was “find your pleasure”, <strong>not</strong> “mind your business”.</p>

<p><strong>you’re</strong> in it.
and even worse:
<strong>you’re</strong> steve jobs.</p>

<hr />

<p>“but no it’s the other way around,
everybody’s a con artist now,
no one is steve, in fact we still miss him…”
<strong>shut up.</strong></p>

<p>you’re steve and you don’t get to choose.</p>

<p>rewatch the old keynotes:
he would <em>constantly</em> <strong>shit</strong> on the competition.
in a way nobody did.</p>

<p>it was not a polite pecker contest
with benchmarks like we have today,
it was <strong>rage</strong>.</p>

<p>he hated the competition with passion, with precision, with fuel.
he felt personnally <strong>offended</strong> by the state of things.
because <strong>they</strong> started the fight, after all!</p>

<p>he, the humble calligraphy enjoyer,
took the ugliness of the world to heart.
and he went on to defeat it.</p>

<p><img src="/img/apple2.jpg" alt="apple2" /></p>

<p>apple wasn’t about
“let’s do our own little thing”.
more about “let’s wipe the planet clean of these motherfuckers”.</p>

<p>think different.
this apple isn’t eve’s anymore, it’s the
<a href="https://en.wikipedia.org/wiki/Apple_of_Discord">apple of discord</a>.</p>

<p>and there’s a lot of loathe vitamins in there
to survive the ai winter.</p>

<hr />

<p>so i’ll go first:
llms are unfunny, verbose, unimaginative,
they write unreadable code
and they take forever to mostly fail.
and that has to change,
because it’s insulting to me
in the same vein old green terminals of yore
insulted steve.</p>

<p>because programming is
not what you enjoy but
<a href="https://www.youtube.com/watch?v=G8c4HCFCEeE">what you are</a>.</p>

<p>this spirit is what you <strong>need</strong>.
like many people, i think ai is both
disgusting <em>and</em> inevitable.
a pixel artist:
<em>“it’s flawed but good enough, and it’s pricing me out”</em>.</p>

<p>steve was not a good engineer,
nor a good developer.
and he still went on a crusade.
because he had a massive fucking ego.
that ego allowed him to assemble a team.
that’s how it is.
human nature.</p>

<p>let me phrase this another way:
<strong>if you’re depressed and lonely you’re fucked.</strong></p>

<p>coincidentally, that’s how everything is designed to make you feel these days!
how fucking amazing.</p>

<p>so, cheer up, phone a friend,
and figure out how to unfuck this mess.
because it is very much <strong>your</strong> problem.</p>

<p>don’t look away, we’re all steve now.</p>

<p>we’re all david, too.</p>

<p><img src="/img/david.jpeg" alt="photo david" /></p>]]></content><author><name>le guide</name></author><summary type="html"><![CDATA[most devs want out.]]></summary></entry><entry><title type="html">keyboard hypnosis</title><link href="https://blog.legires.fr/2026/10/17/keyboard_hypnosis.html" rel="alternate" type="text/html" title="keyboard hypnosis" /><published>2026-10-17T00:00:00+00:00</published><updated>2026-10-17T00:00:00+00:00</updated><id>https://blog.legires.fr/2026/10/17/keyboard_hypnosis</id><content type="html" xml:base="https://blog.legires.fr/2026/10/17/keyboard_hypnosis.html"><![CDATA[<p>web developers do not look ok nowadays.</p>

<p>they are the number one users of ai, yet they <strong>can’t stop complaining</strong> about it.</p>

<p>reading the various blog posts,
3 main reasons emerge:</p>

<ol>
  <li>i can’t use my brain anymore</li>
  <li>ai is stealing my joy of programming</li>
  <li>the economic pressure is too strong</li>
</ol>

<p>…one might say <strong>they look like drug addicts</strong>.</p>

<p>at least for reason 1 and 2.</p>

<p>“if it’s hurting you so bad, just stop!”.</p>

<p>but of course, as with addictions (i would know), it’s not so simple.</p>

<p>this post is my humble try to find a way out
with two words: <strong>“just type”</strong>.</p>

<p>when you can’t use the brain, use the hands,
and the joy of programming will come back.</p>

<hr />

<p>erik satie
has this wonderfully provocative quote:</p>

<blockquote>
  <p>les pianos, c’est comme les chèques,
ça ne fait plaisir qu’à ceux qui les touchent.</p>
</blockquote>

<p>an english version would be
<em>“(piano) keys are like jackpots, they only please those who hit them”</em></p>

<p>it’s absolutely true.
and code is like a lottery,
it only pays off for those who enter it.</p>

<p>people say out loud on conferences:
<em>“i didn’t type a single line of code by hand in months”</em>.
me neither! and it feels like shit!</p>

<p>for weeks, i tried to reconnect with the joy of programming, and it was the simple joy of typing.
of hearing the sounds of the keyboard,
of feeling the rebounds of the keys, of trying to match the speed of my thoughts, of lagging behind yet pushing through, somehow.</p>

<p>there are people who still regret keyboard phones, you know!</p>

<p>code is meant to be coded.
we all have our favorite language,
our favorite “memorized set of instructions that flows from our fingers”.
that’s why programmer comes from <em>“pro gramma”</em>, <em>“before the letter”</em>,
because we use words that carry more than what they are.
they’re instructions, an emerging schema in our brains.</p>

<p>when you type “fix this” in the chat bar,
when you’re waiting for claude to answer,
when you’re reading in between the typing… you’re losing that flow.
that rhythm. that pleasure.</p>

<p>that feeling is yours.
it’s yours to retake. whatever claude may say.</p>

<p>replace <strong>ai psychosis</strong> with <strong>keyboard hypnosis</strong>.</p>

<hr />

<p>it doesn’t have to be that antagonistic, though.</p>

<p>there’s none of that in claude code, sure,
at least in <strong>how we use it now</strong>.
but that may change.</p>

<p>do you know the size of the context window of the latest models (opus 5.5 and gpt luna, as i type)?
in words?</p>

<p>it’s a frikkin 1500-page book.
<em>it’s the friggin misérables</em>.
it’s three volumes of lord of the rings that you can type as a prompt.
why would we shy away?</p>

<p>llms are a way to average your thoughts:
if you ramble on for 1500 pages about how you want to build that thing, it <strong>will</strong> find its way through the mess!
put all of your ideas in there, pieces of code, planned developments…
no “make a todo app, no mistakes”.
no “one-shot”.
just the brain dump of a thousand ideas.</p>

<p>maybe that’s the new paradigm.
at least it’s a way out.
llms are not a tool,
not for <a href="https://www.linkedin.com/pulse/ai-tool-rich-hickey-kjl8e">rich hickey</a>,
not for <a href="https://en.wikipedia.org/wiki/Tools_for_Conviviality">ivan illich</a>,
because they use you instead of you using them.
but we can find a reverse uno.
i know <em>human intelligence</em> can.</p>

<p>maybe in the future the product of a company will be one big ass prompt
that they run on each 31 of the month,
and they keep <em>that</em> a secret.</p>

<hr />

<p>in a lot of ways,
i’m reminded of
<a href="https://www.youtube.com/watch?v=ty49GG2MnyA">this passage</a>
in breaking bad:
jesse’s wooden box as a testament of his crafty and carefree past.</p>

<p>or that story of a heartbreak one day, and the dad didn’t say anything.
the dad offered to spend the weekend building, in the garage,
a wooden closet, from saw, planks and nails.
and it helped the heartbreak pass.</p>

<p>and that’s for argument 3.
code doesn’t have much value now,
except a sentimental one.</p>

<p>don’t sell it for crack.</p>

<p><strong>just type.</strong></p>]]></content><author><name>le guide</name></author><summary type="html"><![CDATA[web developers do not look ok nowadays.]]></summary></entry><entry><title type="html">jnvn 2025-2026</title><link href="https://blog.legires.fr/2026/10/11/jnvn.html" rel="alternate" type="text/html" title="jnvn 2025-2026" /><published>2026-10-11T00:00:00+00:00</published><updated>2026-10-11T00:00:00+00:00</updated><id>https://blog.legires.fr/2026/10/11/jnvn</id><content type="html" xml:base="https://blog.legires.fr/2026/10/11/jnvn.html"><![CDATA[<p>méthodo : j’écoute tout en ordre antichronologique</p>

<p><strong><a href="https://www.youtube.com/watch?v=K44dbqV8I3c">blue screen</a></strong></p>

<ul>
  <li>les high hat pitchés sont cool, ils devraient être plus mis en valeur</li>
  <li>le kick manque de click avec une 808 aussi grave, ou alors avoir un pattern de roll</li>
  <li>bon taff sur les fx</li>
  <li>illustration très cool</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=RoZw2cvU84Q">dystopia</a></strong></p>

<ul>
  <li>ah ouais illustration animée et tout, propre !!</li>
  <li>là c’est le contraire, basse reese / glide très expressive, le reste devrait reculer un peu</li>
  <li>un peu comme www : https://mariemalheur.bandcamp.com/track/world-wide-war</li>
  <li>et la basse devrait prendre des automations</li>
  <li>et tempo plus bas, 84-86 BPM</li>
  <li>mélos très cool</li>
  <li>les drum fills sont un peu grillés</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=pkBaTqBxdR0">racines</a></strong></p>

<ul>
  <li>ouah ambiance</li>
  <li>trop cool le boom bap, faudrait que le kick et la snare tapent un peu plus pour marquer l’écart avec les nappes de basses (+ de med/high, pas forcément plus de compression mais à voir)</li>
  <li>j’aime j’aime bien ça</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=mrbOMKGK22k">trajet 404</a></strong></p>

<ul>
  <li>bah bah c’est digital</li>
  <li>giga propre</li>
  <li>mélo nickel, la contre-mélo qui descend devrait prendre un filter avec une attaque (elle a pas longtemps, elle doit trancher)</li>
  <li>oh sa race le pitch down slow down pour le beat switch ouaaaaah</li>
  <li>trop trop propre j’en veux tellement plussssss</li>
  <li>j’écoute en repeat, la compo globale est folle, trop de génie dans l’arrangement</li>
  <li>rah ouais ce beat switch, le roll de bass, mama le caviar</li>
  <li>me rappelle fusion mansion : https://soundcloud.com/louis-emmanuel-macron/new-fusion-mansion</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=6IqYpnsc7Bs">black card</a></strong></p>

<ul>
  <li>problème de mélo là, elle est pas on tune (pas grave pour une contre mélo, mais là c’est la principale)</li>
  <li>j’pense on peut la remove et mettre les bells deux octaves plus haut comme elles ont un rythme</li>
  <li>et ça simplifie, y’a déjà de la basse et du piano tassés en bas</li>
  <li>et rajouter un sfx rythmique pour appuyer le rythme, genre un scratch ou je sais pas mais qui fasse “gimmick” à la migos</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=XntdcSYUQJ0">sexy nana</a></strong></p>

<ul>
  <li>bon mdr tu t’es régalé mais bon c’est pas mon rayon</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=70A7Gr3B4qw">mirage</a></strong></p>

<ul>
  <li>il est chouette ton logo chouette, charmeur de chouettes dans le désert</li>
  <li>ah je vois l’idée ! utiliser un max de souffle, et le faire “râper” au papier de verre / sable du désert</li>
  <li>grave ambitieux, ça c’est de la musique.</li>
  <li>je saurais pas par où le prendre. peut-être par les detunes : le piano l’est pas, la flûte un peu, les sfx beaucoup</li>
  <li>bête d’idée en tout cas ça se voit t’es pas n’importe qui</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=L1WEduOaVAw">quartier de lune</a></strong></p>

<ul>
  <li>pas le bon bpm pour moi</li>
  <li>je sais pourquoi, ça me fait grave penser à belsunce breakdown qui est à 110 bpm</li>
  <li>la 808 pourrait être plus basse</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=9G6dPcUI5c4">live session</a></strong></p>

<ul>
  <li>stylé mon sauce, t’as un tiktok ? le genre de truc qui marche très bien dessus</li>
  <li>t’as un vilain funk, la première ligne mélodique miam miam</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=oxqtxOMi35g">big brothers</a></strong></p>

<ul>
  <li>faudrait remove les drums avant le drop</li>
  <li>très très très propre comme copie ça j’aime beaucoup</li>
  <li>j’ai l’impression qu’il y a un kick en trop mais le beat est bon</li>
  <li>me fait penser à neural network : https://www.youtube.com/watch?v=289ZY_Ffc-Y</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=03f_8d_e9Dw">no hook</a></strong></p>

<ul>
  <li>pareil pas client de ce genre de rap, marrant qu’il dise “la prod elle est d’igo” dans un remix ceci dit</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=5OC0qMG-oNU">psy cow</a></strong></p>

<ul>
  <li>ow ça slide, en phase avec le délire</li>
  <li>button pusher sample masher</li>
  <li>le pti saxo bontempi bien phoenix wright je fuck with that aussi</li>
  <li>ptet moins marquer les accords au piano quand ils sont pas glitchés</li>
  <li>ça se voit quand c’est toi au keyboard ptit grooveur</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=ykwz6C6s294">daft punk x thundercat</a></strong></p>

<ul>
  <li>l’essai est honorable mais ce son la barre est haute mdr, leurs ptits bruits d’évier funky à ces foutus robots</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=YI3Rrrtqqs0">satan 3</a></strong></p>

<ul>
  <li>mdrrr t’es visionnaire, t’as fait le pivot avant lui</li>
  <li>bon là pour le coup le son de base est pas bon, donc que faire</li>
  <li>au moins c’est marrant</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=ovYABFqFfUo">star wars type beat</a></strong></p>

<ul>
  <li>quel inspi mon salaud</li>
  <li>ptdrrrrrrrrrrrrrrr ah le r2d2 scream ah non t’es trop fort</li>
  <li>incroyable</li>
  <li>incroyable</li>
  <li>entre la folie et le génie, la youtube poop et le commentaire de texte</li>
  <li>la marche impériale juste en suggéré, la 808 au respirateur de vador, le scratch au r2d2, CLASSIQUE</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=yfQ-DsGtDrQ">million dollar silence</a></strong></p>

<ul>
  <li>70 BPM plutôt que 140</li>
  <li>la copie est propre mais ça manque peut-être un peu de sel</li>
  <li>la fin me fait dire que tous les éléments sont là ceci dit</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=qN5jV6mec_g">scar tissue</a></strong></p>

<ul>
  <li>un poil générique et un problème de mix sur les drums</li>
  <li>mais le solo de guitare est bien, tu grattes ou c’est du synthé ? (je dirais synthé, au pattern plus qu’au son, ce qui veut dire que t’as un bon vst)</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=bCY2cPlWFU8">doomsday</a></strong></p>

<ul>
  <li>cold</li>
  <li>rien à dire sur celle-là c’est propre, reverb icy</li>
  <li>beat switch maîtrisé</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=dkU3F-pfh2M">crooked</a></strong></p>

<ul>
  <li>je connais pas l’original</li>
  <li>ouuuuh j’aime, la snare qui traîne la patte, et en plus raccord avec le thème j’ai l’impression</li>
  <li>le genre de remix qu’on veut, ça se réécoute</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=OzlHenUPjx8">rituel</a></strong></p>

<ul>
  <li>marrant ça, ça me rappelle hugo : https://soundcloud.com/nura666/oguh</li>
  <li>mdr je sais pas si tu vois la ressemblance mais je te jure c’est fou</li>
  <li>sinon bah j’adore, propre cold et désartibulé, tout à fait mon délire</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=bpeRseh5nAY">mariah carey</a></strong></p>

<ul>
  <li>mdrrrrrr l’image est tellement cursed</li>
  <li>paralysie du sommeil j’adore</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=grXW1uRZmbI">leon</a></strong></p>

<ul>
  <li>la prod est ok i guess mais bon le rappeur drill uk j’aime pas trop</li>
  <li>c’est dur les bons acap</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=ZgVFfInwKc0">everything in its right place</a></strong></p>

<ul>
  <li>ah la bonne ref</li>
  <li>c’est propre et dans l’esprit du bon travail, peut-être ça peut être boosté par des drums acap ?</li>
  <li>en vrai très belle copie mais… malheureusement la concu est rude sur ce son</li>
  <li>version nto : https://soundcloud.com/ntonto/radiohead-everything-in-its-right-place-nto-unofficial-remix</li>
  <li>version acid : https://soundcloud.com/filthonacid/radiohead-everything-in-its-right-place-reinier-zonnevelds-filth-on-acid-remix</li>
  <li>et surtout, toi qui m’a l’air d’être un kendrick kiffeur, regarde moi ce poulet rôti :</li>
  <li>https://soundcloud.com/niminomusic/take-off-everything-remix</li>
  <li>bravo encore de t’y être attaqué</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=OWs7quYwC54">good time</a></strong></p>

<ul>
  <li>cold ça, un beatmaker l’hiver dans le nord c’est danger</li>
  <li>prêt à servir ce genre de prod</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=5le7VnIduFI">singularity</a></strong></p>

<ul>
  <li>okay je vois la proposition, j’aurais plus dézingué les hh (pitch filter), et faudrait les remove sur les bridges, c’est eux la mélo en vrai</li>
  <li>j’aime bien</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=EHZzK_xDAwE">houston</a></strong></p>

<ul>
  <li>yah yah yah je capte je capte mais faut revoir la disto, belle envie</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=TGuyRjg0sVk">casper</a></strong></p>

<ul>
  <li>j’ai déjà entendu l’instru tout à l’heure j’ai l’impression, black card ?</li>
  <li>ouais c’est ça, j’ai reconnu la detune. bah ouais ça marche. pas le meilleur son du pas meilleur des migos</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=QEK3DMXa59w">the ring</a></strong></p>

<ul>
  <li>problème d’instrument, je reconnais quand on s’embarque dans une da et on se sabote en auto-matrixage</li>
  <li>si j’essaye d’expliquer, c’est que les mélos collent pas avec les vst. et comme les mélos sont bonnes, faut changer les vst, même si c’était la da</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=S-JYoxjih7U">all of a sudden</a></strong></p>

<ul>
  <li>j’aime bien. l’énergie du rappeur est cool, et la prod est bien (elle pourrait taper plus, mais je me demande si c’est pas l’acap qui m’influence)</li>
  <li>non faut bien que ça tape plus. les vst “aquatiques” comme ça j’aime bien quand c’est comme chez irko : https://www.youtube.com/watch?v=NfH1ATOj-jE</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=MSQf4ztYjUo">nuit blanche</a></strong></p>

<ul>
  <li>hmmm chill j’aime beaucoup</li>
  <li>pattern de hh très berçant, on est bien la night en brouillard</li>
  <li>une réussite</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=j7avfmcIsqY">nautilus</a></strong></p>

<ul>
  <li>oh j’aime beaucoup la superposition d’ambiances, entre le futuriste et un truc plus broody en dessous</li>
  <li>drums clean je bouge ma tête</li>
  <li>nautilus challenger ça</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=IUK-aZ7f5vI">la leakers freestyle</a></strong></p>

<ul>
  <li>c’est tellement bon ces prods sheesh, god bless ce genre de ragtime piano, c’est fou comme quand ça kick y’a besoin de rien de plus</li>
  <li>les petites nappes qui arrivent sont très bien vues (bien vu ? ça s’accorde bv ?)</li>
  <li>bref bv bv</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=lTUcD1FlfaI">red sphinx</a></strong></p>

<ul>
  <li>c’est un bop, on a un bon délire égyptien en effet, à voir si on peut appuyer encore le délire</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=sYn8tU53Z-o">voraces</a></strong></p>

<ul>
  <li>le son est si mauvais de base mdr, mais bon ta prod est cool, j’aime surtout l’arrangement</li>
</ul>

<p><strong><a href="https://www.youtube.com/watch?v=P68jy9U2VNA">never freestyle</a></strong></p>

<ul>
  <li>eh ça tue. la prod laidback c’est une vraie réussite et y’a un bon match avec le rappeur, c’est très très bien vu</li>
  <li>rythme en push pull + orgue c’est du sexe mon jeannot, grande prod</li>
  <li>eh merde ça tient la distance, ils rappent ces gars</li>
  <li>gamberge de fou j’adore</li>
  <li>on repeat, big son</li>
  <li>nan vraiment j’arrive pas à m’arrêter de rayer le sillon, ah gros</li>
  <li>attends attends faut que j’aille écouter l’original…</li>
  <li>attends quoi……. quoi ?!</li>
  <li>oh putain alors alors… mec t’es gifted. je les connaissais pas, le son est incr c’est que des bars j’adore, mais l’instru était miiiiisérable</li>
  <li>et t’en as fait un chef-d’œuvre. ah gars</li>
  <li>all-timer</li>
</ul>

<p>bon je m’arrête là, j’ai remonté bien un an et ça finit sur les émotions. merci pour tout gros, prends pas mes critiques trop direct, c’est plus des notes si jamais on a la chance de travailler ensemble plus tard, notes pour plus tard ouais.</p>

<p>t’as plein de talent c’est fou. j’espère t’offrir un drink un jour pour ce never freestyle ça sera pas volé</p>

<p>peace (and lovés of course)</p>

<p><strong>le</strong></p>]]></content><author><name>le guide</name></author><summary type="html"><![CDATA[méthodo : j’écoute tout en ordre antichronologique]]></summary></entry><entry><title type="html">le lecteur</title><link href="https://blog.legires.fr/2026/09/15/le_lecteur.html" rel="alternate" type="text/html" title="le lecteur" /><published>2026-09-15T00:00:00+00:00</published><updated>2026-09-15T00:00:00+00:00</updated><id>https://blog.legires.fr/2026/09/15/le_lecteur</id><content type="html" xml:base="https://blog.legires.fr/2026/09/15/le_lecteur.html"><![CDATA[<blockquote>
  <p>— je préfère observer à comprendre, disait phénucianus.
— tu commences à lire, lui répondait frater lucius.</p>
</blockquote>

<p>ces vacances,
j’ai découvert une des plus profondes vérités sur moi-même :</p>

<p>je suis un bon lecteur.</p>

<hr />

<p>il faut déjà être un lecteur.
en avoir eu le goût petit.
avoir de l’appétit pour l’objet.</p>

<p>en savourer les fruits, aussi, bien sûr :
la connaissance, le vocabulaire,
le son des mots,
“avoir vécu plus qu’une seul vie”,
et la détente, le loisir,
s’évader
et bla et bla et bla…</p>

<p>vous savez probablement tout ça,
et on l’a mieux dit que moi.</p>

<p>mais un <strong>bon</strong> lecteur ?</p>

<hr />

<p>c’est peut-être un peu péteux ce que j’écris, là…
“bon” je sais pas, ça veut p’têt rien dire…</p>

<p>bref, je suis, quand je lis, <strong>indulgent</strong>.</p>

<p>ça la découverte.</p>

<p>je comprends d’instinct que le livre a été <strong>commis</strong>,
plus qu’écrit.
quelqu’un a laissé ce tas de feuilles là et a pas ramassé.</p>

<p>oh pour mile raisons !
je n’en ai ressenti que trop.
mais toutes sont valables !
je prends tout !</p>

<p>“donnez-moi vos mots, vos papiers,
vos presses innombrables,
rebut des pages surpeuplées,
je dresse mes lunettes au-dessus de la porte d’or !”</p>

<p>j’accueille tout. je pardonne tout.
auteur, je suis ton lecteur.</p>

<p>fleuve, je suis ta mer.</p>

<hr />

<p>j’ai découvert ça en lisant <em>la cybériade</em>.</p>

<p>car s’il est vrai que la plupart des auteurs écrivent pour des raisons étranges,
s’il est vrai que la plupart écrivent depuis l’enfer,
et qu’inconnus sont leurs desseins,
il est aussi vrai que certains écrivent pour nous.</p>

<p>lem, salvaing, huysmans…</p>

<p>ils viennent à nous les bras chargés de poissons,
avec un sourire d’animiste.</p>

<p>comme à un fermier qui aime ses poules,
ses connes de poules qui mangent tout,
une généreuse poignée de grains.</p>

<p>je les aime plus que tout.
s’il est vrai que tout homme doive partir en laissant derrière lui
un arbre, un enfant ou un livre,
que le ciel m’accorde d’être de ceux-là.</p>

<hr />

<p>voilà, je pense avoir tout dit.</p>

<p>j’en ai parlé avec ma chérie et elle m’a dit :
“tu es indulgent avec les gens que tu connais,
mais critique avec le reste”.</p>

<p>serait-ce que “j’ouvre” ma familiarité
aux auteurs ?</p>

<p>peut-être pas.
les termes ne sont pas si incompatibles.
on peut être critique dans une position d’indulgence,
ou l’inverse.
ça dépend avec qui.</p>

<p>ou peut-être.
nous le découvrirons sûrement.</p>

<p>continuons à lire.</p>]]></content><author><name>le guide</name></author><summary type="html"><![CDATA[— je préfère observer à comprendre, disait phénucianus. — tu commences à lire, lui répondait frater lucius.]]></summary></entry><entry><title type="html">nouvelle école</title><link href="https://blog.legires.fr/2026/06/19/nouvelle_ecole.html" rel="alternate" type="text/html" title="nouvelle école" /><published>2026-06-19T00:00:00+00:00</published><updated>2026-06-19T00:00:00+00:00</updated><id>https://blog.legires.fr/2026/06/19/nouvelle_ecole</id><content type="html" xml:base="https://blog.legires.fr/2026/06/19/nouvelle_ecole.html"><![CDATA[<p>j’étais tranquille en train de dig sur soundcloud
quand je tombe sur
<a href="https://soundcloud.com/omfgitsmateo/side-hustle-lullaby">un son de fou malade</a>.</p>

<p>écoute un peu.
tête qui bounce,
je mets un like.</p>

<p>et puis… merde non, y’a un truc qui va pas.</p>

<p>j’écoute de plus près : ouais c’est une <strong>musique ia</strong>.
je retire le like, pas déconner.</p>

<p>alors les amis, parlons de la musique ia, parlons suno, parlons futur.</p>

<h2 id="comment-la-repérer-">comment la repérer ?</h2>

<p>(autre qu’avec le visuel ia dégueulasse qui va avec, s’entend)</p>

<p>c’est plus facile s’il y a des paroles.
trois indices :</p>

<p>un, les phrases trop longues.
les paroles s’étirent pour coller sur les temps forts.
ça fait un flow “chewing-gum”,
surtout parce que les mecs qui promptent savent pas chanter i guess.</p>

<p>deux, une inadéquation émotion-paroles.
elle capte pas la logique.
elle va se mettre à gueuler sur une phrase random 
juste parce qu’elle est pré-drop,
ou à chuchoter sur le bridge,
en gros à changer de style alors que les paroles
sont encore dans une suite logique de la phrase précédente.</p>

<p>trois, si la musique est pas en anglais.
c’est massivement entrainé sur des chansons anglaises,
en français ou autre ça bug plus facilement.</p>

<p>si y’a pas de paroles,
alors là c’est plus chaud.
on peut encore trouver en filtrant la musique.
pourquoi ?</p>

<p>va falloir rentrer dans le détail
de comment la saucisse est faite :</p>

<h2 id="la-musique-par-extrusion">la musique par extrusion</h2>

<p>la musique normale se fait par addition.</p>

<p>comme la musique d’orchestre qui résulte des instruments jouant ensemble,
on compose sur l’ordi en créant une ligne de basse, une ligne de clavier,
on ajoute les drums etc, et puis on arrange tout ça.</p>

<p>l’intro on va mettre les claviers, les pads et des effets.
le drop on rajoute kick et bass, bref vous avez l’idée,
le truc à retenir c’est qu’on part du <strong>silence</strong>.</p>

<p><img src="/img/schema_musique.png" alt="schema" /></p>

<p>l’ia générative type suno, c’est l’inverse.
elle part du <strong>bruit</strong>
et arrange ce bruit jusqu’à ressembler au style demandé.
elle prend un bruit blanc
(toutes les fréquences entre 20hz et 20khz jouées à amplitude maximale, comme un static de tv)
puis va le rapprocher d’une
<a href="https://en.wikipedia.org/wiki/Waveform">waveform</a>
pop, jazzy, rap, etc.</p>

<p>ça peut éventuellement le faire plusieurs fois
puis concaténer les pistes,
je sais pas exactement les coulisses,
mais en gros c’est ça.</p>

<p>faut imaginer, c’est comme la génération d’image qui part de ce genre d’image de départ :</p>

<p><img src="/img/white_noise.webp" alt="noise" /></p>

<p>puis explore en changeant des pixels,
avec une récompense quand elle s’approche de “photo de montagne”.</p>

<blockquote>
  <p>ouais bon ok, et ?</p>
</blockquote>

<p>beh en gros c’est trop “plein”.</p>

<p>le son est trop riche, il reste trop de trucs.</p>

<p>quand on fait de la musique en normal (en rajoutant des trucs),
<strong>c’est dur de remplir les trous</strong>.</p>

<p>ça va toujours manquer de punch dans les basses, dans les aigus.
les harmoniques de tel instrument ou tel preset vont pas être assez pleines.
ou alors il joue des notes très écartées, donc ça va créer des trous ça et là…</p>

<p>avec l’ia, jamais.</p>

<p>c’est pour ça que les mixs ia vont toujours sonner “pro”.
c’est dur à dire mais l’ia mix/masterise
mieux que personne au monde.</p>

<p>genre, 
<a href="https://soundcloud.com/omfgitsmateo/shake-zula">écoute cette merde</a>.
le mix est toujours giga plein, malgré la composition compliquée.</p>

<p>et en même temps, écoute bien les aigus,
comment ils sont forts tout le temps.
pas possible de faire ça en vrai.</p>

<p>l’ia ajoute du souffle sur son instrument qui sont pas là,
bref c’est compliqué à expliquer,
mais en gros, 
<em>si c’est plein, c’est pas humain</em>.</p>

<p>(on peut faire pareil avec les images ia il paraît,
retrouver les traces du bruit blanc de base
en analysant les fréquences)</p>

<p>donc bon ok.
ça fait de la meilleure musique que nous.
on fait quoi ?</p>

<h2 id="à-bout-de-souffle">à bout de souffle</h2>

<p>déjà “meilleure”, faut doser.</p>

<p>oui sur le plan sonique pur, mais :</p>

<p>sur le plan des paroles,
ça écrit que de la d.</p>

<p>sur le plan de l’originalité,
ça peut mais ça peut pas être radicalement radical
(je me comprends).</p>

<p>et sur le plan de l’inspi ?
c’est compliqué…</p>

<p>ça envoie fort dans l’intro.
j’imagine que c’est la méta,
envoyer la purée dans les 30 premières secondes
pour que ça compte comme un stream,
mais en gros quand t’as écouté le début t’as compris le reste.</p>

<p>pas de fortes évolutions,
de longues progressions,
de changement de clé ou de tempo.
t’as écouté le début t’as compris le reste.
et le reste est un ventre mou.</p>

<p>sauf que parfois, si on lui tire les vers du nez,
si on force l’ia à continuer, continuer, continuer
de générer la musique,
elle va arriver 
<strong>à bout de souffle</strong>.</p>

<p>plus d’idée, et pourtant il <strong>faut</strong> qu’elle sorte un truc.
et là ça peut être <em>vraiment</em> beau.
en voilà
<a href="https://soundcloud.com/omfgitsmateo/severed">un exemple</a>,
vous reconnaitrez sans problème.</p>

<p>l’ia c’est comme un train nazi,
c’est beau que quand ça déraille.</p>

<h2 id="le-futur">le futur</h2>

<p>résumons :
l’ia fait une musique trop parfaite,
pas inspirée mais inspirante.</p>

<p>j’adore “digger” les morceaux ia,
en skimmant le début et les endroits bizarres de la waveform.</p>

<p>mais le grand public ?</p>

<p>bah tout le monde va y aller.
désolé mais y’a rien à voir,
la musique va sortir au kilomètre que tu le veuilles ou non.</p>

<p>oui les paroles sont dégzer,
mais des vrais gens vont juste poser dessus
et ça va truster des tops spotify 
(ou autre plate-forme, ça dépend combien de temps on pourra ban efficacement mais ça durera pas)
et bon c’est la vie.</p>

<p>pour les beatmakers,
miskine ton type beat
quand on sort
<a href="https://soundcloud.com/omfgitsmateo/front-page">ce genre d’instru</a>
facile,
ça fait de la peine.
une fois de plus c’est la vie faut évoluer.</p>

<p>les conséquences les plus marrantes
vont venir du
<strong>nouveau son</strong>.</p>

<p>tout le monde va s’aligner au moins sur le mix.
la nouvelle école sera saturée,
pleine de fréquences parasites
et bien trop aiguë.
et tout le monde trouvera ça très bien.</p>

<p>ça va faire mal aux oreilles.</p>]]></content><author><name>le guide</name></author><summary type="html"><![CDATA[j’étais tranquille en train de dig sur soundcloud quand je tombe sur un son de fou malade.]]></summary></entry><entry><title type="html">job rejections</title><link href="https://blog.legires.fr/2026/06/18/job_rejections.html" rel="alternate" type="text/html" title="job rejections" /><published>2026-06-18T00:00:00+00:00</published><updated>2026-06-18T00:00:00+00:00</updated><id>https://blog.legires.fr/2026/06/18/job_rejections</id><content type="html" xml:base="https://blog.legires.fr/2026/06/18/job_rejections.html"><![CDATA[<p>my job sucks balls.<sup id="fnref:1" role="doc-noteref"><a href="#fn:1" class="footnote" rel="footnote">1</a></sup></p>

<p>i’ve been searching for a job
since i was out of school 6 years ago
(which was during covid, ok not the best time to job hunt).</p>

<p>i figured i’d list
every place i was rejected from.</p>

<p>for every job, i did a tailored cv
(and short motivation letter if needed).
did the interviews (phone, teams, coding…),
went in person if needed…</p>

<p>this might not be exhaustive,
i just searched “candidature” on my mail box.</p>

<p>here we go:</p>

<p>september 26
/ deploy
/ forward-deployed engineer</p>

<p>march 26
/ sekoia
/ backend engineer</p>

<p>march 26
/ sandfox
/ system designer</p>

<p>february 26
/ free
/ cyber risk analyst</p>

<p>october 25
/ thales
/ strategic designer</p>

<p>march 25
/ digitemis
/ can’t remember</p>

<p>february 25
/ wavestone
/ cyber consultant</p>

<p>september 24
/ exa
/ strategy consultant</p>

<p>april 24
/ squad
/ cyber consultant</p>

<p>april 24
/ amaris
/ cyber consultant</p>

<p>march 24
/ exotec
/ cyber engineer</p>

<p>march 24
/ metsys
/ cyber engineer</p>

<p>march 24
/ niji
/ cyber engineer</p>

<p>august 22
/ akka
/ cyber engineer</p>

<p>january 22
/ internet of trust
/ cyber engineer</p>

<p>january 22
/ sncf
/ mobility consultant</p>

<p>january 22
/ compethance
/ project leader</p>

<p>january 22
/ daphni
/ join incubator</p>

<p>older stuff 2021/2020 (i was getting tired):</p>

<ul>
  <li>greenworking</li>
  <li>luos</li>
  <li>makesens</li>
  <li>backmarket</li>
  <li>capgemini</li>
  <li>ubisoft</li>
  <li>apside</li>
  <li>musicworldmedia</li>
  <li>alten</li>
  <li>dassault</li>
  <li>sec2s</li>
  <li>thales again</li>
  <li>kp consulting</li>
  <li>mobydish</li>
  <li>orange</li>
  <li>aircall</li>
  <li>padok</li>
  <li>qonto</li>
  <li>kushim</li>
  <li>solary</li>
  <li>
    <p>payfit</p>
  </li>
  <li>a bunch of shit
through linkedin, welcome or angel list
(but it doesn’t show up in the mail)</li>
</ul>

<p>i’ve also been rejected from “normal” jobs back in the day:
for example a clothing store
(she asked me to fold something and tell me which material it was and that was that lol)
but i don’t mind that.
this is a post to say my degree’s fucking worthless man.</p>

<p>or maybe i have shit network.
i asked friends sometimes but hey…
will work for food is what i meant.</p>
<div class="footnotes" role="doc-endnotes">
  <ol>
    <li id="fn:1" role="doc-endnote">
      <p>it does not suck ass <em>per se</em>, it’s just that it is evil. unapologetically evil. <a href="#fnref:1" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
    </li>
  </ol>
</div>]]></content><author><name>le guide</name></author><summary type="html"><![CDATA[my job sucks balls.1 it does not suck ass per se, it’s just that it is evil. unapologetically evil. &#8617;]]></summary></entry><entry><title type="html">i love pyglet</title><link href="https://blog.legires.fr/2026/06/05/pyglet.html" rel="alternate" type="text/html" title="i love pyglet" /><published>2026-06-05T00:00:00+00:00</published><updated>2026-06-05T00:00:00+00:00</updated><id>https://blog.legires.fr/2026/06/05/pyglet</id><content type="html" xml:base="https://blog.legires.fr/2026/06/05/pyglet.html"><![CDATA[<h2 id="introduction">introduction</h2>

<p>i had a challenge.</p>

<p>i wanted to make an animated sun bounce around my screen.</p>

<p>(and by the end of this article, you will know how to make yours too!)</p>

<p>something like <strong>this</strong>:</p>

<video width="100%" controls="" muted="" style="filter: invert(1)">
  <source src="/mp4/pyglet0.mp4" type="video/mp4" />
  Your browser does not support the video tag.
</video>

<p>with some added constraints:</p>
<ul>
  <li>i wanted to spawn/despawn suns</li>
  <li>i wanted the suns to be animated</li>
  <li>i could place some elements and suns would bounce off them</li>
</ul>

<p>why?
well i do youtube videos,
twitch streaming,
and you know how the kids are,
easily distracted unless you have a 
steady supply of dopamine.</p>

<p>did it work? hell yeah, look at that!</p>

<video width="100%" controls="" muted="" style="filter: invert(1)">
  <source src="/mp4/pyglet1.mp4" type="video/mp4" />
  Your browser does not support the video tag.
</video>

<p>now, to make this happen,
i would need a piece of software that could:</p>
<ul>
  <li>handle input</li>
  <li>advance state</li>
  <li>draw stuff</li>
</ul>

<p>we usually call these things
<strong>“game engines”</strong>.
the name is fairly transparent.</p>

<p>i have some experience with pygame
(and watch da fluffy potato’s videos),
but before diving in i made a quick google search
and found <strong>pyglet</strong>.</p>

<p>it seemed less cumbersome than pygame,
and after dev’ing with it i can say it is.</p>

<p>mostly because:</p>
<ul>
  <li>no external dependencies</li>
  <li>nice writing style, doesn’t feel “bloated”</li>
  <li>lot of simple optimizations out-of-the-box (batching, animations)</li>
  <li>the event system is versatile (simple defaults for controls or window, but can be easily extended)</li>
</ul>

<p>i could go on, but code is worth a thousand word.</p>

<p>let’s go!</p>

<h2 id="how-to-make-funny-suns">how to make funny suns</h2>

<p>the trick here
is to use a blue screen
(just like in marvel movies).</p>

<p>you draw your stuff on a blue background,
capture the window with obs,
then use the 
“alpha key” 
feature of obs to remove the blue.</p>

<p>it’s kinda heavy on the processor.
there’s a better way to do it, maybe?</p>

<p>anyway, let’s go and draw a background.
the way we <em>connoisseurs</em> of the art do it
is we draw a big fat rectangle on the screen:</p>

<div class="language-python highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kn">import</span> <span class="nn">pyglet</span>


<span class="n">WINDOW_W</span> <span class="o">=</span> <span class="mi">1920</span>
<span class="n">WINDOW_H</span> <span class="o">=</span> <span class="mi">1080</span>


<span class="n">window</span> <span class="o">=</span> <span class="n">pyglet</span><span class="p">.</span><span class="n">window</span><span class="p">.</span><span class="n">Window</span><span class="p">(</span><span class="n">WINDOW_W</span><span class="p">,</span> <span class="n">WINDOW_H</span><span class="p">,</span> <span class="n">fullscreen</span><span class="o">=</span><span class="bp">True</span><span class="p">)</span>

<span class="n">background</span> <span class="o">=</span> <span class="n">pyglet</span><span class="p">.</span><span class="n">shapes</span><span class="p">.</span><span class="n">Rectangle</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="n">WINDOW_W</span><span class="p">,</span> <span class="n">WINDOW_H</span><span class="p">,</span> <span class="n">color</span><span class="o">=</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">255</span><span class="p">))</span>

<span class="o">@</span><span class="n">window</span><span class="p">.</span><span class="n">event</span>
<span class="k">def</span> <span class="nf">on_draw</span><span class="p">():</span>
    <span class="n">window</span><span class="p">.</span><span class="n">clear</span><span class="p">()</span>
    <span class="n">background</span><span class="p">.</span><span class="n">draw</span><span class="p">()</span>

<span class="k">if</span> <span class="n">__name__</span> <span class="o">==</span> <span class="s">"__main__"</span><span class="p">:</span>
    <span class="n">pyglet</span><span class="p">.</span><span class="n">app</span><span class="p">.</span><span class="n">run</span><span class="p">()</span>
</code></pre></div></div>

<p>i just love that i don’t have to explain anything.
pyglet “hello world” is very self-explanatory,
especially if you’re familiar with decorators and event systems
(for example if you did some webdev).</p>

<p>if it doesn’t click, just stare at it a bit longer,
i promise it will.</p>

<p>“rectangle” is not the only cool helper you get,
you have all them shapes + text too:</p>

<div class="language-python highlighter-rouge"><div class="highlight"><pre class="highlight"><code>
<span class="n">count_label</span> <span class="o">=</span> <span class="n">pyglet</span><span class="p">.</span><span class="n">text</span><span class="p">.</span><span class="n">Label</span><span class="p">(</span>
    <span class="s">"louis sunshine"</span><span class="p">,</span>
    <span class="n">font_name</span><span class="o">=</span><span class="s">"Arial"</span><span class="p">,</span>
    <span class="n">font_size</span><span class="o">=</span><span class="mi">16</span><span class="p">,</span>
    <span class="n">x</span><span class="o">=</span><span class="mi">10</span><span class="p">,</span>
    <span class="n">y</span><span class="o">=</span><span class="n">WINDOW_H</span> <span class="o">-</span> <span class="mi">34</span><span class="p">,</span>
    <span class="n">anchor_x</span><span class="o">=</span><span class="s">"left"</span><span class="p">,</span>
    <span class="n">anchor_y</span><span class="o">=</span><span class="s">"top"</span><span class="p">,</span>
    <span class="n">color</span><span class="o">=</span><span class="p">(</span><span class="mi">255</span><span class="p">,</span> <span class="mi">255</span><span class="p">,</span> <span class="mi">255</span><span class="p">,</span> <span class="mi">255</span><span class="p">),</span>
<span class="p">)</span>

<span class="c1"># later...
</span>
<span class="o">@</span><span class="n">window</span><span class="p">.</span><span class="n">event</span>
<span class="k">def</span> <span class="nf">on_draw</span><span class="p">():</span>
    <span class="n">window</span><span class="p">.</span><span class="n">clear</span><span class="p">()</span>
    <span class="n">background</span><span class="p">.</span><span class="n">draw</span><span class="p">()</span>
    <span class="n">count_label</span><span class="p">.</span><span class="n">draw</span><span class="p">()</span>
</code></pre></div></div>

<p>notice how anchor
(the “reference” point of the element)
can be nicely set up with shorthands.</p>

<p>okay, that’s nice and jazzy,
but what about the suns?</p>

<p>well, we’re going to use this spritesheet:</p>

<p><img src="/img/sun2.png" alt="sun" /></p>

<p>like this:</p>

<div class="language-python highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c1"># this tells pyglet that folder "resources" is where we dump our assets
</span><span class="n">pyglet</span><span class="p">.</span><span class="n">resource</span><span class="p">.</span><span class="n">path</span> <span class="o">=</span> <span class="p">[</span><span class="s">"resources"</span><span class="p">]</span>
<span class="n">pyglet</span><span class="p">.</span><span class="n">resource</span><span class="p">.</span><span class="n">reindex</span><span class="p">()</span>

<span class="c1"># we load the image and indicate the grid size
</span><span class="n">sun_image</span> <span class="o">=</span> <span class="n">pyglet</span><span class="p">.</span><span class="n">resource</span><span class="p">.</span><span class="n">image</span><span class="p">(</span><span class="s">"sun2.png"</span><span class="p">)</span>
<span class="n">sun_grid</span>  <span class="o">=</span> <span class="n">pyglet</span><span class="p">.</span><span class="n">image</span><span class="p">.</span><span class="n">ImageGrid</span><span class="p">(</span><span class="n">sun_image</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">6</span><span class="p">)</span>

<span class="c1"># center the anchor
</span><span class="k">for</span> <span class="n">frame</span> <span class="ow">in</span> <span class="n">sun_grid</span><span class="p">:</span>
    <span class="n">frame</span><span class="p">.</span><span class="n">anchor_x</span> <span class="o">=</span> <span class="n">frame</span><span class="p">.</span><span class="n">width</span>  <span class="o">//</span> <span class="mi">2</span>
    <span class="n">frame</span><span class="p">.</span><span class="n">anchor_y</span> <span class="o">=</span> <span class="n">frame</span><span class="p">.</span><span class="n">height</span> <span class="o">//</span> <span class="mi">2</span>

<span class="c1"># turn the frames into a looping animation (0.1 s per frame)
</span><span class="n">sun_animation</span> <span class="o">=</span> <span class="n">pyglet</span><span class="p">.</span><span class="n">image</span><span class="p">.</span><span class="n">animation</span><span class="p">.</span><span class="n">Animation</span><span class="p">.</span><span class="n">from_image_sequence</span><span class="p">(</span>
    <span class="n">sun_grid</span><span class="p">,</span> <span class="n">duration</span><span class="o">=</span><span class="mf">0.1</span><span class="p">,</span> <span class="n">loop</span><span class="o">=</span><span class="bp">True</span>
<span class="p">)</span>

<span class="c1"># there you have it
# and you'll use the animation like this:
</span><span class="n">sprite</span> <span class="o">=</span> <span class="n">pyglet</span><span class="p">.</span><span class="n">sprite</span><span class="p">.</span><span class="n">Sprite</span><span class="p">(</span><span class="n">sun_animation</span><span class="p">,</span> <span class="n">batch</span><span class="o">=</span><span class="n">batch</span><span class="p">)</span>
</code></pre></div></div>

<p>hold on, what is that “batch” thing?</p>

<p>remember how we drew the background first,
<strong>then</strong> the text?
this was for the background not to be over the text.</p>

<p>batch mostly means 
“these things, i don’t care if they overlap, draw them in one go”
and it speeds the rendering by quite a lot.</p>

<p>now let’s make the suns move around!</p>

<div class="language-python highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c1"># let's pretend we have a function update_sun
# which takes dt (amount of time passed) as an argument
</span><span class="k">def</span> <span class="nf">update_sun</span><span class="p">(</span><span class="n">sun</span><span class="p">,</span> <span class="n">dt</span><span class="p">):</span>
    <span class="p">...</span>
    <span class="c1"># here, we compute the new position of the sun
</span>    <span class="c1"># based on its initial position, velocity
</span>    <span class="c1"># and, importantly, dt!
</span>
<span class="c1"># we then only have to attach this function to a clock
# so the function is called every dt
</span><span class="n">pyglet</span><span class="p">.</span><span class="n">clock</span><span class="p">.</span><span class="n">schedule_interval</span><span class="p">(</span><span class="n">update</span><span class="p">,</span> <span class="mi">1</span> <span class="o">/</span> <span class="mf">60.0</span><span class="p">)</span>
</code></pre></div></div>

<p>the last thing we need to do is to handle inputs.</p>

<div class="language-python highlighter-rouge"><div class="highlight"><pre class="highlight"><code>
<span class="o">@</span><span class="n">window</span><span class="p">.</span><span class="n">event</span>
<span class="k">def</span> <span class="nf">on_key_press</span><span class="p">(</span><span class="n">symbol</span><span class="p">,</span> <span class="n">modifiers</span><span class="p">):</span>
    <span class="k">if</span> <span class="n">symbol</span> <span class="o">==</span> <span class="n">pyglet</span><span class="p">.</span><span class="n">window</span><span class="p">.</span><span class="n">key</span><span class="p">.</span><span class="n">SPACE</span><span class="p">:</span>
        <span class="n">spawn_sun</span><span class="p">()</span>
    <span class="k">elif</span> <span class="n">symbol</span> <span class="o">==</span> <span class="n">pyglet</span><span class="p">.</span><span class="n">window</span><span class="p">.</span><span class="n">key</span><span class="p">.</span><span class="n">BACKSPACE</span><span class="p">:</span>
        <span class="n">remove_last_sun</span><span class="p">()</span>
</code></pre></div></div>

<p>once again, very straightforward
with pyglet’s good defaults.</p>

<hr />

<p>okay, thanks for sticking with me for so long.</p>

<p>this was not exactly a tutorial,
what i wanted was to show you the small building blocks.</p>

<p>these small “lego” blocks are all you need.
now it’s time to put them together,
i will show you the big structure.
don’t be scared by the collision code
(it’s bad anyway)</p>

<p>here is the full code:</p>

<div class="language-python highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kn">import</span> <span class="nn">math</span>
<span class="kn">import</span> <span class="nn">random</span>
<span class="kn">import</span> <span class="nn">time</span>

<span class="kn">import</span> <span class="nn">pyglet</span>


<span class="c1"># SETTINGS 
</span>
<span class="n">pyglet</span><span class="p">.</span><span class="n">resource</span><span class="p">.</span><span class="n">path</span> <span class="o">=</span> <span class="p">[</span><span class="s">"resources"</span><span class="p">]</span>
<span class="n">pyglet</span><span class="p">.</span><span class="n">resource</span><span class="p">.</span><span class="n">reindex</span><span class="p">()</span>

<span class="n">WINDOW_W</span> <span class="o">=</span> <span class="mi">1920</span>
<span class="n">WINDOW_H</span> <span class="o">=</span> <span class="mi">1080</span>

<span class="c1"># in pixels per second
</span><span class="n">SUN_SPEED</span> <span class="o">=</span> <span class="mi">150</span>          
<span class="c1"># seconds between automatic spawns
</span><span class="n">AUTO_SPAWN_SUN</span> <span class="o">=</span> <span class="mf">0.01</span>   

<span class="c1"># streamer box
</span><span class="n">BOX_W</span> <span class="o">=</span> <span class="mi">460</span>
<span class="n">BOX_H</span> <span class="o">=</span> <span class="mi">340</span>
<span class="n">BOX_X</span> <span class="o">=</span> <span class="n">WINDOW_W</span> <span class="o">-</span> <span class="n">BOX_W</span>
<span class="n">BOX_Y</span> <span class="o">=</span> <span class="mi">0</span>


<span class="c1"># WINDOW 
</span>
<span class="n">window</span> <span class="o">=</span> <span class="n">pyglet</span><span class="p">.</span><span class="n">window</span><span class="p">.</span><span class="n">Window</span><span class="p">(</span><span class="n">WINDOW_W</span><span class="p">,</span> <span class="n">WINDOW_H</span><span class="p">,</span> <span class="n">fullscreen</span><span class="o">=</span><span class="bp">True</span><span class="p">)</span>

<span class="c1"># SHAPES
</span>
<span class="n">background</span> <span class="o">=</span> <span class="n">pyglet</span><span class="p">.</span><span class="n">shapes</span><span class="p">.</span><span class="n">Rectangle</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="n">WINDOW_W</span><span class="p">,</span> <span class="n">WINDOW_H</span><span class="p">,</span> <span class="n">color</span><span class="o">=</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">255</span><span class="p">))</span>
<span class="n">red_box</span> <span class="o">=</span> <span class="n">pyglet</span><span class="p">.</span><span class="n">shapes</span><span class="p">.</span><span class="n">Rectangle</span><span class="p">(</span><span class="n">BOX_X</span><span class="p">,</span> <span class="n">BOX_Y</span><span class="p">,</span> <span class="n">BOX_W</span><span class="p">,</span> <span class="n">BOX_H</span><span class="p">,</span> <span class="n">color</span><span class="o">=</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">255</span><span class="p">))</span>

<span class="c1"># TEXT 
</span>
<span class="n">fps_display</span> <span class="o">=</span> <span class="n">pyglet</span><span class="p">.</span><span class="n">window</span><span class="p">.</span><span class="n">FPSDisplay</span><span class="p">(</span><span class="n">window</span><span class="p">)</span>
<span class="n">count_label</span> <span class="o">=</span> <span class="n">pyglet</span><span class="p">.</span><span class="n">text</span><span class="p">.</span><span class="n">Label</span><span class="p">(</span>
    <span class="s">""</span><span class="p">,</span>
    <span class="n">font_name</span><span class="o">=</span><span class="s">"Arial"</span><span class="p">,</span>
    <span class="n">font_size</span><span class="o">=</span><span class="mi">16</span><span class="p">,</span>
    <span class="n">x</span><span class="o">=</span><span class="mi">10</span><span class="p">,</span>
    <span class="n">y</span><span class="o">=</span><span class="n">WINDOW_H</span> <span class="o">-</span> <span class="mi">34</span><span class="p">,</span>
    <span class="n">anchor_x</span><span class="o">=</span><span class="s">"left"</span><span class="p">,</span>
    <span class="n">anchor_y</span><span class="o">=</span><span class="s">"top"</span><span class="p">,</span>
    <span class="n">color</span><span class="o">=</span><span class="p">(</span><span class="mi">255</span><span class="p">,</span> <span class="mi">255</span><span class="p">,</span> <span class="mi">255</span><span class="p">,</span> <span class="mi">255</span><span class="p">),</span>
<span class="p">)</span>


<span class="c1">#  SUN
</span>
<span class="n">sun_image</span> <span class="o">=</span> <span class="n">pyglet</span><span class="p">.</span><span class="n">resource</span><span class="p">.</span><span class="n">image</span><span class="p">(</span><span class="s">"sun2.png"</span><span class="p">)</span>
<span class="n">sun_grid</span>  <span class="o">=</span> <span class="n">pyglet</span><span class="p">.</span><span class="n">image</span><span class="p">.</span><span class="n">ImageGrid</span><span class="p">(</span><span class="n">sun_image</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">6</span><span class="p">)</span>

<span class="k">for</span> <span class="n">frame</span> <span class="ow">in</span> <span class="n">sun_grid</span><span class="p">:</span>
    <span class="n">frame</span><span class="p">.</span><span class="n">anchor_x</span> <span class="o">=</span> <span class="n">frame</span><span class="p">.</span><span class="n">width</span>  <span class="o">//</span> <span class="mi">2</span>
    <span class="n">frame</span><span class="p">.</span><span class="n">anchor_y</span> <span class="o">=</span> <span class="n">frame</span><span class="p">.</span><span class="n">height</span> <span class="o">//</span> <span class="mi">2</span>

<span class="n">sun_animation</span> <span class="o">=</span> <span class="n">pyglet</span><span class="p">.</span><span class="n">image</span><span class="p">.</span><span class="n">animation</span><span class="p">.</span><span class="n">Animation</span><span class="p">.</span><span class="n">from_image_sequence</span><span class="p">(</span>
    <span class="n">sun_grid</span><span class="p">,</span> <span class="n">duration</span><span class="o">=</span><span class="mf">0.1</span><span class="p">,</span> <span class="n">loop</span><span class="o">=</span><span class="bp">True</span>
<span class="p">)</span>


<span class="c1">#  SUNS 
</span>
<span class="n">suns</span> <span class="o">=</span> <span class="p">[]</span>  <span class="c1"># list of sun dicts
</span>
<span class="n">batch</span> <span class="o">=</span> <span class="n">pyglet</span><span class="p">.</span><span class="n">graphics</span><span class="p">.</span><span class="n">Batch</span><span class="p">()</span>

<span class="k">def</span> <span class="nf">make_sun</span><span class="p">():</span>
    <span class="n">x</span> <span class="o">=</span> <span class="n">random</span><span class="p">.</span><span class="n">uniform</span><span class="p">(</span><span class="mi">100</span><span class="p">,</span> <span class="n">WINDOW_W</span> <span class="o">-</span> <span class="n">BOX_W</span> <span class="o">-</span> <span class="mi">100</span><span class="p">)</span>
    <span class="n">y</span> <span class="o">=</span> <span class="n">random</span><span class="p">.</span><span class="n">uniform</span><span class="p">(</span><span class="mi">100</span><span class="p">,</span> <span class="n">WINDOW_H</span> <span class="o">-</span> <span class="n">BOX_H</span> <span class="o">-</span> <span class="mi">100</span><span class="p">)</span>

    <span class="n">sprite</span> <span class="o">=</span> <span class="n">pyglet</span><span class="p">.</span><span class="n">sprite</span><span class="p">.</span><span class="n">Sprite</span><span class="p">(</span><span class="n">sun_animation</span><span class="p">,</span> <span class="n">x</span><span class="o">=</span><span class="n">x</span><span class="p">,</span> <span class="n">y</span><span class="o">=</span><span class="n">y</span><span class="p">,</span> <span class="n">batch</span><span class="o">=</span><span class="n">batch</span><span class="p">)</span>

    <span class="n">angle</span> <span class="o">=</span> <span class="n">random</span><span class="p">.</span><span class="n">uniform</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">2</span> <span class="o">*</span> <span class="n">math</span><span class="p">.</span><span class="n">pi</span><span class="p">)</span>
    <span class="n">vx</span> <span class="o">=</span> <span class="n">math</span><span class="p">.</span><span class="n">cos</span><span class="p">(</span><span class="n">angle</span><span class="p">)</span> <span class="o">*</span> <span class="n">SUN_SPEED</span>
    <span class="n">vy</span> <span class="o">=</span> <span class="n">math</span><span class="p">.</span><span class="n">sin</span><span class="p">(</span><span class="n">angle</span><span class="p">)</span> <span class="o">*</span> <span class="n">SUN_SPEED</span>
    <span class="n">phase</span> <span class="o">=</span> <span class="n">random</span><span class="p">.</span><span class="n">randint</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="mi">234</span><span class="p">)</span> <span class="c1"># wobble offset
</span>
    <span class="k">return</span> <span class="p">{</span><span class="s">"sprite"</span><span class="p">:</span> <span class="n">sprite</span><span class="p">,</span> <span class="s">"vx"</span><span class="p">:</span> <span class="n">vx</span><span class="p">,</span> <span class="s">"vy"</span><span class="p">:</span> <span class="n">vy</span><span class="p">,</span> <span class="s">"phase"</span><span class="p">:</span> <span class="n">phase</span><span class="p">}</span>


<span class="c1"># we'll call it on a clock so dt has to be provided
# we attribute it to none to please the linter
</span><span class="k">def</span> <span class="nf">spawn_sun</span><span class="p">(</span><span class="n">dt</span><span class="o">=</span><span class="bp">None</span><span class="p">):</span>
    <span class="n">suns</span><span class="p">.</span><span class="n">append</span><span class="p">(</span><span class="n">make_sun</span><span class="p">())</span>


<span class="k">def</span> <span class="nf">remove_last_sun</span><span class="p">():</span>
    <span class="k">if</span> <span class="n">suns</span><span class="p">:</span>
        <span class="n">suns</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">][</span><span class="s">"sprite"</span><span class="p">].</span><span class="n">delete</span><span class="p">()</span>  <span class="c1"># free the sprite from video memory
</span>        <span class="n">suns</span><span class="p">.</span><span class="n">pop</span><span class="p">()</span>


<span class="c1">#  UPDATE 
</span>
<span class="k">def</span> <span class="nf">update_sun</span><span class="p">(</span><span class="n">sun</span><span class="p">,</span> <span class="n">dt</span><span class="p">):</span>
    <span class="n">sprite</span> <span class="o">=</span> <span class="n">sun</span><span class="p">[</span><span class="s">"sprite"</span><span class="p">]</span>

    <span class="n">nx</span> <span class="o">=</span> <span class="n">sprite</span><span class="p">.</span><span class="n">x</span> <span class="o">+</span> <span class="n">sun</span><span class="p">[</span><span class="s">"vx"</span><span class="p">]</span> <span class="o">*</span> <span class="n">dt</span>
    <span class="n">ny</span> <span class="o">=</span> <span class="n">sprite</span><span class="p">.</span><span class="n">y</span> <span class="o">+</span> <span class="n">sun</span><span class="p">[</span><span class="s">"vy"</span><span class="p">]</span> <span class="o">*</span> <span class="n">dt</span>

    <span class="c1"># Start of terrible collision code
</span>    <span class="k">if</span> <span class="n">nx</span> <span class="o">&lt;</span> <span class="mi">0</span><span class="p">:</span>
        <span class="n">sun</span><span class="p">[</span><span class="s">"vx"</span><span class="p">]</span> <span class="o">=</span> <span class="nb">abs</span><span class="p">(</span><span class="n">sun</span><span class="p">[</span><span class="s">"vx"</span><span class="p">])</span>      <span class="c1"># push right
</span>    <span class="k">elif</span> <span class="n">nx</span> <span class="o">&gt;</span> <span class="n">WINDOW_W</span><span class="p">:</span>
        <span class="n">sun</span><span class="p">[</span><span class="s">"vx"</span><span class="p">]</span> <span class="o">=</span> <span class="o">-</span><span class="nb">abs</span><span class="p">(</span><span class="n">sun</span><span class="p">[</span><span class="s">"vx"</span><span class="p">])</span>     <span class="c1"># push left
</span>
    <span class="k">if</span> <span class="n">ny</span> <span class="o">&lt;</span> <span class="mi">0</span><span class="p">:</span>
        <span class="n">sun</span><span class="p">[</span><span class="s">"vy"</span><span class="p">]</span> <span class="o">=</span> <span class="nb">abs</span><span class="p">(</span><span class="n">sun</span><span class="p">[</span><span class="s">"vy"</span><span class="p">])</span>      <span class="c1"># push up
</span>    <span class="k">elif</span> <span class="n">ny</span> <span class="o">&gt;</span> <span class="n">WINDOW_H</span><span class="p">:</span>
        <span class="n">sun</span><span class="p">[</span><span class="s">"vy"</span><span class="p">]</span> <span class="o">=</span> <span class="o">-</span><span class="nb">abs</span><span class="p">(</span><span class="n">sun</span><span class="p">[</span><span class="s">"vy"</span><span class="p">])</span>     <span class="c1"># push down
</span>
    <span class="n">hits_box</span> <span class="o">=</span> <span class="p">(</span>
        <span class="n">nx</span> <span class="o">&gt;</span> <span class="n">BOX_X</span>           <span class="ow">and</span>
        <span class="n">nx</span> <span class="o">&lt;</span> <span class="n">BOX_X</span> <span class="o">+</span> <span class="n">BOX_W</span>   <span class="ow">and</span>
        <span class="n">ny</span> <span class="o">&gt;</span> <span class="n">BOX_Y</span>           <span class="ow">and</span>
        <span class="n">ny</span> <span class="o">&lt;</span> <span class="n">BOX_Y</span> <span class="o">+</span> <span class="n">BOX_H</span>
    <span class="p">)</span>
    <span class="k">if</span> <span class="n">hits_box</span><span class="p">:</span>
        <span class="k">if</span> <span class="n">BOX_Y</span> <span class="o">&lt;</span> <span class="n">sun</span><span class="p">[</span><span class="s">"sprite"</span><span class="p">].</span><span class="n">y</span> <span class="o">&lt;</span> <span class="n">BOX_Y</span> <span class="o">+</span> <span class="n">BOX_H</span><span class="p">:</span>
            <span class="n">sun</span><span class="p">[</span><span class="s">"vx"</span><span class="p">]</span> <span class="o">=</span> <span class="o">-</span><span class="n">sun</span><span class="p">[</span><span class="s">"vx"</span><span class="p">]</span>
        <span class="k">else</span><span class="p">:</span>
            <span class="n">sun</span><span class="p">[</span><span class="s">"vy"</span><span class="p">]</span> <span class="o">=</span> <span class="o">-</span><span class="n">sun</span><span class="p">[</span><span class="s">"vy"</span><span class="p">]</span>
    <span class="c1"># End of terrible collision code
</span>
    <span class="n">sprite</span><span class="p">.</span><span class="n">x</span> <span class="o">=</span> <span class="n">nx</span>
    <span class="n">sprite</span><span class="p">.</span><span class="n">y</span> <span class="o">=</span> <span class="n">ny</span>

    <span class="c1"># wobble effect oscillates between 0.8 and 1.2
</span>    <span class="c1"># with added random phase offset
</span>    <span class="n">sprite</span><span class="p">.</span><span class="n">scale</span> <span class="o">=</span> <span class="mi">1</span> <span class="o">+</span> <span class="mf">0.2</span> <span class="o">*</span> <span class="n">math</span><span class="p">.</span><span class="n">cos</span><span class="p">(</span><span class="n">time</span><span class="p">.</span><span class="n">time</span><span class="p">()</span> <span class="o">+</span> <span class="n">sun</span><span class="p">[</span><span class="s">"phase"</span><span class="p">])</span>


<span class="k">def</span> <span class="nf">update</span><span class="p">(</span><span class="n">dt</span><span class="p">):</span>
    <span class="k">for</span> <span class="n">sun</span> <span class="ow">in</span> <span class="n">suns</span><span class="p">:</span>
        <span class="n">update_sun</span><span class="p">(</span><span class="n">sun</span><span class="p">,</span> <span class="n">dt</span><span class="p">)</span>
    <span class="n">count_label</span><span class="p">.</span><span class="n">text</span> <span class="o">=</span> <span class="sa">f</span><span class="s">"Suns: </span><span class="si">{</span><span class="nb">len</span><span class="p">(</span><span class="n">suns</span><span class="p">)</span><span class="si">}</span><span class="s">"</span>


<span class="c1">#  CLOCKS 
</span>
<span class="n">pyglet</span><span class="p">.</span><span class="n">clock</span><span class="p">.</span><span class="n">schedule_interval</span><span class="p">(</span><span class="n">update</span><span class="p">,</span> <span class="mi">1</span> <span class="o">/</span> <span class="mf">60.0</span><span class="p">)</span>

<span class="c1"># auto-spawn a sun every now and then
</span><span class="n">pyglet</span><span class="p">.</span><span class="n">clock</span><span class="p">.</span><span class="n">schedule_interval</span><span class="p">(</span><span class="n">spawn_sun</span><span class="p">,</span> <span class="n">AUTO_SPAWN_SUN</span><span class="p">)</span>

<span class="c1">#  INPUT
</span>
<span class="o">@</span><span class="n">window</span><span class="p">.</span><span class="n">event</span>
<span class="k">def</span> <span class="nf">on_key_press</span><span class="p">(</span><span class="n">symbol</span><span class="p">,</span> <span class="n">modifiers</span><span class="p">):</span>
    <span class="k">if</span> <span class="n">symbol</span> <span class="o">==</span> <span class="n">pyglet</span><span class="p">.</span><span class="n">window</span><span class="p">.</span><span class="n">key</span><span class="p">.</span><span class="n">SPACE</span><span class="p">:</span>
        <span class="n">spawn_sun</span><span class="p">()</span>
    <span class="k">elif</span> <span class="n">symbol</span> <span class="o">==</span> <span class="n">pyglet</span><span class="p">.</span><span class="n">window</span><span class="p">.</span><span class="n">key</span><span class="p">.</span><span class="n">BACKSPACE</span><span class="p">:</span>
        <span class="n">remove_last_sun</span><span class="p">()</span>

<span class="c1">#  DRAW 
</span>
<span class="o">@</span><span class="n">window</span><span class="p">.</span><span class="n">event</span>
<span class="k">def</span> <span class="nf">on_draw</span><span class="p">():</span>
    <span class="n">window</span><span class="p">.</span><span class="n">clear</span><span class="p">()</span>
    <span class="n">background</span><span class="p">.</span><span class="n">draw</span><span class="p">()</span>
    <span class="n">red_box</span><span class="p">.</span><span class="n">draw</span><span class="p">()</span>
    <span class="n">batch</span><span class="p">.</span><span class="n">draw</span><span class="p">()</span>       <span class="c1"># draws all sun sprites at once
</span>    <span class="n">fps_display</span><span class="p">.</span><span class="n">draw</span><span class="p">()</span>
    <span class="n">count_label</span><span class="p">.</span><span class="n">draw</span><span class="p">()</span>


<span class="c1">#  RUN
</span>
<span class="k">if</span> <span class="n">__name__</span> <span class="o">==</span> <span class="s">"__main__"</span><span class="p">:</span>
    <span class="n">pyglet</span><span class="p">.</span><span class="n">app</span><span class="p">.</span><span class="n">run</span><span class="p">()</span>
    
</code></pre></div></div>

<h2 id="hold-on-a-second">hold on a second</h2>

<p>okay, you like pyglet but why should <strong>i</strong> use it?</p>

<p>especially when i could use a real(tm) video game editor
like unity or stuff like that?</p>

<p>good spot. it’s because i think there is
<strong>a secret superpower</strong> to using pyglet…
but that’s for a next post ;)</p>

<p>stay tuned in!</p>]]></content><author><name>le guide</name></author><summary type="html"><![CDATA[introduction]]></summary></entry><entry><title type="html">paid to read</title><link href="https://blog.legires.fr/2026/05/26/paid_to_read.html" rel="alternate" type="text/html" title="paid to read" /><published>2026-05-26T00:00:00+00:00</published><updated>2026-05-26T00:00:00+00:00</updated><id>https://blog.legires.fr/2026/05/26/paid_to_read</id><content type="html" xml:base="https://blog.legires.fr/2026/05/26/paid_to_read.html"><![CDATA[<p>how i wish i was paid to read.
i don’t have anything to do. i read stuff instead.</p>

<p>anyway, here are
some cool blogs
i found.</p>

<p>found on hn, <a href="https://minifeed.net/welcome">minifeed</a> was the starting point.
it’s a cool mix between a rss reader and a webring.</p>

<p>from there, i found
<a href="https://veronicaexplains.net/">veronica explains</a>,
and thought i should do more with my videos,
like learn the effects of kdenlive,
write scripts before filming
and doing the captioning by hand…
god it’s so much work</p>

<p><a href="https://lmnt.me/">lmnt.me</a> was super cool.
immaculate vibes (as the kids say),
love the retroweb pixel banners.</p>

<p><a href="https://alexwlchan.net/articles/">alexwlchan.net</a>
is a cracked one.
python and webdev, me like.
i learned about the calendar python library.</p>

<p><a href="https://rakhim.org/">rakhim.org</a>
is cracked too
(you learn to recognize them from afar).
he’s selling books,
which might be a good idea…
if i wrote some…
god it’s so much work</p>

<p>another article i liked recently was
<a href="https://rivalvoices.substack.com/p/smile-vs-poop">smile vs poop</a>
for the cool don’t “try to be happy” koan
(he phrased it opposite but hey).
it’s like t1 (i rewatched worlds recap):
they don’t try to win, they just win.</p>

<p>together as 1.</p>

<hr />

<p>let’s do one more pass on <a href="https://longform.asmartbear.com/">asmartbear.com</a></p>

<p>he had bangers i still think about a lot,
like “carol” and “is there a problem”</p>

<p>from what i see,
he’s still using the old
“pick a funny cartoon and wing a business theory from it”,
which works suprisingly well.
ask jodorowsky.</p>

<p>i wonder what my go-to cartoon would be.
people usually enjoy calvin &amp; hobbes (i love it too),
xkcd is another great classic.
french people used to go crazy with “shadoks”.
i used to be an avid smbc fan,
but recently i found a random
“achille talon” board and i giggled like hell.
cartoons are rad.</p>

<p>strategic choices is correct from gut feeling,
but the examples are lacking.</p>

<p>“focus” (creating space) is a great recap,
that’s always what my dad says all the time.</p>

<p>target market is just another riff on carol,
and max mrr is just mental gymnastics.</p>

<p>good read.</p>

<hr />

<p>someone was
<a href="https://news.ycombinator.com/item?id=48250144">building a writing device</a>,
which is something i’d like to have too.
i should try the remote keyboard (logitech pop they say)
on the phone. it’s an iphone so no tmux.
people in the comments recognize true yak shaving lol.</p>

<p>i try to type. just type.
just make tip tip noise on the keyboard.
i liked the asus a lot for that. soothing keys.</p>

<p>writing was cool as well. with lamy pen.
russian glyphs. sharp strokes.</p>

<p>my own blog: tidy.
not fun to read (for long-form technical)
but ok for my poetry
which is what i prefer.
i should add more to my anthology
to learn them when outside.</p>

<p>how i wish i could switch back to french.
i feel alienated from my people,
and i do anglicisms all the time when i speak.
yet i don’t feel like i lost my wit in french. weird.</p>

<p>the thing about my blog is: poetry is just the only thing i re-read.
because it’s the only thing i deem worth reading.
i don’t rewatch my own videos.
this blog post could have been called f*ck me.</p>

<p>there’s stuff i store to later link to other people. records.
but i don’t re-read them.</p>

<p>the other article (about quitting cigs)
should be called f*ck you.
same with “adhd”, i’ll dope so i can speed
to fulfill your petty wants?
i’d rather see you starve, bitch.</p>]]></content><author><name>le guide</name></author><summary type="html"><![CDATA[how i wish i was paid to read. i don’t have anything to do. i read stuff instead.]]></summary></entry><entry><title type="html">double tap</title><link href="https://blog.legires.fr/2026/05/23/double_tap.html" rel="alternate" type="text/html" title="double tap" /><published>2026-05-23T00:00:00+00:00</published><updated>2026-05-23T00:00:00+00:00</updated><id>https://blog.legires.fr/2026/05/23/double_tap</id><content type="html" xml:base="https://blog.legires.fr/2026/05/23/double_tap.html"><![CDATA[<p>i’ve been reading
<em>“the adventures of sherlock holmes”</em>
by sir arthur conan doyle.</p>

<p>i’ve noticed a technique i like.
i call it
<strong>double tap</strong>.</p>

<p>here is the purest example:</p>

<blockquote>
  <p>“this dress does implicate miss flora millar”
“and how?”
“in the dress is a pocket.
in the pocket is a card-case.
in the card-case is a note.
and here is the very note.”</p>
</blockquote>

<p>this could have been
<em>“in the dress is a pocket, in it a card-case, in it…”</em>
or even
<em>“in the dress is a pocket, a card-case, a note, here it is”</em>…</p>

<p>another example:</p>

<blockquote>
  <p>at last, however, the bumping of the road
was exchanged for the crisp smoothness of a gravel drive
and the carriage came to a stand.
colonel lysander stark
sprang out, and, as i followed after him,
pulled me swiftly into a porch which gaped in front of us.
we stepped, as it were, right out the carriage and into the hall,
so that i failed to catch the most fleeting glance
of the front of the house.
the instant that i crossed the threshold the door slammed heavily
behind us, and i heard faintly the rattle of the wheels
as the carriage drove away.</p>
</blockquote>

<p>double tap would be: 
stating something in a sentence,
and rephrasing it immediately after
as the first part of a 2-step sentence.</p>

<p>might feel redundant,
but i feel it
grounds the setting while still conveying motion.</p>

<hr />

<p>“double tap” was very clear to me when reading the book,
but i don’t know if i’m explaining correctly.</p>

<p>even if i’m blundering my explanations,
i hope that you will read some holmes,
for the victorian writing is exquisite
and holmes is a fascinating character.</p>

<p>it’s not so much the <em>deductive</em> power of holmes
(nb: holmes is more about deductions than observation,
though he does carry a magnifying glass),
but he’s got an indescribably devilish quality,
a laugh and a morgue…</p>

<p>present, aware, yet in another plane.
adhd final boss.</p>

<blockquote>
  <p>“an eley’s no. 2 is an excellent argument
with gentlemen who can twist steel pokers into knots.
that and a tooth-brush are, i think, all that we need.”</p>
</blockquote>

<p>and the joy of this hound!
never a doomer,
a clever hunter with manners.</p>

<blockquote>
  <p>“well,” said our engineer ruefully,
as we took our seats to return to london,
“it has been a pretty business for me!
i have lost my thumb, and i have lost a fifty-guinea fee,
and what have i gained?”</p>
</blockquote>

<blockquote>
  <p>“experience,” said holmes laughing.
“indirectly it may be of value, you know;
you only have to put it into words
to gain the reputation of being excellent company
for the remainder of your existence.”</p>
</blockquote>

<hr />

<p>well, this double tap thing is not very interesting.</p>

<p>…</p>

<p>sorry.</p>

<p>i just wanted to write something because i loved reading this book.</p>

<p>truth be told, it’s about the style and vocabulary.</p>

<p>i love english poetry,
fine words.
fresh water after
the worn ashen globish
this world is made of.</p>]]></content><author><name>le guide</name></author><summary type="html"><![CDATA[i’ve been reading “the adventures of sherlock holmes” by sir arthur conan doyle.]]></summary></entry></feed>