mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2024-11-22 02:32:39 +01:00
parent
6a30ccbef1
commit
75d2d98a46
@ -24,15 +24,21 @@ TPlunger::TPlunger(TPinballTable* table, int groupIndex) : TCollisionComponent(t
|
|||||||
HardHitSoundId = visual.Kicker.HardHitSoundId;
|
HardHitSoundId = visual.Kicker.HardHitSoundId;
|
||||||
Threshold = 1000000000.0;
|
Threshold = 1000000000.0;
|
||||||
|
|
||||||
// In FT, default max pullback is 50.
|
// FT:MaxPullback = 50; 3DPB: MaxPullback = 100, PullbackIncrement is floored.
|
||||||
if (pb::FullTiltMode)
|
if (pb::FullTiltMode)
|
||||||
|
{
|
||||||
MaxPullback = 50;
|
MaxPullback = 50;
|
||||||
|
PullbackIncrement = MaxPullback / (ListBitmap->size() * 8.0f);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
MaxPullback = 100;
|
MaxPullback = 100;
|
||||||
|
PullbackIncrement = std::floor(MaxPullback / (ListBitmap->size() * 8.0f));
|
||||||
|
}
|
||||||
|
|
||||||
Elasticity = 0.5f;
|
Elasticity = 0.5f;
|
||||||
Smoothness = 0.5f;
|
Smoothness = 0.5f;
|
||||||
PullbackIncrement = MaxPullback / (ListBitmap->size() * 8.0f);
|
|
||||||
PullbackDelay = 0.025f;
|
PullbackDelay = 0.025f;
|
||||||
float* floatArr = loader::query_float_attribute(groupIndex, 0, 601);
|
float* floatArr = loader::query_float_attribute(groupIndex, 0, 601);
|
||||||
table->PlungerPosition = {floatArr[0], floatArr[1]};
|
table->PlungerPosition = {floatArr[0], floatArr[1]};
|
||||||
|
@ -66,7 +66,7 @@ class winmain
|
|||||||
using TimePoint = std::chrono::time_point<Clock>;
|
using TimePoint = std::chrono::time_point<Clock>;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static constexpr const char* Version = "2.1.0";
|
static constexpr const char* Version = "2.1.1 DEV";
|
||||||
static bool single_step;
|
static bool single_step;
|
||||||
static SDL_Window* MainWindow;
|
static SDL_Window* MainWindow;
|
||||||
static SDL_Renderer* Renderer;
|
static SDL_Renderer* Renderer;
|
||||||
|
@ -39,7 +39,7 @@ cd ..
|
|||||||
cmake .
|
cmake .
|
||||||
cmake --build .
|
cmake --build .
|
||||||
|
|
||||||
sw_version='2.1.0'
|
sw_version='2.1.1'
|
||||||
|
|
||||||
mkdir -p SpaceCadetPinball.app/Contents/MacOS
|
mkdir -p SpaceCadetPinball.app/Contents/MacOS
|
||||||
mkdir -p SpaceCadetPinball.app/Contents/Resources
|
mkdir -p SpaceCadetPinball.app/Contents/Resources
|
||||||
|
Loading…
Reference in New Issue
Block a user