It do be jumpin
No preview image
Model was written in NetLogo 6.2.0
•
Viewed 38 times
•
Downloaded 8 times
•
Run 0 times
Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)
Comments and Questions
Please start the discussion about this model!
(You'll first need to log in.)
Click to Run Model
breed [players player] breed [wumps wump] players-own[rise step nothis nothat] patches-own [solid notthis notthat bep] wumps-own [place] to setup clear-all ask patches [set pcolor 73] create-players 1 ask players [setxy 20 60 set color red set heading 0] create-wumps 1 ask wumps [setxy 30 - (random 5) 6 - (random 5) set color white set heading 0] ask wumps [set pcolor 32] ask patches [if (pycor < -14) [set solid 1]] ask patches [if (pycor < -14) [set pcolor 1]] ask patches [if (pxcor > 7) and (pxcor < 10) and (pycor < 4) [set notthat 1]] ask patches [if (pxcor > 14) and (pxcor < 17) [set notthat 1]] ask patches [if (pxcor > -5) and (pxcor < -2) and (pycor < -3) [set notthat 1]] ask patches [if (pxcor > -12) and (pxcor < -9) and (pycor < -8) [set notthat 1]] ask patches [if (pxcor > -2) and (pxcor < 1) and (pycor < -3) [set notthis 1]] ask patches [if (pxcor > 10) and (pxcor < 13) and (pycor < 4) [set notthis 1]] ask patches [if (pxcor > -17) and (pxcor < -14) [set notthis 1]] ask patches [if (pxcor > -9) and (pxcor < -6) and (pycor < -8) [set notthis 1]] ask patches [if (pxcor > -5) and (pxcor < 1) and (pycor = -3) [set solid 1]] ask patches [if (pxcor > 7) and (pxcor < 13) and (pycor = 4) [set solid 1]] ask patches [if (pxcor > -12) and (pxcor < -6) and (pycor = -8) [set solid 1]] ask patches [if (pxcor > -5) and (pxcor < 1) and (pycor = -3) [set pcolor 80]] ask patches [if (pxcor > 7) and (pxcor < 13) and (pycor = 4) [set pcolor 80]] ask patches [if (pxcor > -12) and (pxcor < -6) and (pycor = -8) [set pcolor 80]] ask patches [if (pxcor > -5) and (pxcor < 1) and (pycor < -3) [set pcolor 82]] ask patches [if (pxcor > 7) and (pxcor < 13) and (pycor < 4) [set pcolor 81]] ask patches [if (pxcor > -12) and (pxcor < -6) and (pycor < -8) [set pcolor 72]] reset-ticks end to yeet ask players [if (step = 1) [set rise 1]] end to this ask players [if (nothis = 0) [set xcor xcor - 1]] end to that ask players [if (nothat = 0) [set xcor xcor + 1]] end to go ask players [if (rise < 20) and (rise != 0) [set rise rise + 1]] ask players [if (rise = 20) [set rise 0]] ask players [if (rise < 11) and (rise != 0) [set ycor ycor + 1]] ask players [if (step = 0) and (rise > 10) [set ycor ycor - 1]] ask players [if (step = 0) and (rise = 0) [set ycor ycor - 1]] ask players [if (notthat = 1) [set nothat 1]] ask players [if (notthat = 0) [set nothat 0]] ask players [if (solid = 1) [set step 1]] ask players [if (solid = 0) [set step 0]] ask players [if (notthis = 1) [set nothis 1]] ask players [if (notthis = 0) [set nothis 0]] tick end
There is only one version of this model, created almost 3 years ago by Tiffany Roberson.
Attached files
No files
This model does not have any ancestors.
This model does not have any descendants.