[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Chickadee 0.8.0 released

From: Dr. Arne Babenhauserheide
Subject: Re: Chickadee 0.8.0 released
Date: Fri, 08 Oct 2021 17:53:01 +0200
User-agent: mu4e 1.6.6; emacs 27.2

"Thompson, David" <> writes:

> I'm happy to announce that Chickadee 0.8.0 has been released!

Hell yeah! Thank you!

And thank you for the link to

Something fun I collected for a chickadee-based game:

Most technically interesting part of the game itself:

define-module : drachi drachi
  . #:export : drachi
  . #:declarative? #f

define drachi-sprite #f
define drachi-atlas #f
define drachi-batch #f
define repl #f
define provide-repl #f

define : load
    set! drachi-sprite : load-image "walking_dragon-red.png"
    set! drachi-atlas : split-texture drachi-sprite 144 128
    set! drachi-batch : make-sprite-batch drachi-sprite
    when provide-repl
      set! repl : spawn-coop-repl-server

;; …

define : update dt
  when provide-repl
      poll-coop-repl-server repl
  update-drachi dt

define : drachi args
  when : member "--repl" args
         set! provide-repl #t
  run-game #:update update #:load load #:draw draw

And then:

    guix environment -l guix.scm -- ./run-drachi.w  --repl &
    telnet localhost 37146
    ,m drachi drachi

And then:

define : draw-drachi
  sprite-batch-clear! drachi-batch
  sprite-batch-add! drachi-batch
      vec2 256.0 17.0 ;; replace 176.0 by 17.0
      . #:texture-region : texture-atlas-ref drachi-atlas (+ 6 drachi-index)
  draw-sprite-batch drachi-batch

and Drachi moved downwards.

Best wishes,
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]