ScratchData LogoScratchData
Back to gtoal's profile

Placing objects on infinite scrolling map demo

GTgtoal•Created November 5, 2016
Placing objects on infinite scrolling map demo
41
24
1291 views
View on Scratch

Instructions

Drag objects from the margin and drop them on the map. Scroll the map around using the arrow keys. See inside for the object location API.

Description

Map generator uses components from @LocoMule and @DadOfMrLog. This is a trivial implementation of a 2D data structure. It is implemented using a linear list, which will be quite slow if there are a large number of objects. Can you make it significantly faster? Perhaps by using quad trees? btw this scrolling demo uses an adaptive speed algorithm to make the scrolling look faster than it really is :-) (Once it speeds up, it jumps by whole tiles rather than pixel positioning) The objects are all different costumes of a single sprite.

Project Details

Project ID129324720
CreatedNovember 5, 2016
Last ModifiedMay 1, 2017
SharedNovember 6, 2016
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root