Downloads containing BLGbiomes.j2as

Downloads
Name Author Game Mode Rating
TSF with JJ2+ Only: BioMess Rysice Battle N/A Download file

File preview

  1. const bool MLLESetupSuccessful = MLLE::Setup(array<MLLEWeaponApply@> = {null, ArcaneWeapons::MeteorGun::Weapon(), null, null, null, null, null, null, null}); ///@MLLE-Generated
  2. #include "MLLE-Include-1.5w.asc" ///@MLLE-Generated
  3. #pragma require "BLGbiomes-MLLE-Data-1.j2l" ///@MLLE-Generated
  4. #pragma require "BLGbiomes.j2l" ///@MLLE-Generated
  5. #include "ArcaneWeapon2.asc" ///@MLLE-Generated
  6. #pragma require "ArcaneWeapon2.asc" ///@MLLE-Generated
  7.  
  8. void onMain() {
  9.         MLLE::WeaponHook.processMain();
  10. }
  11.  
  12. void onDrawLayer3(jjPLAYER@ play, jjCANVAS@ canvas) {
  13.         drawEyes(canvas,5*32 + 18,9*32 + 23,int(play.xPos),int(play.yPos),3,2);
  14.         drawEyes(canvas,5*32 + 12,9*32 + 24,int(play.xPos),int(play.yPos),4,3);
  15.         drawEyes(canvas,2*32 + 12,8*32 + 23,int(play.xPos),int(play.yPos),3,2);
  16.         drawEyes(canvas,2*32 + 18,8*32 + 24,int(play.xPos),int(play.yPos),4,3);
  17. }
  18.  
  19. bool onDrawAmmo(jjPLAYER@ player, jjCANVAS@ canvas) {
  20.         return MLLE::WeaponHook.drawAmmo(player, canvas);
  21. }
  22. const float PI = 3.1415927f;
  23. void drawEyes(jjCANVAS@ canvas,int x,int y,int targetX, int targetY,int maxX,int maxY) {
  24.         int angle = int(atan2(targetY - y, targetX - x) * (512 / PI));
  25.         canvas.drawRectangle(int(x + (jjCos(angle) * maxX)),int(y + (jjSin(angle) * maxY)),2,2,0);
  26. }