Remove stray #pragma once lines, update PGE emscripten build so it handles mouse scrolling proper. Add emscripten run script. Build 3146.

This commit is contained in:
2023-11-27 00:01:19 -06:00
parent 3f9543d93b
commit cfd5586d63
16 changed files with 16 additions and 19 deletions
+4 -2
View File
@@ -1110,7 +1110,7 @@ void Crawler::RenderWorld(float fElapsedTime){
if(dn->lifeTime<=1){
if(dn->lifeTime<DamageNumber::MOVE_UP_TIME){
if(dn->invertedDirection){
dn->pos.y+=20*fElapsedTime;
dn->pos.y+=40*fElapsedTime;
}else{
dn->pos.y-=20*fElapsedTime;
}
@@ -2129,7 +2129,9 @@ void Crawler::SetLoadoutItem(int slot,std::string itemName){
switch(slot){
case 0:{
itemAbility.action=[&](Player*p,vf2d pos={}){
return game->UseLoadoutItem(0);
bool itemUsed=game->UseLoadoutItem(0);
return itemUsed;
};
game->GetPlayer()->SetItem1UseFunc(itemAbility);
}break;