Downloads containing OneFroggyEveningCTF.j2as

Downloads
Name Author Game Mode Rating
JJ2+ Only: One Froggy Evening Violet CLM Custom / Concept N/A Download file

File preview

  1. #include "OneFroggyEvening.j2as"
  2. #pragma require "OneFroggyEvening.j2as"
  3.  
  4. void onLevelBegin() {
  5.         jjANIMATION@ eva = jjAnimations[jjAnimSets[ANIM::EVA] + 1];
  6.         jjAnimations[jjAnimSets[ANIM::FLAG] + 5] = eva; //use jazz-kissing eva at ctf bases
  7.         for (uint i = 0; i < eva.frameCount; ++i) { //flip sprites
  8.                 jjPIXELMAP oldEva(jjAnimFrames[eva + i]);
  9.                 jjPIXELMAP newEva(oldEva.width, oldEva.height);
  10.                 for (uint x = 0; x < newEva.width; ++x)
  11.                         for (uint y = 0; y < newEva.height; ++y)
  12.                                 newEva[x,y] = oldEva[newEva.width - 1 - x,y];
  13.                 newEva.save(jjAnimFrames[eva + i]);
  14.         }
  15.         eva.firstFrame = jjAnimations[jjAnimSets[ANIM::FONT]].firstFrame; //hide eva as drawn by original j2as
  16. }