Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

How to set up frame examples

A topic by MewMewMake created Jan 03, 2024 Views: 203 Replies: 2
Viewing posts 1 to 3

I've had difficulties setting up the animated examples. The spiral and stars example from github both return static images and I'm wondering if there's something I'm missing?

I have a similar issue. With the spiral example I just get a blank screen. However, oddly, when I comment out the (clear) in redraw it works, although the frames stack on one another and quickly the canvas turns into a colored blob. 

I am however able to get the animation working of the bouncing rect from the Youtube tutorial. It is not clear why the spiral does not work. Puzzling.

There is a small syntax typo in the redraw function it should be:

(defn redraw () 
  (
    (clear) 
    (rec 300))
   )

Cool project. Perfect for those of us who have a warm spot for Processing and a fascination with Lisp.