Guest User

lava1.cpp

a guest
Oct 30th, 2017
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.63 KB | None | 0 0
  1. #include "lava.cpp"
  2.  
  3. const uint COLOUR = 0xA0731008;
  4. const uint BOTTOMCOLOUR = 0xA0FFA000;
  5. const float Y = 240.0;
  6. const float AMPLITUDE = 24.0;
  7. const float WAVELENGTH = 480.0;
  8. const float RECTWIDTH = 12.0;
  9. const float YSPEED = 1.2;
  10. const float XOFFSET = 0.0;
  11. const float XSPEED = 20.0;
  12.  
  13. class script{
  14.    
  15.     Lava lava(COLOUR, BOTTOMCOLOUR, Y, AMPLITUDE, WAVELENGTH, RECTWIDTH, YSPEED, XOFFSET, XSPEED);
  16.    
  17.     void step(int entities){
  18.         lava.step();
  19.     }
  20.    
  21.     void checkpoint_load(){
  22.         lava.checkpoint_load();
  23.     }
  24.    
  25.     void checkpoint_save(){
  26.         lava.checkpoint_save();
  27.     }
  28.    
  29.     void draw(float sub_frame){
  30.         lava.draw(sub_frame);
  31.     }
  32. }
Add Comment
Please, Sign In to add comment