-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStore.java
More file actions
59 lines (36 loc) · 1.14 KB
/
Copy pathStore.java
File metadata and controls
59 lines (36 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package com.smiths;
import org.andengine.engine.Engine;
import org.andengine.entity.scene.Scene;
import org.andengine.entity.scene.background.SpriteBackground;
import org.andengine.entity.sprite.Sprite;
import org.andengine.opengl.texture.region.ITextureRegion;
import org.andengine.opengl.vbo.VertexBufferObjectManager;
public class Store
{
Inventory inventory;
Engine engine;
private Sprite Backgroundsprite;
private VertexBufferObjectManager VBO;
float scrw;
float scrh;
private SpriteBackground bg;
private ITextureRegion StoreTex;
private Scene storeScene;
public Store(Inventory i, Engine e, ITextureRegion storetex, float screenwidth, float screenheight, VertexBufferObjectManager vbo){
inventory = i;
engine = e;
StoreTex = storetex;
scrw=screenwidth;
scrh=screenheight;
VBO = vbo;
}
public void LoadStore(){
storeScene = new Scene();
// scene.setChildScene(storeScene)
this.engine.setScene(storeScene);
this.Backgroundsprite = new Sprite(0, 0, scrw,
scrh, this.StoreTex, this.VBO);
this.bg = new SpriteBackground(Backgroundsprite);
storeScene.setBackground(this.bg);
}
}