| Author | 
		Message | 
	
		 
		monkeynamedsteve
 
  
 
    
		 | 
		
		
			
				  Posted: Thu May 11, 2006 2:56 pm    Post subject: Pacman  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				I made up this pacman program the other day, its not any fun without ghosts or dots but its good enough to start with. Have Fun.
		
	
  
          
							 
	
	
		
	 
	
		|  Description: | 
		
			
		 | 
		  Download | 
	 
	
		|  Filename: | 
		 Pacman.t | 
	 
	
		|  Filesize: | 
		 4.46 KB | 
	 
	
		|  Downloaded: | 
		 603 Time(s) | 
	 
	 
	 
		
 | 
			 
			
				 | 
			 
		  | 
	
	 
		 | 
		
		 | 
	
	
 
		  | 
	
		 
		Sponsor Sponsor 
		 
  
		 | 
		
 | 
	
	 
		  | 
	
				 
		ohgeez_
 
  
 
    
		 | 
		
		
			
				  Posted: Thu May 11, 2006 4:52 pm    Post subject: (No subject)  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				ok. nice game. but a few things
 
 
- pacman seems to be moving a little to slow , or actually, i missed ur del const. so nvm tat
 
 
- ur collision detector on the walls is nice, but sometimes its a little hard to turn.
 
 
- i like the way u used ur drawarc to cover pacman instead of cls
 
 
a very good game.  and not a whole lot of lines
 
add ghosts if ur gona build on it =D
		
 | 
			 
			
				 | 
			 
		  | 
	
	 
		 | 
		
		 | 
	
	
 
		  | 
	
				 
		monkeynamedsteve
 
  
 
    
		 | 
		
		
			
				  Posted: Thu May 11, 2006 4:56 pm    Post subject: (No subject)  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				I posted in the help forum about the ghosts.
 
I'll put the final copy up here.
 
Thanks for the feedback.
		
 | 
			 
			
				 | 
			 
		  | 
	
	 
		 | 
		
		 | 
	
	
 
		  | 
	
				 
		Carey
 
  
 
    
		 | 
		
		
			
				  Posted: Fri May 12, 2006 10:00 am    Post subject: (No subject)  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				better collision detection:
 
 
if your pacman coords are x,y  and your pacman is 5 pixels tall and 5 wide then create invisble points around pacman to check for the wall colour
 
 
	  | code: | 	 		  
 
if whatdotcolour (x + 6,y) = grey then %check right side of pacman
 
      %don't let pacman move right
 
if whatdotcolour (x - 6,y) = grey then %check left side of pacman
 
      %don't let pacman move left
 
  | 	  
 
 
etc.
 
 
see the below picture for the locations you should check with whatdotcolour
 
 
i hope this helps
		
 | 
			 
			
				 | 
			 
		  | 
	
	 
		 | 
		
		 | 
	
	
 
		  | 
	
				 
		upthescale
 
 
 
    
		 | 
		
		
			
				  Posted: Fri May 12, 2006 1:55 pm    Post subject: (No subject)  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				| in ur whatdot color if statment wuts the ~ meen b4 the = sign?
		
 | 
			 
			
				 | 
			 
		  | 
	
	 
		 | 
		
		 | 
	
	
 
		  | 
	
				 
		Cervantes
 
  
 
    
		 | 
		
		
			
				  Posted: Fri May 12, 2006 4:07 pm    Post subject: (No subject)  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				upthescale wrote: in ur whatdot color if statment wuts the ~ meen b4 the = sign? 
 
"~" is short for "not", as in
 
	  | code: | 	 		  
 
if foo not = 2 then
 
  | 	  
 
Many languages use "!=" for "not equals"
		
 | 
			 
			
				 | 
			 
		  | 
	
	 
		 | 
		
		 | 
	
	
 
		  | 
	
				 
		monkeynamedsteve
 
  
 
    
		 | 
		
		
			
				  Posted: Fri May 12, 2006 5:40 pm    Post subject: (No subject)  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				Yes yes, there is finally a use for the "~" symbol.
 
Fact: "~" is called a tild.
 
Tehe, I feel smart.
 
I prefer to use ~= over not=, I'm not sure why, it looks cooler?
 
It has the same function..blah blah blah.
 
Already explained
		
 | 
			 
			
				 | 
			 
		  | 
	
	 
		 | 
		
		 | 
	
	
 
		  | 
	
				 
		monkeynamedsteve
 
  
 
    
		 | 
		
		
			
				  Posted: Fri May 12, 2006 5:46 pm    Post subject: (No subject)  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				| Oh and Carey, thanks for the comment, I actually used the whatdotcolour command near the end of my program, but seeing your drawing makes me think I should make the corner points closer to the Pacman to allow easier movement.
		
 | 
			 
			
				 | 
			 
		  | 
	
	 
		 | 
		
		 | 
	
	
 
		  | 
	
		 
		Sponsor Sponsor 
		 
  
		 | 
		
 | 
	
	 
		  | 
	
				 
		 |