removing bump from week 2 start files
This commit is contained in:
		
							parent
							
								
									8695701fdf
								
							
						
					
					
						commit
						15548d7ff3
					
				@ -26,9 +26,3 @@ func _physics_process(delta):
 | 
				
			|||||||
		velocity.x = move_toward(velocity.x, 0, SPEED)
 | 
							velocity.x = move_toward(velocity.x, 0, SPEED)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	move_and_slide()
 | 
						move_and_slide()
 | 
				
			||||||
	# This represents the player's inertia
 | 
					 | 
				
			||||||
	# after calling move_and_slide()
 | 
					 | 
				
			||||||
	for i in get_slide_collision_count():
 | 
					 | 
				
			||||||
		var c = get_slide_collision(i)
 | 
					 | 
				
			||||||
		if c.get_collider() is RigidBody2D:
 | 
					 | 
				
			||||||
			c.get_collider().apply_central_impulse(-c.get_normal() * PUSH_FORCE)
 | 
					 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user