New games - Snake, Tetris - page 3 - General Discussion and Assistance - CHDK Forum

New games - Snake, Tetris

  • 21 Replies
  • 13654 Views
*

Offline Sektor

  • *
  • 13
  • ixus220_elph300hs-101a
    • Grand Theft Media Press
Re: New games - Snake, Tetris
« Reply #20 on: 09 / December / 2011, 02:32:12 »
Advertisements
I made some minor changes to gui_tetris.c  :xmas
  • Highest score is saved to A/CHDK/GAMES/TETRIS.SCO
  • Backlight is switched off when you pause
  • Changed the keys - KEY_SET to rotate, KEY_UP to pause
gui_tetris.c attached. I only tested it with CHKDK-DE and an ixus220_elph300hs. I don't have much experience with C or CHDK, so my code can definitely be improved but it works for me.

http://pastebin.com/deSabSLn
« Last Edit: 09 / December / 2011, 02:55:25 by Sektor »

*

Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: New games - Snake, Tetris
« Reply #21 on: 10 / December / 2011, 04:22:31 »
Thanks for your improvements.

I've added the your new version in CHDK-DE: http://trac.assembla.com/chdkde/changeset/895

msl

CHDK-DE:  CHDK-DE links

 

Related Topics


SimplePortal © 2008-2014, SimplePortal