Saturday, February 28, 2015

Moving Objects and Sprite Manager - Part 9

This is part 9 of the series. You are suggested to read the whole series from the beginning. You may find the whole series in the Featured page.


A sprite in a scrolling background



Compile and Run

You will need Scroller.java, Sprite.java, ShipSprite.java and space_shooter_pack.zip Place everything in the same folder and type:
javac *.java
java Scroller


You may download the file space_shooter_pack.zip at opengameart.org.

The Java source file are listed below.

Scroller.java



ShipSprite.java



Sprite.java

This is the same as the file Sprite.java in "Moving Objects and Sprite Manager Part 6".

1 comment:

  1. ‘남한 유일의 우리카지노 철광’이라는 강원도 정선 예미산의 내부로 들어온 것이다. 이곳에서 12도 내리막 경사의 굴을 전기카트를 타고 780m 가량 이동했다. 목적지는 지하 1km에 위치한 거대 실험실, ‘예미랩’이다.

    ReplyDelete