mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-12-27 07:06:00 +00:00
clean out some dead code and some old commented out code
This commit is contained in:
parent
b6ae2a6baa
commit
9eb5b9828a
9 changed files with 24 additions and 2099 deletions
1983
Aquaria/Avatar.cpp
1983
Aquaria/Avatar.cpp
File diff suppressed because it is too large
Load diff
|
@ -22,7 +22,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
#define AVATAR_H
|
#define AVATAR_H
|
||||||
|
|
||||||
#include "../BBGE/Particles.h"
|
#include "../BBGE/Particles.h"
|
||||||
#include "../BBGE/BitmapFont.h"
|
|
||||||
|
|
||||||
#include "DSQ.h"
|
#include "DSQ.h"
|
||||||
#include "Hair.h"
|
#include "Hair.h"
|
||||||
|
@ -30,9 +29,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
#include "Web.h"
|
#include "Web.h"
|
||||||
|
|
||||||
class SpringPlant;
|
|
||||||
|
|
||||||
//class Item;
|
|
||||||
class TileVector;
|
class TileVector;
|
||||||
class SongIcon;
|
class SongIcon;
|
||||||
|
|
||||||
|
@ -106,20 +102,10 @@ protected:
|
||||||
void onUpdate(float dt);
|
void onUpdate(float dt);
|
||||||
};
|
};
|
||||||
|
|
||||||
class FormIcon : public Quad
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
FormIcon();
|
|
||||||
protected:
|
|
||||||
bool cursorIsIn;
|
|
||||||
void onUpdate(float dt);
|
|
||||||
};
|
|
||||||
|
|
||||||
class AvatarState
|
class AvatarState
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AvatarState();
|
AvatarState();
|
||||||
Timer dodgeEffectTimer;
|
|
||||||
Timer blindTimer;
|
Timer blindTimer;
|
||||||
float abilityDelay;
|
float abilityDelay;
|
||||||
bool blind;
|
bool blind;
|
||||||
|
@ -131,7 +117,6 @@ public:
|
||||||
float spellCharge;
|
float spellCharge;
|
||||||
bool lockedToWall;
|
bool lockedToWall;
|
||||||
float leachTimer;
|
float leachTimer;
|
||||||
bool crawlingOnWall;
|
|
||||||
bool nearWall;
|
bool nearWall;
|
||||||
float swimTimer, rollTimer;
|
float swimTimer, rollTimer;
|
||||||
float updateLookAtTime;
|
float updateLookAtTime;
|
||||||
|
@ -151,20 +136,13 @@ public:
|
||||||
void destroy();
|
void destroy();
|
||||||
void action(int actionID, int state);
|
void action(int actionID, int state);
|
||||||
AvatarState state;
|
AvatarState state;
|
||||||
void setIgnoreInputDelay(float delay)
|
|
||||||
{
|
|
||||||
ignoreInputDelay = delay;
|
|
||||||
}
|
|
||||||
float burst, burstTimer;
|
float burst, burstTimer;
|
||||||
float burstDelay;
|
float burstDelay;
|
||||||
bool bursting;
|
bool bursting;
|
||||||
BurstType lastBurstType;
|
BurstType lastBurstType;
|
||||||
//void damage(int amount);
|
//void damage(int amount);
|
||||||
bool isCharging();
|
bool isCharging();
|
||||||
void slowToRest();
|
|
||||||
void debugMsg(const std::string &msg);
|
|
||||||
void setBlind(float time);
|
void setBlind(float time);
|
||||||
void onBlindTest();
|
|
||||||
|
|
||||||
void revive();
|
void revive();
|
||||||
|
|
||||||
|
@ -182,10 +160,8 @@ public:
|
||||||
Entity *entityToActivate;
|
Entity *entityToActivate;
|
||||||
Path *pathToActivate;
|
Path *pathToActivate;
|
||||||
|
|
||||||
Entity *lastEntityActivation;
|
|
||||||
void shift();
|
void shift();
|
||||||
void applyWorldEffects(WorldType type);
|
void applyWorldEffects(WorldType type);
|
||||||
Vector extraVel;
|
|
||||||
|
|
||||||
void toggleMovement(bool on);
|
void toggleMovement(bool on);
|
||||||
|
|
||||||
|
@ -220,16 +196,11 @@ public:
|
||||||
void changeForm(FormType form, bool effects=true, bool onInit=false, FormType lastForm=FORM_NONE);
|
void changeForm(FormType form, bool effects=true, bool onInit=false, FormType lastForm=FORM_NONE);
|
||||||
void singNote(int note);
|
void singNote(int note);
|
||||||
std::vector<SongIcon*> songIcons;
|
std::vector<SongIcon*> songIcons;
|
||||||
std::vector<FormIcon*> formIcons;
|
|
||||||
//std::vector<int> currentsong;
|
|
||||||
Song currentSong;
|
Song currentSong;
|
||||||
int currentSongIdx;
|
int currentSongIdx;
|
||||||
|
|
||||||
Entity *pullTarget;
|
Entity *pullTarget;
|
||||||
bool pickingPullTarget;
|
|
||||||
|
|
||||||
void openPullTargetInterface();
|
|
||||||
void closePullTargetInterface();
|
|
||||||
void setNearestPullTarget();
|
void setNearestPullTarget();
|
||||||
|
|
||||||
void formAbility(int ability);
|
void formAbility(int ability);
|
||||||
|
@ -243,16 +214,11 @@ public:
|
||||||
|
|
||||||
bool canDie;
|
bool canDie;
|
||||||
|
|
||||||
bool warpIn;
|
|
||||||
Vector warpInLocal;
|
Vector warpInLocal;
|
||||||
|
|
||||||
float biteDelay, urchinDelay, jellyDelay;
|
float biteDelay, urchinDelay, jellyDelay;
|
||||||
bool movingOn;
|
bool movingOn;
|
||||||
|
|
||||||
int ropeState;
|
|
||||||
float ropeTimer;
|
|
||||||
Vector ropePos, ropeVel;
|
|
||||||
void fireRope();
|
|
||||||
void render();
|
void render();
|
||||||
void activateAura(AuraType aura);
|
void activateAura(AuraType aura);
|
||||||
void stopAura();
|
void stopAura();
|
||||||
|
@ -264,7 +230,6 @@ public:
|
||||||
void updateFormVisualEffects(float dt);
|
void updateFormVisualEffects(float dt);
|
||||||
bool isSinging();
|
bool isSinging();
|
||||||
bool isLockable();
|
bool isLockable();
|
||||||
float stopTimer;
|
|
||||||
int getCursorQuadrant();
|
int getCursorQuadrant();
|
||||||
void onWarp();
|
void onWarp();
|
||||||
int getBurstDistance();
|
int getBurstDistance();
|
||||||
|
@ -275,16 +240,12 @@ public:
|
||||||
int rollDir;
|
int rollDir;
|
||||||
std::string getBurstAnimName();
|
std::string getBurstAnimName();
|
||||||
std::string getRollAnimName();
|
std::string getRollAnimName();
|
||||||
void startWallCrawl();
|
|
||||||
void stopWallCrawl();
|
|
||||||
|
|
||||||
void updateDualFormChargeEffects();
|
void updateDualFormChargeEffects();
|
||||||
|
|
||||||
TileVector wallLockTile;
|
TileVector wallLockTile;
|
||||||
Vector wallNormal, lastWallNormal;
|
Vector wallNormal;
|
||||||
|
|
||||||
void openFormInterface();
|
|
||||||
void closeFormInterface();
|
|
||||||
void fallOffWall();
|
void fallOffWall();
|
||||||
|
|
||||||
float fireDelay;
|
float fireDelay;
|
||||||
|
@ -293,8 +254,6 @@ public:
|
||||||
AuraType activeAura;
|
AuraType activeAura;
|
||||||
float auraTimer;
|
float auraTimer;
|
||||||
bool fireAtNearestValidEntity(const std::string &shot);
|
bool fireAtNearestValidEntity(const std::string &shot);
|
||||||
EatType inTummy;
|
|
||||||
float tummyTimer;
|
|
||||||
|
|
||||||
void checkNearWall();
|
void checkNearWall();
|
||||||
Vector getAim();
|
Vector getAim();
|
||||||
|
@ -306,7 +265,6 @@ public:
|
||||||
void updatePosition();
|
void updatePosition();
|
||||||
float quickSongCastDelay;
|
float quickSongCastDelay;
|
||||||
void onAnimationKeyPassed(int key);
|
void onAnimationKeyPassed(int key);
|
||||||
int tummyAmount;
|
|
||||||
|
|
||||||
bool isSwimming();
|
bool isSwimming();
|
||||||
|
|
||||||
|
@ -369,23 +327,17 @@ protected:
|
||||||
int curWebPoint;
|
int curWebPoint;
|
||||||
void checkUpgradeForShot(Shot *s);
|
void checkUpgradeForShot(Shot *s);
|
||||||
int getNumShots();
|
int getNumShots();
|
||||||
void updateCursorFromKeyboard();
|
|
||||||
void lockToWallCommon();
|
void lockToWallCommon();
|
||||||
void onSetBoneLock();
|
void onSetBoneLock();
|
||||||
void onUpdateBoneLock();
|
void onUpdateBoneLock();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
InterpolatedVector cursorPos;
|
|
||||||
void adjustHeadRot();
|
void adjustHeadRot();
|
||||||
std::string lastHeadTexture;
|
std::string lastHeadTexture;
|
||||||
void updateDualFormGlow(float dt);
|
void updateDualFormGlow(float dt);
|
||||||
Vector getTendrilAimVector(int i, int max);
|
Vector getTendrilAimVector(int i, int max);
|
||||||
void applyRidingPosition();
|
void applyRidingPosition();
|
||||||
Vector lastWallJumpPos, lastWallJumpDir;
|
|
||||||
void stopWallJump();
|
void stopWallJump();
|
||||||
void updateWallJump(float dt);
|
void updateWallJump(float dt);
|
||||||
int wallJumps;
|
|
||||||
float wallBurstTimer;
|
float wallBurstTimer;
|
||||||
float targetUpdateDelay;
|
float targetUpdateDelay;
|
||||||
std::vector<Target> targets;
|
std::vector<Target> targets;
|
||||||
|
@ -410,7 +362,6 @@ protected:
|
||||||
|
|
||||||
int shieldPoints;
|
int shieldPoints;
|
||||||
|
|
||||||
bool inFormInterface;
|
|
||||||
void onIdle();
|
void onIdle();
|
||||||
void onHeal(int type);
|
void onHeal(int type);
|
||||||
ParticleEffect biteLeftEmitter, biteRightEmitter, swimEmitter, auraHitEmitter;
|
ParticleEffect biteLeftEmitter, biteRightEmitter, swimEmitter, auraHitEmitter;
|
||||||
|
@ -419,7 +370,6 @@ protected:
|
||||||
ParticleEffect *leftHandEmitter, *rightHandEmitter;
|
ParticleEffect *leftHandEmitter, *rightHandEmitter;
|
||||||
ParticleEffect *chargingEmitter, *chargeEmitter;
|
ParticleEffect *chargingEmitter, *chargeEmitter;
|
||||||
void updateCursor(float dt);
|
void updateCursor(float dt);
|
||||||
float canWarpDelay;
|
|
||||||
bool rolling;
|
bool rolling;
|
||||||
int rollDidOne;
|
int rollDidOne;
|
||||||
|
|
||||||
|
@ -427,19 +377,12 @@ protected:
|
||||||
void stopRoll();
|
void stopRoll();
|
||||||
int getQuadrantDirection(int lastQuad, int quad);
|
int getQuadrantDirection(int lastQuad, int quad);
|
||||||
void updateRoll(float dt);
|
void updateRoll(float dt);
|
||||||
void updateTummy(float dt);
|
|
||||||
int lastQuad, lastQuadDir;
|
int lastQuad, lastQuadDir;
|
||||||
void onDamage(DamageData &d);
|
void onDamage(DamageData &d);
|
||||||
void updateHair(float dt);
|
void updateHair(float dt);
|
||||||
|
|
||||||
void lostTarget(int i, Entity *e);
|
void lostTarget(int i, Entity *e);
|
||||||
|
|
||||||
float doubleClickDelay;
|
|
||||||
|
|
||||||
float damageDelay;
|
|
||||||
bool didShockDamage;
|
|
||||||
void updateShock(float dt);
|
|
||||||
float shockTimer;
|
|
||||||
Vector shieldPosition;
|
Vector shieldPosition;
|
||||||
void updateAura(float dt);
|
void updateAura(float dt);
|
||||||
|
|
||||||
|
@ -455,15 +398,12 @@ protected:
|
||||||
void clampVelocity();
|
void clampVelocity();
|
||||||
|
|
||||||
bool canCharge(int ability);
|
bool canCharge(int ability);
|
||||||
int abilityCharging;
|
|
||||||
void formAbilityUpdate(float dt);
|
void formAbilityUpdate(float dt);
|
||||||
Entity *potentialPullTarget;
|
|
||||||
float revertTimer;
|
float revertTimer;
|
||||||
|
|
||||||
void endCharge();
|
void endCharge();
|
||||||
Entity *activateEntity;
|
Entity *activateEntity;
|
||||||
bool canMove;
|
bool canMove;
|
||||||
float castShockTimer;
|
|
||||||
|
|
||||||
void onEnterState(int action);
|
void onEnterState(int action);
|
||||||
void onExitState(int action);
|
void onExitState(int action);
|
||||||
|
@ -472,28 +412,17 @@ protected:
|
||||||
void applyBlindEffects();
|
void applyBlindEffects();
|
||||||
void removeBlindEffects();
|
void removeBlindEffects();
|
||||||
|
|
||||||
|
|
||||||
//bool blind;
|
|
||||||
bool animatedBurst;
|
|
||||||
|
|
||||||
float zoomVel;
|
float zoomVel;
|
||||||
// implement "bobbing" in a lower class
|
// implement "bobbing" in a lower class
|
||||||
int getBeamWidth();
|
int getBeamWidth();
|
||||||
Vector getWallNormal(TileVector t);
|
Vector getWallNormal(TileVector t);
|
||||||
void onToggleDebugMessages();
|
|
||||||
float spellCastDelay;
|
|
||||||
float spellChargeMin;
|
|
||||||
bool checkWarpAreas();
|
bool checkWarpAreas();
|
||||||
void checkSpecial();
|
|
||||||
void toggleZoom();
|
void toggleZoom();
|
||||||
|
|
||||||
float ignoreInputDelay;
|
float ignoreInputDelay;
|
||||||
float idleAnimDelay;
|
|
||||||
float splashDelay;
|
float splashDelay;
|
||||||
//Hair *hair;
|
//Hair *hair;
|
||||||
|
|
||||||
BitmapText *text;
|
|
||||||
|
|
||||||
//Item *currentItem;
|
//Item *currentItem;
|
||||||
void onUpdate(float dt);
|
void onUpdate(float dt);
|
||||||
void onRender();
|
void onRender();
|
||||||
|
@ -503,26 +432,19 @@ protected:
|
||||||
Quad *glow;
|
Quad *glow;
|
||||||
bool swimming;
|
bool swimming;
|
||||||
|
|
||||||
void doRangePush(float dt);
|
|
||||||
void doRangePull(float dt);
|
|
||||||
|
|
||||||
void lmbd();
|
void lmbd();
|
||||||
void lmbu();
|
void lmbu();
|
||||||
|
|
||||||
void rmbd();
|
void rmbd();
|
||||||
void rmbd2();
|
|
||||||
void rmbu();
|
void rmbu();
|
||||||
|
|
||||||
bool charging;
|
bool charging;
|
||||||
|
|
||||||
Vector lastPush;
|
|
||||||
|
|
||||||
float pushingOffWallEffect;
|
float pushingOffWallEffect;
|
||||||
float lockToWallFallTimer;
|
float lockToWallFallTimer;
|
||||||
|
|
||||||
Vector dodgeVec;
|
Vector dodgeVec;
|
||||||
Vector wallPushVec, wallTurnVec;
|
Vector wallPushVec, wallTurnVec;
|
||||||
Vector lastLockToWallPos;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -198,8 +198,6 @@ DSQ::DSQ(std::string fileSystem) : Core(fileSystem, LR_MAX, APPNAME, PARTICLE_AM
|
||||||
menuSelectDelay = 0;
|
menuSelectDelay = 0;
|
||||||
modSelectorScr = 0;
|
modSelectorScr = 0;
|
||||||
blackout = 0;
|
blackout = 0;
|
||||||
useMic = false;
|
|
||||||
autoSingMenuOpen = false;
|
|
||||||
inputMode = INPUT_MOUSE;
|
inputMode = INPUT_MOUSE;
|
||||||
overlay = 0;
|
overlay = 0;
|
||||||
recentSaveSlot = -1;
|
recentSaveSlot = -1;
|
||||||
|
@ -4492,7 +4490,7 @@ void DSQ::onUpdate(float dt)
|
||||||
dsq->setInputMode(INPUT_MOUSE);
|
dsq->setInputMode(INPUT_MOUSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isDeveloperKeys())
|
/*if (isDeveloperKeys())
|
||||||
{
|
{
|
||||||
if (core->getCtrlState())
|
if (core->getCtrlState())
|
||||||
{
|
{
|
||||||
|
@ -4505,7 +4503,7 @@ void DSQ::onUpdate(float dt)
|
||||||
if (core->getKeyState(KEY_DOWN))
|
if (core->getKeyState(KEY_DOWN))
|
||||||
core->adjustWindowPosition(0, 5);
|
core->adjustWindowPosition(0, 5);
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
if (isDeveloperKeys() && cmDebug && cmDebug->alpha == 1 && fpsText)
|
if (isDeveloperKeys() && cmDebug && cmDebug->alpha == 1 && fpsText)
|
||||||
{
|
{
|
||||||
|
@ -4534,7 +4532,6 @@ void DSQ::onUpdate(float dt)
|
||||||
os << "maxSpeed: " << dsq->game->avatar->currentMaxSpeed << " - ";
|
os << "maxSpeed: " << dsq->game->avatar->currentMaxSpeed << " - ";
|
||||||
os << "lockedToWall: " << dsq->game->avatar->state.lockedToWall;
|
os << "lockedToWall: " << dsq->game->avatar->state.lockedToWall;
|
||||||
os << std::endl;
|
os << std::endl;
|
||||||
os << "crwlng: " << avatar->state.crawlingOnWall;
|
|
||||||
os << "swmng: " << avatar->isSwimming();
|
os << "swmng: " << avatar->isSwimming();
|
||||||
os << " dualFormCharge: " << continuity.dualFormCharge;
|
os << " dualFormCharge: " << continuity.dualFormCharge;
|
||||||
os << std::endl;
|
os << std::endl;
|
||||||
|
@ -4546,7 +4543,6 @@ void DSQ::onUpdate(float dt)
|
||||||
os << "inp: " << avatar->isInputEnabled() << std::endl;
|
os << "inp: " << avatar->isInputEnabled() << std::endl;
|
||||||
os << "wallNormal(" << avatar->wallNormal.x << ", " << avatar->wallNormal.y << ")" << std::endl;
|
os << "wallNormal(" << avatar->wallNormal.x << ", " << avatar->wallNormal.y << ")" << std::endl;
|
||||||
os << "burst: " << avatar->burst << " burstTimer: " << avatar->burstTimer << std::endl;
|
os << "burst: " << avatar->burst << " burstTimer: " << avatar->burstTimer << std::endl;
|
||||||
os << "inTummy: " << avatar->inTummy << " tummyAmount: " << avatar->tummyAmount << std::endl;
|
|
||||||
os << "inCurrent: " << avatar->isInCurrent() << std::endl;
|
os << "inCurrent: " << avatar->isInCurrent() << std::endl;
|
||||||
os << "qsongCastDelay: " << avatar->quickSongCastDelay << std::endl;
|
os << "qsongCastDelay: " << avatar->quickSongCastDelay << std::endl;
|
||||||
os << "singing: " << dsq->game->avatar->singing << " blockSinging: " << dsq->game->avatar->isBlockSinging();
|
os << "singing: " << dsq->game->avatar->singing << " blockSinging: " << dsq->game->avatar->isBlockSinging();
|
||||||
|
|
|
@ -1452,7 +1452,6 @@ public:
|
||||||
void rumble(float leftMotor, float rightMotor, float time);
|
void rumble(float leftMotor, float rightMotor, float time);
|
||||||
void vision(std::string folder, int num, bool ignoreMusic = false);
|
void vision(std::string folder, int num, bool ignoreMusic = false);
|
||||||
|
|
||||||
bool useMic, autoSingMenuOpen;
|
|
||||||
void watch(float t, int canQuit = 0);
|
void watch(float t, int canQuit = 0);
|
||||||
|
|
||||||
std::string lastVoiceFile;
|
std::string lastVoiceFile;
|
||||||
|
|
|
@ -551,39 +551,6 @@ void Entity::flipToTarget(Vector pos)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Entity::isCollideAgainst(Entity *e)
|
|
||||||
{
|
|
||||||
if (this == e) return false;
|
|
||||||
if (getEntityType()==ET_PET || getEntityType()==ET_AVATAR || getEntityType() == ET_NEUTRAL)
|
|
||||||
{
|
|
||||||
if (e->getEntityType()==ET_ENEMY || e->getEntityType()==ET_NEUTRAL)
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (getEntityType() == ET_ENEMY)
|
|
||||||
{
|
|
||||||
if (e->getEntityType()==ET_PET || e->getEntityType()==ET_AVATAR || e->getEntityType()==ET_NEUTRAL)
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Entity::isOpposedTo(Entity *e)
|
|
||||||
{
|
|
||||||
if (getEntityType()==ET_PET || getEntityType()==ET_AVATAR || getEntityType() == ET_NEUTRAL)
|
|
||||||
{
|
|
||||||
if (e->getEntityType()==ET_ENEMY || e->getEntityType()==ET_NEUTRAL)
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (getEntityType() == ET_ENEMY)
|
|
||||||
{
|
|
||||||
if (e->getEntityType()==ET_PET || e->getEntityType()==ET_AVATAR)
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
Entity* Entity::getTargetEntity(int t)
|
Entity* Entity::getTargetEntity(int t)
|
||||||
{
|
{
|
||||||
return targets[t];
|
return targets[t];
|
||||||
|
|
|
@ -341,8 +341,6 @@ public:
|
||||||
|
|
||||||
void setEntityType(EntityType et);
|
void setEntityType(EntityType et);
|
||||||
EntityType getEntityType();
|
EntityType getEntityType();
|
||||||
bool isOpposedTo(Entity *e);
|
|
||||||
bool isCollideAgainst(Entity *e);
|
|
||||||
void flipToTarget(Vector pos);
|
void flipToTarget(Vector pos);
|
||||||
bool isFollowingPath();
|
bool isFollowingPath();
|
||||||
void stopFollowingPath();
|
void stopFollowingPath();
|
||||||
|
|
|
@ -4138,8 +4138,7 @@ void Game::toggleOverrideZoom(bool on)
|
||||||
if (!on && avatar->zoomOverriden == true)
|
if (!on && avatar->zoomOverriden == true)
|
||||||
{
|
{
|
||||||
dsq->globalScale.stop();
|
dsq->globalScale.stop();
|
||||||
dsq->game->avatar->myZoom = dsq->globalScale;
|
avatar->myZoom = dsq->globalScale;
|
||||||
//dsq->game->avatar->myZoom.interpolateTo(Vector(1,1), 1.0);
|
|
||||||
}
|
}
|
||||||
avatar->zoomOverriden = on;
|
avatar->zoomOverriden = on;
|
||||||
}
|
}
|
||||||
|
@ -8401,8 +8400,6 @@ void Game::preLocalWarp(LocalWarpType localWarpType)
|
||||||
dsq->game->avatar->warpInLocal = Vector(0,0,0);
|
dsq->game->avatar->warpInLocal = Vector(0,0,0);
|
||||||
}
|
}
|
||||||
|
|
||||||
dsq->game->avatar->warpIn = !dsq->game->avatar->warpIn;
|
|
||||||
|
|
||||||
dsq->screenTransition->capture();
|
dsq->screenTransition->capture();
|
||||||
core->resetTimer();
|
core->resetTimer();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1778,7 +1778,6 @@ void Core::onUpdate(float dt)
|
||||||
//script.update(dt);
|
//script.update(dt);
|
||||||
|
|
||||||
cameraPos.update(dt);
|
cameraPos.update(dt);
|
||||||
cameraRot.update(dt);
|
|
||||||
globalScale.update(dt);
|
globalScale.update(dt);
|
||||||
|
|
||||||
if (afterEffectManager)
|
if (afterEffectManager)
|
||||||
|
@ -3162,10 +3161,8 @@ void Core::clearBuffers()
|
||||||
void Core::setupRenderPositionAndScale()
|
void Core::setupRenderPositionAndScale()
|
||||||
{
|
{
|
||||||
#ifdef BBGE_BUILD_OPENGL
|
#ifdef BBGE_BUILD_OPENGL
|
||||||
//glRotatef(cameraRot.z, 0, 0, 1);
|
|
||||||
glScalef(globalScale.x*globalResolutionScale.x*screenCapScale.x, globalScale.y*globalResolutionScale.y*screenCapScale.y, globalScale.z*globalResolutionScale.z);
|
glScalef(globalScale.x*globalResolutionScale.x*screenCapScale.x, globalScale.y*globalResolutionScale.y*screenCapScale.y, globalScale.z*globalResolutionScale.z);
|
||||||
glTranslatef(-(cameraPos.x+cameraOffset.x), -(cameraPos.y+cameraOffset.y), -(cameraPos.z+cameraOffset.z));
|
glTranslatef(-(cameraPos.x+cameraOffset.x), -(cameraPos.y+cameraOffset.y), -(cameraPos.z+cameraOffset.z));
|
||||||
//glRotatef(180, 0, 1, 0);
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1133,7 +1133,7 @@ public:
|
||||||
|
|
||||||
virtual void onPlayedVoice(const std::string &name){}
|
virtual void onPlayedVoice(const std::string &name){}
|
||||||
|
|
||||||
InterpolatedVector cameraPos, cameraRot;
|
InterpolatedVector cameraPos;
|
||||||
|
|
||||||
int fps;
|
int fps;
|
||||||
bool loopDone;
|
bool loopDone;
|
||||||
|
|
Loading…
Reference in a new issue