finished reowrking grid maps, polished astar pathfinding, started work on aiming functions --todo: change launch speed to constant, change aim function to take into account the angle it would need to launch at to hit mouse position like in peggle, add raycasting
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
using Godot;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
public partial class PlayArea : Node2D
|
||||
{
|
||||
public Node2D _leftEdge, _rightEdge;
|
||||
public Area2D _region;
|
||||
public Map _map;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
base._Ready();
|
||||
_region = GetNode<Area2D>("Region");
|
||||
|
||||
_leftEdge = GetNode<Node2D>("LeftEdge");
|
||||
_rightEdge = GetNode<Node2D>("RightEdge");
|
||||
|
||||
CollisionShape2D regionBounds = _region.GetNode<CollisionShape2D>("Bounds");
|
||||
|
||||
_map = GetNode<Map>("Map");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user