added ball movement and collision with walls except its not working
This commit is contained in:
		
							parent
							
								
									ff1fa4006d
								
							
						
					
					
						commit
						cfc8610ab4
					
				
							
								
								
									
										21
									
								
								pong.tscn
								
								
								
								
							
							
						
						
									
										21
									
								
								pong.tscn
								
								
								
								
							| 
						 | 
				
			
			@ -1,30 +1,33 @@
 | 
			
		|||
[gd_scene load_steps=5 format=2]
 | 
			
		||||
[gd_scene load_steps=6 format=2]
 | 
			
		||||
 | 
			
		||||
[ext_resource path="res://left_pallete.png" type="Texture" id=1]
 | 
			
		||||
[ext_resource path="res://right_pallete.png" type="Texture" id=2]
 | 
			
		||||
[ext_resource path="res://separator.png" type="Texture" id=3]
 | 
			
		||||
[ext_resource path="res://ball.png" type="Texture" id=4]
 | 
			
		||||
[ext_resource path="res://pong.vs" type="Script" id=1]
 | 
			
		||||
[ext_resource path="res://left_pallete.png" type="Texture" id=2]
 | 
			
		||||
[ext_resource path="res://right_pallete.png" type="Texture" id=3]
 | 
			
		||||
[ext_resource path="res://separator.png" type="Texture" id=4]
 | 
			
		||||
[ext_resource path="res://ball.png" type="Texture" id=5]
 | 
			
		||||
 | 
			
		||||
[node name="Node2D" type="Node2D"]
 | 
			
		||||
 | 
			
		||||
script = ExtResource( 1 )
 | 
			
		||||
 | 
			
		||||
[node name="left_pallete" type="Sprite" parent="."]
 | 
			
		||||
 | 
			
		||||
position = Vector2( 62, 185 )
 | 
			
		||||
texture = ExtResource( 1 )
 | 
			
		||||
texture = ExtResource( 2 )
 | 
			
		||||
 | 
			
		||||
[node name="right_pallete" type="Sprite" parent="."]
 | 
			
		||||
 | 
			
		||||
position = Vector2( 565, 189 )
 | 
			
		||||
texture = ExtResource( 2 )
 | 
			
		||||
texture = ExtResource( 3 )
 | 
			
		||||
 | 
			
		||||
[node name="separator" type="Sprite" parent="."]
 | 
			
		||||
 | 
			
		||||
position = Vector2( 304, 200 )
 | 
			
		||||
texture = ExtResource( 3 )
 | 
			
		||||
texture = ExtResource( 4 )
 | 
			
		||||
 | 
			
		||||
[node name="ball" type="Sprite" parent="."]
 | 
			
		||||
 | 
			
		||||
position = Vector2( 304, 183 )
 | 
			
		||||
texture = ExtResource( 4 )
 | 
			
		||||
texture = ExtResource( 5 )
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -11,6 +11,7 @@ config_version=3
 | 
			
		|||
[application]
 | 
			
		||||
 | 
			
		||||
config/name="pong"
 | 
			
		||||
run/main_scene="res://pong.tscn"
 | 
			
		||||
config/icon="res://icon.png"
 | 
			
		||||
 | 
			
		||||
[display]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue