vaniacer / piu-piu-SH

This is an Old School horizontal scroller 'Shoot Them All' game in bash. With multiplayer modes team and duel. You have to defeat 100 aliens to fight with Boss. I'm using netcat for client-server exchange in multiplayer mode. So netcat have to be installed on system if you wish to play with friend. Terminals on both hosts have to be with equal dimensions.
MIT License
736 stars 36 forks source link

continue: only meaningful in a `for', `while', or `until' loop #3

Closed jorpic closed 7 years ago

jorpic commented 7 years ago
$ bash --version
GNU bash, version 4.4.12(1)-release (x86_64-unknown-linux-gnu)

I got error

./piu-piu.sh: line 295: continue: only meaningful in a `for', `while', or `until' loop

spread all over the screen.

Look s like this:

killed aliens: 1  Life: 2  Ammo: 100                                                                                                                                                _...--|       
                                                                                                                                           ,-._.,                              ..--`      \       
                                                                                                                                          (      )                                      .. `.     
                                                                                                                           ___             `-...`                                   _.-`     `..__
                                                                                                                          (o  )                            ,-._.,                ..`         .`   
                                                                                                                           `¯´                            (      )                          /     
 ___                                                                                                                                                       `-...`                          /      
 ___                                                                                                                               ,-.,         ,-.,                                     .`       
    )      ./piu-piu.sh: line 295: continue: only meaningful in a `for', `while', or `until' loop                                 (    )       (   ,-.,                                           
 __        ./piu-piu.sh: line 295: continue: only meaningful in a `for', `while', or `until' loop                                  `+ ,-.,      `+(    )                                         
 |★〵____                                                                                                                            (    )        `+-`                                          
  \_| / °)-                                                                                                  ___                      `+-`                                                       
    |/                                                                                                      (o  )                                                                                
                                                                                                             `¯´                                                                                 
 `¯´       ./piu-piu.sh: line 295: continue: only meaningful in a `for', `while', or `until' loop                                                                                               
(o  )                                                                                                                                                                                            
 `¯´       ./piu-piu.sh: line 295: continue: only meaningful in a `for', `while', or `until' loop                                                                                                
 ___       ./piu-piu.sh: line 295: continue: only meaningful in a `for', `while', or `until' loop                                                                                               
(   )                                                                                                                       ___                                                                  
 ___                                                                                                                       (o  )                                                                 
(   )                                                                                                               ___     `¯´                                                                  
 `¯´       ./piu-piu.sh: line 295: continue: only meaningful in a `for', `while', or `until' loop                  (o  _ ___  ___                                                                
( o )                                                                                                               `¯(o(o  )(o  )                                                               
 `¯´       ./piu-piu.sh: line 295: continue: only meaningful in a `for', `while', or `until' loop                      `  ___ `¯´                                                               
                                                                                                                         (o  )                                                                   
                                                                                                                          `¯´                                                                   
 ___                                                                                                                                                                                            
(o  )                                                                                                                                                                                            
 `¯´       ./piu-piu.sh: line 295: continue: only meaningful in a `for', `while', or `until' loop                                                                                               
(  o)                                                                                                                        ___                                                                 
 `¯´       ./piu-piu.sh: line 295: continue: only meaningful in a `for', `while', or `until' loop                           (o  )                                                                
                                                                                                                             `¯´                                                                
 ___                                                                                                                                                                                            
(  o)                                                                                                                                                                                            
 `¯´       ./piu-piu.sh: line 295: continue: only meaningful in a `for', `while', or `until' loop                                                                                                
 `¯´       ./piu-piu.sh: line 295: continue: only meaningful in a `for', `while', or `until' loop                     ___                                                                       
 ___                                                                                                                 (o  ) _                        _._             _._                          
(o  )                                                                                                                 `¯´   \                      /   \           /   \                         
 `¯´       ./piu-piu.sh: line 295: continue: only meaningful in a `for', `while', or `until' loop                      _\ | /                     _\ | /          _\ | /                        
                                                                                                                      /  \║/ _                 _./  \║/ _       _/  \║/ _        _._      _._    
                                                                                                                      \_\/║ / \               /  \_\/║ / \    // \_\/║ / \      /   \    /   \   
                                                                                                                         \║ /_/           _   \ |   \║ /_/    \\    \║ /_/      \ | /    \ | /   
                                                                                                                          ║/ ║/\        // \   \║    ║/ \       \    ║/        / \║/\     \║/\   
                                                                                                                          ║  ║_/        \\|/    ║    ║ |/            ║         \  ║_/      ║_/   
                                                                                                                          ║  ║            |     ║    ║ |             ║            ║        ║    
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
asmfreak commented 7 years ago

I have the same issue

vaniacer commented 7 years ago

Change continue to return, that should fix this error.