Start OnTouch

This commit is contained in:
Modnark
2022-10-10 20:01:30 -04:00
parent 7e9f34e1ac
commit adade066cc
3 changed files with 120 additions and 27 deletions

View File

@@ -24,13 +24,24 @@ public:
Enum::SurfaceType::Value back;
Enum::SurfaceType::Value left;
Enum::SurfaceType::Value bottom;
//Shapes
Enum::Shape::Value shape;
//OnTocuh
Enum::ActionType::Value OnTouchAction;
Enum::Sound::Value OnTouchSound;
//Variables
Color3 color;
bool canCollide;
dBodyID physBody;
dGeomID physGeom[3];
bool singleShot;
int touchesToTrigger;
int uniqueObjectsToTrigger;
int changeScore;
int changeTimer;
//Getters
Vector3 getPosition();

View File

@@ -32,4 +32,10 @@ namespace Enum
NoChange = 0, Increase = 1, Decrease = 2
};
}
namespace Sound
{
enum Value {
NoSound = 0, Victory = 1, Boing = 2
};
}
}