Organism update

October 29, 2007 at 10:52 am (IDAT 204 - Workshop 2)

On Thursday I spent the whole afternoon working on the organism project, I wrote the code to get the cells (circles used until Ollie is finished with the design) and have them moving around the screen.

 The code is very similar to the asteroid game I made last year, so I just went through the code and adapated it for this purpose.

 The next task was to get the student cells to drag and drop, I got the code by searching on the internet and Ollie’s flash book he brought last year. The drag function worked and the cells could be dragged, but when you go to drop them they still follow the mouse, but only some of the student cells do.

 Will have to look into that and see if I can fix it and get it to do what it’s supposed to do!

 Over the weekend I’ve thought about this project and the code I still have to do, as well as how to code it etc. and a thought occured to me.
 We’re going to have the names of the students appear when you hover over their cell, however the cells are created in an array…so we’re either going to see if we can assign a student to each cell in the array or make indivudal cells for each student and try it that way.

 Will post this to Ollie and see what he thinks the solution should be.

 But for now we’ll leave it as it is.

Post a Comment