Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
screwlisp
screwlisp
@screwlisp@gamerplus.org  ·  activity timestamp 3 months ago

#tootcoding #commonLisp
(loop
:for cmd
:in (list '(com-set-cur1 grass)
'(com-l) '(com-j) '(com-push-cur1))
:do
(execute-frame-command *nic* cmd)
(sleep 1))

Your browser does not support the video tag.
This video cannot be previewed
Open original
The same NicCLIM application frame, but commands are happening unattended at about 1/second, and the cursor adds GRASS to the garden on the righthand side.
  • Copy link
  • Flag this post
  • Block
screwlisp
screwlisp
@screwlisp@gamerplus.org replied  ·  activity timestamp 3 months ago

#tootcoding #commonLisp
(loop
:for cmd
:in (list '(com-set-cur1 grass)
'(com-l) '(com-j) '(com-push-cur1))
:do
(execute-frame-command *nic* cmd)
(sleep 1))

Your browser does not support the video tag.
This video cannot be previewed
Open original
The same NicCLIM application frame, but commands are happening unattended at about 1/second, and the cursor adds GRASS to the garden on the righthand side.
  • Copy link
  • Flag this comment
  • Block
screwlisp
screwlisp
@screwlisp@gamerplus.org replied  ·  activity timestamp 3 months ago

#tootcoding #commonLisp
(uiop:run-program "gimp")
;; I saved IMGS/SOIL.PNG and IMGS/GRASS.PNG .
(loop
:for cmd
:in (list '(com-set-cur1 imgs/grass.png)
'(com-swap)
'(com-set-cur1 grass)
'(com-set-bitmap))
:do
(execute-frame-command *nic* cmd)
(sleep 1))
(loop
:for cmd
:in (list '(com-set-cur1 imgs/soil.png)
'(com-swap)
'(com-set-cur1 soil)
'(com-set-bitmap))
:do
(execute-frame-command *nic* cmd)
(sleep 1))

3 media
The map symbol SOIL has changed to some brown squiggles in the hextille grid, and there is one green GRASS squiggle overlaid at position 1-1 (in the fourth quadrant as normal)
The map symbol SOIL has changed to some brown squiggles in the hextille grid, and there is one green GRASS squiggle overlaid at position 1-1 (in the fourth quadrant as normal)
The map symbol SOIL has changed to some brown squiggles in the hextille grid, and there is one green GRASS squiggle overlaid at position 1-1 (in the fourth quadrant as normal)
Some green squiggles 32x32 pixels denoting grass.
Some green squiggles 32x32 pixels denoting grass.
Some green squiggles 32x32 pixels denoting grass.
Some brown squiggles 32x32 pixels denoting SOIL
Some brown squiggles 32x32 pixels denoting SOIL
Some brown squiggles 32x32 pixels denoting SOIL
  • Copy link
  • Flag this comment
  • Block
screwlisp
screwlisp
@screwlisp@gamerplus.org replied  ·  activity timestamp 3 months ago

#tootcoding #commonLisp
(loop
:for cmd
:in (list '(com-set-cur1 grass)
'(com-l) '(com-j) '(com-push-cur1)
'(com-h) '(com-push-cur1))
:do
(execute-frame-command *nic* cmd)
(sleep 1))

Your browser does not support the video tag.
This video cannot be previewed
Open original
The same application frame from the thread, now the unattended commands arriving and the cursor wanders a bit and adds two more tufts of green grass atop the soil tiles
  • Copy link
  • Flag this comment
  • Block
screwlisp
screwlisp
@screwlisp@gamerplus.org replied  ·  activity timestamp 3 months ago

#tootcoding #commonLisp
(execute-frame-command *nic* '(writef garden))

EDIT:
On disk, GARDEN is now:
(SOIL) (SOIL) (SOIL) (SOIL) (SOIL)
(SOIL) (SOIL GRASS) (SOIL) (SOIL) (SOIL)
(SOIL) (SOIL) (SOIL) (SOIL GRASS) (SOIL GRASS)
(SOIL) (SOIL) (SOIL) (SOIL) (SOIL)

  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct