00:00
00:00
Newgrounds Background Image Theme

vv6t just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Core Dunk

Share Collapse

Author Comments

----[Core Dunk]----
* Created by Steven Miller


----[Rules]----
* You play as the green team, with players G1 and G2


* You play against the red team, with players R1 and R2


* End with a player in position 7 with the ball to win


* An opponent will steal the ball if the player holding the ball moves over them


* You can pass the ball over an opponent, but attempting to pass over two opponents will result in the second one stealing the ball


* Two players cannot occupy the same position


----[Architecture]----
* D0, D1, and D2 can be used to hold values


* D0 can be incremented or decremented


* G1, G2, R1, and R2 track the locations of the players


* R1 and R2 cannot be written to but can be read


* D0, D1, D2, G1, G2, R1, and R2 can only take values from 0 - 7, inclusive


* BB is the ball's location


* BB cannot be accessed directly


----[Commands]----
* MV DEST,VAL
Copy VAL to DEST


* PS
Pass the ball between players on the same team


* IC
Increment D0
If D0 == 7, IC will result in D0 = 0


* DC
Decrement D0
If D0 == 0, DC will result in D0 = 7


* GO LINE
Jump to line number LINE in the code


* GB LINE,VAL
Jump to line number LINE in the code, if BB == VAL


* GE LINE,VAL
Jump to line number LINE in the code, if D0 == VAL


* GL LINE,VAL
Jump to line number LINE in the code, if D0 < VAL


* GG LINE,VAL
Jump to line number LINE in the code, if D0 > VAL


----[Coding]----
* Click and drag a command from the top left and drop it in a line in the bottom left


* If the command takes arguments, the values you can pass in will turn blue


* You can grab a command and drag it to change its line


* Click on a command's argument to change its value


* Drag a line outside of the bottom left region and release it to delete it


----[Tasks]----
* Levels are split into tasks, shown in the top middle


* The current task is shown in blue


* Select a task by clicking on its corresponding box


* Each task uses the same code and all must be completed in order to complete the level


* A task failed on the previous run has a red indicator


* A task passed on the previous run has a green indicator


----[Running]----
* Click on the double arrow in the bottom right to step through the code a line at a time


* Click on the single arrow in the bottom right to run through the code


* Click on the square in the bottom right to go back to edit mode


----[Examples]----
* 00: MV D0,G1
Copies the value of G1 into D0


* 00: MV D0,G1
01: IC
02: MV G1,D0
Moves player G1 to the right


* 00: MV D0,00
01: GB D0,04
02: IC
03: GO 01
Finds the value of BB, then proceeds to line 04 with the value stored in D0

Log in / sign up to vote & review!

nice idea, but there should be a way of seeing each command one by one

Clever

Credits & Info

Views
3,039
Faves:
3
Votes
90
Score
3.36 / 5.00

Uploaded
Apr 25, 2018
4:40 AM EDT