Section 6 Sp 11
From CSE190M-Admin
.
[edit] Links
- Writeup -- Section 6
- New section handout (in development)
- Raptor Skeleton -- Raptor Bones
- Expected Behavior -- Randy The Raptor
- Example JS Solution -- RaptorScript
.
[edit] Debugging Is Helpful, And You'll Probably Need To Use it Sometime
.
[edit] Randy The Raptor!!
- Refresh JavaScript + Arrays and events like onclick
- Add: "Adds" the type of civilian that is selected in the radio buttons
- Kill: "Kills" only the type of civilian selected with the radio buttons
- Clean Up: Removes any and all dead bodies from the game.
- Stomp: Makes Randy the Raptor "stomp" up and down, alternating with each click. At random, one fifth of the civilians (rounded up) get stomped with each click.
- ENRAGE: Randy gets mad. As such, he should change his class to be enraged.
- Patrol: Randy goes on the hunt.