brightlystar · 2022-09-24 10:13
big_lentil · 2022-09-24 14:51
Does it die if neglected? Sounds like too much responsibility
[deleted] · 2022-09-24 15:23
[deleted]
cellular--automaton · 2022-09-24 17:10
Too darn cute :D Nice one! Must have been a fun project developing it. Thank you for sharing!
nv-elisp · 2022-09-24 17:41
No joke I have a prototype for something similar. Mine is a puzzle game though. I'll have to check yours out.
XCapitan_1 · 2022-09-24 20:59
How fortunate that Emacs has a psychotherapist to help you deal with the grief over the Emacs pet
github-alphapapa · 2022-09-26 16:01
Well, uh... that's interesting, but... the code is not... idiomatic. For example:
(defun egg-life ()
(set-buffer "*scratch*")
(erase-buffer)
;; calculate proper pet evolution function
(pet-movement +egg-data+))
(defun egg-loop ()
(run-with-timer 0.2 0.2 'egg-life))
So every 0.2 seconds it erases the `*scratch*` buffer.