Co-authored-by: r3cp3ct <45179536+r3cp3ct@users.noreply.github.com> Co-authored-by: sigonasr2 <sigonasr2@gmail.com>main
parent
1a042429ce
commit
5a5eb5f2fb
After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 8.7 KiB |
After Width: | Height: | Size: 8.0 KiB |
Binary file not shown.
@ -0,0 +1,18 @@ |
||||
package sig.engine; |
||||
|
||||
import java.io.File; |
||||
|
||||
public class Background extends Sprite{ |
||||
|
||||
public static Sprite BACKGROUND_1 = new Background(0.02,new File(new File("..","backgrounds"),"back1.gif")); |
||||
public static Sprite BACKGROUND_2 = new Background(0.02,new File(new File("..","backgrounds"),"back2.gif")); |
||||
public static Sprite BACKGROUND_3 = new Background(0.05,new File(new File("..","backgrounds"),"back3.gif")); |
||||
|
||||
double scrollAmt; //How many pixels to scroll the background per pixel of offset provided.
|
||||
|
||||
Background(double scrollAmt,File filename) { |
||||
super(filename); |
||||
this.scrollAmt=scrollAmt; |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue