Sprite collisions in nxtBasic
Posted: Sun Jul 07, 2024 3:57 pm
A quick demo of how nxtBasic (new x16 compiler for Basic code) handles sprite collissions.
In this example there are three sprites (three balls) that move in a random pattern accross the screen. Whenever two or more balls overlap, the balls slow down significantly (on purpose), and which balls are overlapping is displayed on the screen. This works with any number of sprites.
Source is for reference only, as nxtBasic has not yet been released.
Try It Now!
Download Source:
In this example there are three sprites (three balls) that move in a random pattern accross the screen. Whenever two or more balls overlap, the balls slow down significantly (on purpose), and which balls are overlapping is displayed on the screen. This works with any number of sprites.
Source is for reference only, as nxtBasic has not yet been released.
Try It Now!
Download Source: