Skip to main content

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

Sheep - retro puzzle game

A topic by Daisy Games created Nov 07, 2020 Views: 332 Replies: 4
Viewing posts 1 to 2



The sheep are lazy! Daisy the German shepherd must use her wits to lead the sheep and make them eat all the grass!

Sheep is a small, puzzle game, inspired by Sokoban and the likes.

Push the sheep across the grass to complete the level. Stay vigilant as the game introduces more mechanics and increases difficulty the further you get!

Play now
 

meybe use in file index.html

async function animate(time) {
    await sleep(200);
    animationCallbacks.forEach(callback => callback(time));
    requestAnimationFrame(animate);
}
requestAnimationFrame(animate);

https://stackoverflow.com/questions/951021/what-is-the-javascript-version-of-sle...

Can you tell me what this is supposed to fix? Did you run into some bug or is this just a better coding-practice?
I made the game using Godot which exported it to HTML5 for me and I am not really familiar with JS.

Thank you!

This is not an error, but an attempt to reduce the load on the CPU, so there is no need to spin cycles with 0 delay. You can experiment with a value of 50 ms to 500 ms.

I see, thank you!
I will try it out and see how it goes.