ScratchData LogoScratchData
Back to gtoal's profile

Infinite terrain Minecraft world using stamping

GTgtoal•Created November 2, 2014
Infinite terrain Minecraft world using stamping
14
11
390 views
View on Scratch

Instructions

This is a variation on http://scratch.mit.edu/projects/32165632/ which uses stamping rather than multiple clones to get the same visual effect. This version allows you to create an infinite world! Works a lot better under Phosphorus than in Scratch: http://phosphorus.github.io/app.html?id=32261928&turbo=false&full-screen=true ( Try turning Stage3D off or on with CTRL-M if glitchy? )

Description

This code is not remotely optimised. It draws a lot of extra items around the stage rather than work out which ones really need to be drawn. Good enough for a proof of concept code but would need to be handled for a real application. (If it doesn't scroll properly or you see a diagonal tear across the land, try tweaking the 'delay' slider. Looks like some screen refresh timing problem occasionally messes it up. It seems quite random as to when it runs smoothly and when it runs glitched... If anyone else sees this problem and understands what causes it, please explain to help me understand it, thanks!) EDIT: Starting to understand the problem, Has to do with how Scratch schedules a user's multiple coroutines.

Project Details

Project ID32261928
CreatedNovember 2, 2014
Last ModifiedAugust 25, 2015
SharedNovember 2, 2014
Visibilityvisible
CommentsAllowed