RE: Case/switch
- Posted by "C. K. Lester" <cklester at yahoo.com> Feb 15, 2002
- 459 views
SR.Williamson wrote: > So there are a lot of > "if button1 = leftedge or button2 = rightedge" kind of stuff. > It got really tedious. The only think I could think was "This > would be so much easier with a Case statement". I've developed a game where, not only do I have to check for "being on the edge" of the playfield, but also if next to a pit, next to a wall, next to another player, etc., etc... To me, it wasn't so tedious, so your example, to me, is even easier/more not-so-tedious.