RE: Case/switch

new topic     » topic index » view thread      » older message » newer message

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.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu