Simulating Life

Just another UMass Boston Blogs site

Code Review

| 1 Comment

I just recently added this code to my project however I cannot get it to work..

The reason I have zero in my world is because I do not want the pollution to be created when setup is push,

I want it to be created by the whale hunter whom currently deletes the whale on collision.

Do I even need the create [0] on my world?

 

 

 

 

One Comment

  1. you’re right – create(0) does nothing, so you should take it out

    in your other code – “if 2 = 100” will NEVER happen – when is 2 equal to 100????
    I think you mean if random(100) = 2

    you should put up a note on monday that you need help with random numbers

Leave a Reply

Required fields are marked *.


Skip to toolbar