Subversion Repositories Kolibri OS

Rev

Rev 5260 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5260 Rev 5324
Line 644... Line 644...
644
 
644
 
Line 645... Line -...
645
 
-
 
Line 646... Line -...
646
 
-
 
647
void GameKeyDown(int key, int first) {
-
 
648
    
-
 
Line 649... Line 645...
649
    if (key == RS_KEY_A) {
645
 
650
    
646
 
651
        game.time = 50;
647
void GameKeyDown(int key, int first) {
652
        
648
    
Line 702... Line 698...
702
//
698
//
703
//    };
699
//    };
Line 704... Line 700...
704
    
700
    
Line 705... Line -...
705
    if (game.status == STATUS_PLAYING) {
-
 
706
        
-
 
707
 
-
 
708
        #ifndef RS_KOS
-
 
709
            if (key == RS_KEY_SPACE) {
-
 
710
                game.score = 101;
-
 
711
            };
-
 
712
            
-
 
713
        #endif
701
    if (game.status == STATUS_PLAYING) {
714
 
702
        
715
        if (key == RS_KEY_ESCAPE) {
703
        if (key == RS_KEY_ESCAPE) {
716
            game.time = 0;
704
            game.time = 0;
717
            game.score = 0;
705
            game.score = 0;
718
            game.status = STATUS_MENU;
706
            game.status = STATUS_MENU;
Line 719... Line -...
719
            game.need_redraw = 1;
-
 
720
        };
-
 
721
        
-
 
722
        if (key == RS_KEY_A) {
-
 
723
            soundbuf_play(&game.sound_bang);
-
 
724
        };
-
 
725
//        if (key == RS_KEY_Z) {
-
 
726
//            soundbuf_play(&game.sound_tack);
707
            game.need_redraw = 1;
Line 727... Line 708...
727
//        };
708
        };
Line 728... Line 709...
728
        
709