2014년 12월 7일 일요일

help with blocks editor

This step confused me for my lab... any help?


4. Add a variable, “Obstacles”, that will contain a list of the ImageSprite Obstacles. Remember that you cannot set a variable to a component until the screen is ready (in the Initialize event handler). Set the Obstacles variable to an empty list to begin with but add all the obstacles in the GameScreen.Initialize Event Handler. 



I too feel those directions are obscure.

This seems to say:

Create a global variable called Obstacles  where Obstacles is a List; so you need to set global Obstacles to  create empty list  and place that block in the Screen1.Initialize event handler (if you are in fact working in Screen1) but the instructions then indicate that you have to      set global Obstacles to create empty list  

It appears that is supposed to go into   GameScreen.Initialize  

Hopefully you have subsequent instructions (and images) that make that clear.

Try some blocks, let us know if our guesses are right? :)




댓글 없음:

댓글 쓰기