Compare commits

..

No commits in common. "d2e0901df62a7443cceaf2d7a9d82296abc37deb" and "711c27d0d0b36dfb1707fd1bd9dcd505e7409858" have entirely different histories.

7 changed files with 21 additions and 84 deletions

Binary file not shown.

View File

@ -1,11 +0,0 @@
#BlueJ class context
comment0.target=Render
comment0.text=\r\n\ Klasse\ render.\r\n\ \ \r\n\ @author\ \r\n
comment1.params=game
comment1.target=Render(Game)
comment1.text=---------------Konstruktor---
comment2.params=x\ y\ r\ g\ b
comment2.target=void\ drawGhost(int,\ int,\ int,\ int,\ int)
comment3.params=x\ y\ open
comment3.target=void\ drawPacman(int,\ int,\ boolean)
numComments=4

View File

@ -1,32 +0,0 @@
/**
* Klasse render.
*
* @author
*/
public class Render {
/*---------------Attribute-----*/
Game game;
/*---------------Konstruktor---*/
public Render(Game game) {
this.game = game;
}
public void drawGhost(int x, int y, int r, int g, int b){
}
public void drawPacman(int x, int y, boolean open){
game.fill(255,255,0);
if(open){
}else{
game.circle(x, y, game.cellSize*0.8f);
}
}
}

Binary file not shown.

View File

@ -6,18 +6,16 @@ comment1.text=---------------Konstruktor---
comment2.params= comment2.params=
comment2.target=void\ settings() comment2.target=void\ settings()
comment2.text=---------------Methoden------ comment2.text=---------------Methoden------
comment3.params= comment3.params=x\ y\ b\ h\ HALF_PI\ PI
comment3.target=void\ draw() comment3.target=void\ _arc(float,\ float,\ float,\ float,\ float,\ float)
comment4.params=x\ y\ b\ h\ HALF_PI\ PI comment4.params=r\ g\ b
comment4.target=void\ _arc(float,\ float,\ float,\ float,\ float,\ float) comment4.target=void\ _fill(int,\ int,\ int)
comment5.params=r\ g\ b comment5.params=b
comment5.target=void\ _fill(int,\ int,\ int) comment5.target=void\ _fill(int)
comment6.params=b comment6.params=x\ y\ b\ h
comment6.target=void\ _fill(int) comment6.target=void\ _rect(float,\ float,\ float,\ float)
comment7.params=x\ y\ b\ h comment7.params=x\ y\ b\ h
comment7.target=void\ _rect(float,\ float,\ float,\ float) comment7.target=void\ _ellipse(float,\ float,\ float,\ float)
comment8.params=x\ y\ b\ h comment8.params=x
comment8.target=void\ _ellipse(float,\ float,\ float,\ float) comment8.target=float\ _random(float)
comment9.params=x numComments=9
comment9.target=float\ _random(float)
numComments=10

View File

@ -8,12 +8,11 @@ import processing.core.PApplet;
public class Game extends PApplet{ public class Game extends PApplet{
/*---------------Attribute-----*/ /*---------------Attribute-----*/
int cellSize = 40; int cellSize = 40;
Render render;
/*---------------Konstruktor---*/ /*---------------Konstruktor---*/
public Game() { public Game() {
String[] processingArgs = {"MySketch"}; String[] processingArgs = {"MySketch"};
PApplet.runSketch(processingArgs, this); PApplet.runSketch(processingArgs, this);
render = new Render(this);
} }
/*---------------Methoden------*/ /*---------------Methoden------*/

View File

@ -1,23 +1,20 @@
#BlueJ package file #BlueJ package file
dependency1.from=render editor.fx.0.height=0
dependency1.to=Game editor.fx.0.width=0
dependency1.type=UsesDependency editor.fx.0.x=0
editor.fx.0.height=739 editor.fx.0.y=0
editor.fx.0.width=816
editor.fx.0.x=552
editor.fx.0.y=98
objectbench.height=93 objectbench.height=93
objectbench.width=760 objectbench.width=760
package.divider.horizontal=0.6 package.divider.horizontal=0.6
package.divider.vertical=0.8 package.divider.vertical=0.8
package.editor.height=393 package.editor.height=393
package.editor.width=649 package.editor.width=649
package.editor.x=41 package.editor.x=208
package.editor.y=220 package.editor.y=208
package.frame.height=600 package.frame.height=600
package.frame.width=800 package.frame.width=800
package.numDependencies=1 package.numDependencies=0
package.numTargets=2 package.numTargets=0
package.showExtends=true package.showExtends=true
package.showUses=true package.showUses=true
project.charset=UTF-8 project.charset=UTF-8
@ -26,17 +23,3 @@ readme.name=@README
readme.width=49 readme.width=49
readme.x=10 readme.x=10
readme.y=10 readme.y=10
target1.height=70
target1.name=Game
target1.showInterface=false
target1.type=ClassTarget
target1.width=120
target1.x=290
target1.y=40
target2.height=70
target2.name=render
target2.showInterface=false
target2.type=ClassTarget
target2.width=120
target2.x=100
target2.y=200