alice-teacher Students Bomberman Toren's Bomberman

Findley, Scott SFindley at sd43.bc.ca
Wed Nov 6 09:23:18 EST 2013


We are still working with Alice 2.3 at our school given that there isn’t yet a textbook for 3.

One of my students is struggling with collision detection and imprecise movement and overlapping methods. See his notes below and the file is attached. Help?


Mr. Scott Findley
sfindley at sd43.bc.ca<https://webmail.sd43.bc.ca/owa/redir.aspx?C=0a9bf7b1630b4554891428589166e563&URL=mailto%3asfindley%40sd43.bc.ca> Twitter at rsfindley
Gleneagle Secondary School http://gleneagle.org<https://webmail.sd43.bc.ca/owa/redir.aspx?C=0a9bf7b1630b4554891428589166e563&URL=http%3a%2f%2fgleneagle.org%2f>
Mr. Findley's Homeroom Site http://teachers.sd43.bc.ca/sfindley/
1195 Lansdowne Drive, Coquitlam, BC V3B 7Y8  604.464.5793 / 604.464.5796 (F)
I reserve specific times daily for correspondence. Should you need a more immediate reply, please flag your message as urgent. Any emails received without a clear indication of the sender will receive no response.

This e-mail (including attachments, if any) is privileged and confidential and may be legally privileged. It is intended solely for the addressee and may not be forwarded or shared without express consent, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains is unauthorized. If you received this e-mail in error, please advise me by return e-mail or otherwise and then delete immediately.


Unless absolutely necessary, please do not print this email for environmental reasons.



The game is styled off Bomberman.
To avoid having to deal with collision detection and imprecise movement, the game takes place on a grid, with location determined by the character’s X axis, Y axis, and location id. The location id corresponds to the objects on the map, so if the location is changed from 3 to four, the character will move from the third crate, to the fourth.
When the world starts, rocks randomly disappear, and add their location to the list of unblocked ids. Whenever the character attempts to move it checks the list of unblocked ids to see if the space is available, then moves if it is. One problem so far, even when the location is set to unblocked, when asking If the list of unblocked ids contains that number, it returns false. This happens constantly with Alice 2.2, and only in most cases with Alice 3.5. I only have blocked location checking set up with moving down right now, but I’ve tried all directions. You can also disable it by going into the world.down method and switching which section is disabled.
Naturally being Bomberman, there is a lot of bomb dropping going on, but with only a single bomb dropping method, I can’t find a way to drop multiple bombs at the same time, because Alice waits for a method to finish before running it again. I would be very interested if there was a work around for this.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20131106/617f3f88/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Toren's broken bomberman.a2w
Type: application/x-zip-compressed
Size: 9180696 bytes
Desc: Toren's broken bomberman.a2w
Url : http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20131106/617f3f88/attachment-0001.bin 


More information about the alice-teachers mailing list