Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 234924
Collapse All | Expand All

(-)atomorun2008-1.0-O/resources/heightmaps/heightmap1b.txt (-3 / +3 lines)
Lines 1-4 Link Here
1
resources/heightmaps/heightmap1b.png 2.1 3.0 0.08
1
/usr/share/games/atomorun2008/resources/heightmaps/heightmap1b.png 2.1 3.0 0.08
2
resources/heightmaps/alphamap1b.png resources/textures/grass.png resources/textures/grass.png resources/textures/stone.png
2
/usr/share/games/atomorun2008/resources/heightmaps/alphamap1b.png /usr/share/games/atomorun2008/resources/textures/grass.png /usr/share/games/atomorun2008/resources/textures/grass.png /usr/share/games/atomorun2008/resources/textures/stone.png
3
200.0 100.0 100.0
3
200.0 100.0 100.0
4
resources/meshes/tree.zms 0.15
4
/usr/share/games/atomorun2008/resources/meshes/tree.zms 0.15
(-)atomorun2008-1.0-O/resources/heightmaps/heightmap1.txt (-3 / +3 lines)
Lines 1-4 Link Here
1
resources/heightmaps/heightmap1.png 2.1 3.0 0.08
1
/usr/share/games/atomorun2008/resources/heightmaps/heightmap1.png 2.1 3.0 0.08
2
resources/heightmaps/alphamap1.png resources/textures/grass.png resources/textures/grass.png resources/textures/stone.png
2
/usr/share/games/atomorun2008/resources/heightmaps/alphamap1.png /usr/share/games/atomorun2008/resources/textures/grass.png /usr/share/games/atomorun2008/resources/textures/grass.png /usr/share/games/atomorun2008/resources/textures/stone.png
3
200.0 100.0 100.0
3
200.0 100.0 100.0
4
resources/meshes/tree.zms 0.15
4
/usr/share/games/atomorun2008/resources/meshes/tree.zms 0.15
(-)atomorun2008-1.0-O/resources/heightmaps/heightmap2b.txt (-3 / +3 lines)
Lines 1-4 Link Here
1
resources/heightmaps/heightmap2b.png 2.1 3.0 0.08
1
/usr/share/games/atomorun2008/resources/heightmaps/heightmap2b.png 2.1 3.0 0.08
2
resources/heightmaps/alphamap2b.png resources/textures/stone4.png resources/textures/grass.png resources/textures/stone4.png
2
/usr/share/games/atomorun2008/resources/heightmaps/alphamap2b.png /usr/share/games/atomorun2008/resources/textures/stone4.png /usr/share/games/atomorun2008/resources/textures/grass.png /usr/share/games/atomorun2008/resources/textures/stone4.png
3
140.0 30.0 100.0
3
140.0 30.0 100.0
4
resources/meshes/tree.zms 0.15
4
/usr/share/games/atomorun2008/resources/meshes/tree.zms 0.15
(-)atomorun2008-1.0-O/resources/heightmaps/heightmap2.txt (-3 / +3 lines)
Lines 1-4 Link Here
1
resources/heightmaps/heightmap2.png 2.1 3.0 0.08
1
/usr/share/games/atomorun2008/resources/heightmaps/heightmap2.png 2.1 3.0 0.08
2
resources/heightmaps/alphamap2.png resources/textures/stone4.png resources/textures/grass.png resources/textures/stone4.png
2
/usr/share/games/atomorun2008/resources/heightmaps/alphamap2.png /usr/share/games/atomorun2008/resources/textures/stone4.png /usr/share/games/atomorun2008/resources/textures/grass.png /usr/share/games/atomorun2008/resources/textures/stone4.png
3
140.0 30.0 100.0
3
140.0 30.0 100.0
4
resources/meshes/tree.zms 0.15
4
/usr/share/games/atomorun2008/resources/meshes/tree.zms 0.15
(-)atomorun2008-1.0-O/resources/heightmaps/heightmap3b.txt (-3 / +3 lines)
Lines 1-4 Link Here
1
resources/heightmaps/heightmap3b.png 2.1 3.0 0.1
1
/usr/share/games/atomorun2008/resources/heightmaps/heightmap3b.png 2.1 3.0 0.1
2
resources/heightmaps/alphamap3b.png resources/textures/snow.png resources/textures/grass2.png resources/textures/sand.png
2
/usr/share/games/atomorun2008/resources/heightmaps/alphamap3b.png /usr/share/games/atomorun2008/resources/textures/snow.png /usr/share/games/atomorun2008/resources/textures/grass2.png /usr/share/games/atomorun2008/resources/textures/sand.png
3
100.0 100.0 100.0
3
100.0 100.0 100.0
4
resources/meshes/tree.zms 0.08
4
/usr/share/games/atomorun2008/resources/meshes/tree.zms 0.08
(-)atomorun2008-1.0-O/resources/heightmaps/heightmap3.txt (-3 / +3 lines)
Lines 1-4 Link Here
1
resources/heightmaps/heightmap3.png 2.1 3.0 0.1		
1
/usr/share/games/atomorun2008/resources/heightmaps/heightmap3.png 2.1 3.0 0.1		
2
resources/heightmaps/alphamap3.png resources/textures/snow.png resources/textures/grass2.png resources/textures/sand2.png
2
/usr/share/games/atomorun2008/resources/heightmaps/alphamap3.png /usr/share/games/atomorun2008/resources/textures/snow.png /usr/share/games/atomorun2008/resources/textures/grass2.png /usr/share/games/atomorun2008/resources/textures/sand2.png
3
110.0 100.0 100.0
3
110.0 100.0 100.0
4
resources/meshes/tree.zms 0.08
4
/usr/share/games/atomorun2008/resources/meshes/tree.zms 0.08
(-)atomorun2008-1.0-O/resources/heightmaps/heightmapSpecial.txt (-3 / +3 lines)
Lines 1-4 Link Here
1
resources/heightmaps/heightmapSpecial.png 2.9 3.0 0.08
1
/usr/share/games/atomorun2008/resources/heightmaps/heightmapSpecial.png 2.9 3.0 0.08
2
resources/heightmaps/alphamapSpecial.png resources/textures/sand.png resources/textures/grass.png resources/textures/stone.png
2
/usr/share/games/atomorun2008/resources/heightmaps/alphamapSpecial.png /usr/share/games/atomorun2008/resources/textures/sand.png /usr/share/games/atomorun2008/resources/textures/grass.png /usr/share/games/atomorun2008/resources/textures/stone.png
3
200.0 100.0 100.0
3
200.0 100.0 100.0
4
resources/meshes/tree.zms 0.3
4
/usr/share/games/atomorun2008/resources/meshes/tree.zms 0.3
(-)atomorun2008-1.0-O/resources/heightmaps/start.txt (-3 / +3 lines)
Lines 1-4 Link Here
1
resources/heightmaps/start.png 3.0 3.0 0.2
1
/usr/share/games/atomorun2008/resources/heightmaps/start.png 3.0 3.0 0.2
2
resources/heightmaps/startalphamap.png resources/textures/sand.png resources/textures/grass.png resources/textures/stone.png
2
/usr/share/games/atomorun2008/resources/heightmaps/startalphamap.png /usr/share/games/atomorun2008/resources/textures/sand.png /usr/share/games/atomorun2008/resources/textures/grass.png /usr/share/games/atomorun2008/resources/textures/stone.png
3
10.0 10.0 10.0
3
10.0 10.0 10.0
4
resources/meshes/tree.zms 0.04f
4
/usr/share/games/atomorun2008/resources/meshes/tree.zms 0.04f
(-)atomorun2008-1.0-O/resources/lvls/lvl1b.txt (-2 / +2 lines)
Lines 1-3 Link Here
1
Die Beginner Schlucht
1
Die Beginner Schlucht
2
resources/heightmaps/heightmap1b.txt resources/textures/skys/bg1.png
2
/usr/share/games/atomorun2008/resources/heightmaps/heightmap1b.txt /usr/share/games/atomorun2008/resources/textures/skys/bg1.png
3
0.01
3
0.01
(-)atomorun2008-1.0-O/resources/lvls/lvl1.txt (-2 / +2 lines)
Lines 1-3 Link Here
1
Die Beginner Schlucht
1
Die Beginner Schlucht
2
resources/heightmaps/heightmap1.txt resources/textures/skys/bg1.png
2
/usr/share/games/atomorun2008/resources/heightmaps/heightmap1.txt /usr/share/games/atomorun2008/resources/textures/skys/bg1.png
3
0.006
3
0.006
(-)atomorun2008-1.0-O/resources/lvls/lvl2b.txt (-2 / +2 lines)
Lines 1-3 Link Here
1
Die Beginner Schlucht
1
Die Beginner Schlucht
2
resources/heightmaps/heightmap2b.txt resources/textures/skys/bg2.png
2
/usr/share/games/atomorun2008/resources/heightmaps/heightmap2b.txt /usr/share/games/atomorun2008/resources/textures/skys/bg2.png
3
0.01
3
0.01
(-)atomorun2008-1.0-O/resources/lvls/lvl2.txt (-2 / +2 lines)
Lines 1-3 Link Here
1
Die Beginner Schlucht
1
Die Beginner Schlucht
2
resources/heightmaps/heightmap2.txt resources/textures/skys/bg2.png
2
/usr/share/games/atomorun2008/resources/heightmaps/heightmap2.txt /usr/share/games/atomorun2008/resources/textures/skys/bg2.png
3
0.006
3
0.006
(-)atomorun2008-1.0-O/resources/lvls/lvl3b.txt (-2 / +2 lines)
Lines 1-3 Link Here
1
Die Beginner Schlucht
1
Die Beginner Schlucht
2
resources/heightmaps/heightmap3b.txt resources/textures/skys/bg3.png
2
/usr/share/games/atomorun2008/resources/heightmaps/heightmap3b.txt /usr/share/games/atomorun2008/resources/textures/skys/bg3.png
3
0.0065
3
0.0065
(-)atomorun2008-1.0-O/resources/lvls/lvl3.txt (-2 / +2 lines)
Lines 1-3 Link Here
1
Die Beginner Schlucht
1
Die Beginner Schlucht
2
resources/heightmaps/heightmap3.txt resources/textures/skys/bg3.png
2
/usr/share/games/atomorun2008/resources/heightmaps/heightmap3.txt /usr/share/games/atomorun2008/resources/textures/skys/bg3.png
3
0.004
3
0.004
(-)atomorun2008-1.0-O/resources/lvls/lvlSpecial.txt (-2 / +2 lines)
Lines 1-3 Link Here
1
Die Beginner Schlucht
1
Die Beginner Schlucht
2
resources/heightmaps/heightmapSpecial.txt resources/textures/skys/bg4.png
2
/usr/share/games/atomorun2008/resources/heightmaps/heightmapSpecial.txt /usr/share/games/atomorun2008/resources/textures/skys/bg4.png
3
0.004
3
0.004
(-)atomorun2008-1.0-O/resources/meshes/player.zms (-2 / +2 lines)
Lines 1-4 Link Here
1
1 236 368 1 resources/textures/player.png
1
1 236 368 1 /usr/share/games/atomorun2008/resources/textures/player.png
2
1.0000000 1.0000000 1.0000000 50.000000 0.5000000
2
1.0000000 1.0000000 1.0000000 50.000000 0.5000000
3
-0.087130 0.000000 -0.996185 -0.426591 -0.001810 1.378833 
3
-0.087130 0.000000 -0.996185 -0.426591 -0.001810 1.378833 
4
0.521409 0.761193 -0.385601 0.839694 1.548141 2.932071 
4
0.521409 0.761193 -0.385601 0.839694 1.548141 2.932071 
Lines 603-606 Link Here
603
1 0.096514 0.960192 -0.262136 4 227 0.333002 0.546875 215 0.582031 0.546875 226 0.582031 0.362488 234 0.411636 0.376480 
603
1 0.096514 0.960192 -0.262136 4 227 0.333002 0.546875 215 0.582031 0.546875 226 0.582031 0.362488 234 0.411636 0.376480 
604
1 0.138911 0.957516 0.252718 4 215 0.582031 0.546875 225 0.831061 0.546875 235 0.752426 0.376480 226 0.582031 0.362488 
604
1 0.138911 0.957516 0.252718 4 215 0.582031 0.546875 225 0.831061 0.546875 235 0.752426 0.376480 226 0.582031 0.362488 
605
1 -0.221843 0.948011 -0.228167 4 233 0.411636 0.717270 224 0.582031 0.731262 215 0.582031 0.546875 227 0.333002 0.546875 
605
1 -0.221843 0.948011 -0.228167 4 233 0.411636 0.717270 224 0.582031 0.731262 215 0.582031 0.546875 227 0.333002 0.546875 
606
1 -0.242874 0.935816 0.255461 4 224 0.582031 0.731262 232 0.752426 0.717270 225 0.831061 0.546875 215 0.582031 0.546875 
606
1 -0.242874 0.935816 0.255461 4 224 0.582031 0.731262 232 0.752426 0.717270 225 0.831061 0.546875 215 0.582031 0.546875 
(-)atomorun2008-1.0-O/resources/meshes/tree.zms (-2 / +2 lines)
Lines 1-4 Link Here
1
0 60 50 1 resources/textures/tree3.png
1
0 60 50 1 /usr/share/games/atomorun2008/resources/textures/tree3.png
2
0.573046 0.818415 0.042116 0.375114 0.537144 -0.996494 
2
0.573046 0.818415 0.042116 0.375114 0.537144 -0.996494 
3
0.955443 -0.292093 0.042116 0.625274 -0.189371 -0.996494 
3
0.955443 -0.292093 0.042116 0.625274 -0.189371 -0.996494 
4
0.017426 -0.998932 0.042116 0.011620 -0.651792 -0.996494 
4
0.017426 -0.998932 0.042116 0.011620 -0.651792 -0.996494 
Lines 108-111 Link Here
108
1 0.169799 0.364136 0.915737 3 50 0.214922 0.351324 58 0.400933 0.144056 59 0.590816 0.502449 
108
1 0.169799 0.364136 0.915737 3 50 0.214922 0.351324 58 0.400933 0.144056 59 0.590816 0.502449 
109
1 0.364121 0.169792 0.915744 3 50 0.214922 0.351324 59 0.590816 0.502449 51 0.205659 0.629667 
109
1 0.364121 0.169792 0.915744 3 50 0.214922 0.351324 59 0.590816 0.502449 51 0.205659 0.629667 
110
1 0.387311 -0.103780 0.916090 3 51 0.205659 0.629667 59 0.590816 0.502449 52 0.377479 0.848843 
110
1 0.387311 -0.103780 0.916090 3 51 0.205659 0.629667 59 0.590816 0.502449 52 0.377479 0.848843 
111
1 0.229308 -0.327486 0.916608 3 52 0.377479 0.848843 59 0.590816 0.502449 53 0.649984 0.906299 
111
1 0.229308 -0.327486 0.916608 3 52 0.377479 0.848843 59 0.590816 0.502449 53 0.649984 0.906299 
(-)atomorun2008-1.0-O/resources/meshes/zweisteinexporter.py (-1 / +1 lines)
Lines 52-58 Link Here
52
			uvfile	 = str(myMesh.faces[o].image).split(None,1)[-1][1:-2]
52
			uvfile	 = str(myMesh.faces[o].image).split(None,1)[-1][1:-2]
53
			if (uvfile != "o"):
53
			if (uvfile != "o"):
54
				if (uvfile != ""):
54
				if (uvfile != ""):
55
					uvfilefinal = "resources/textures/" + uvfile;	
55
					uvfilefinal = "/usr/share/games/atomorun2008/resources/textures/" + uvfile;	
56
		
56
		
57
	file.write("%i %i %i %i %s" % (hasMaterials, anzahlverts, anzahlfaces, hasUV, uvfilefinal))
57
	file.write("%i %i %i %i %s" % (hasMaterials, anzahlverts, anzahlfaces, hasUV, uvfilefinal))
58
		
58
		
(-)atomorun2008-1.0-O/src/application.d (-9 / +21 lines)
Lines 24-29 Link Here
24
24
25
import std.stdio;
25
import std.stdio;
26
import std.stream;
26
import std.stream;
27
import std.c.stdlib;
28
import std.string;
27
29
28
class Application : Task, ActionListener {
30
class Application : Task, ActionListener {
29
public:
31
public:
Lines 137-167 Link Here
137
            default: break;
139
            default: break;
138
        };
140
        };
139
    };
141
    };
142
143
  static const char[] PREF_FILE = ".atomorun2008/savegame";
144
145
public char[] pref_file() {
146
    char * home = getenv("HOME");
147
    if (home is null)
148
      throw new Error("HOME environment variable is not defined");
149
    return std.string.toString(home) ~ "/" ~ PREF_FILE;
150
    }
151
140
152
141
private:
153
private:
142
    void addPrize(int p) {
154
    void addPrize(int p) {
143
        File savegame = new File();
155
        File savegame = new File();
144
        savegame.open("resources/savegame", FileMode.In);
156
        savegame.open(pref_file(), FileMode.In);
145
        int[]   savegameData;
157
        int[]   savegameData;
146
        while (!savegame.eof) {
158
        while (!savegame.eof) {
147
            savegameData ~= 0;
159
            savegameData ~= 0;
148
            savegame.readf(&savegameData[length-1]);
160
            savegame.readf(&savegameData[length-1]);
149
        };
161
        };
150
        savegame.close();
162
        savegame.close();
151
        savegame.open("resources/savegame", FileMode.Out);
163
        savegame.open(pref_file(), FileMode.Out);
152
        if (p>savegameData[0] && attribute == "resources/lvls/lvl1.txt") savegame.writef(p, " ");
164
        if (p>savegameData[0] && attribute == "/usr/share/games/atomorun2008/resources/lvls/lvl1.txt") savegame.writef(p, " ");
153
            else savegame.writef(savegameData[0], " ");
165
            else savegame.writef(savegameData[0], " ");
154
        if (p>savegameData[1] && attribute == "resources/lvls/lvl2.txt") savegame.writef(p, " ");
166
        if (p>savegameData[1] && attribute == "/usr/share/games/atomorun2008/resources/lvls/lvl2.txt") savegame.writef(p, " ");
155
            else savegame.writef(savegameData[1], " ");
167
            else savegame.writef(savegameData[1], " ");
156
        if (p>savegameData[2] && attribute == "resources/lvls/lvl3.txt") savegame.writef(p, " ");
168
        if (p>savegameData[2] && attribute == "/usr/share/games/atomorun2008/resources/lvls/lvl3.txt") savegame.writef(p, " ");
157
            else savegame.writef(savegameData[2], " ");
169
            else savegame.writef(savegameData[2], " ");
158
		if (p>savegameData[3] && attribute == "resources/lvls/lvlSpecial.txt") savegame.writef(p, " ");
170
		if (p>savegameData[3] && attribute == "/usr/share/games/atomorun2008/resources/lvls/lvlSpecial.txt") savegame.writef(p, " ");
159
            else savegame.writef(savegameData[3], " ");
171
            else savegame.writef(savegameData[3], " ");
160
        if (p>savegameData[4] && attribute == "resources/lvls/lvl1b.txt") savegame.writef(p, " ");
172
        if (p>savegameData[4] && attribute == "/usr/share/games/atomorun2008/resources/lvls/lvl1b.txt") savegame.writef(p, " ");
161
            else savegame.writef(savegameData[4], " ");
173
            else savegame.writef(savegameData[4], " ");
162
        if (p>savegameData[5] && attribute == "resources/lvls/lvl2b.txt") savegame.writef(p, " ");
174
        if (p>savegameData[5] && attribute == "/usr/share/games/atomorun2008/resources/lvls/lvl2b.txt") savegame.writef(p, " ");
163
            else savegame.writef(savegameData[5], " ");
175
            else savegame.writef(savegameData[5], " ");
164
        if (p>savegameData[6] && attribute == "resources/lvls/lvl3b.txt") savegame.writef(p, " ");
176
        if (p>savegameData[6] && attribute == "/usr/share/games/atomorun2008/resources/lvls/lvl3b.txt") savegame.writef(p, " ");
165
            else savegame.writef(savegameData[6], " ");
177
            else savegame.writef(savegameData[6], " ");
166
        savegame.close();
178
        savegame.close();
167
    };
179
    };
(-)atomorun2008-1.0-O/src/dengine.d (-2 / +2 lines)
Lines 12-18 Link Here
12
12
13
class DEngine : Task {
13
class DEngine : Task {
14
    void init()     {
14
    void init()     {
15
        Config.load("resources/config.cfg");
15
        Config.load("/etc/games/atomorun2008/config.cfg");
16
16
17
        myTasks ~= Window.getInstance();
17
        myTasks ~= Window.getInstance();
18
        myTasks ~= Input.getInstance();
18
        myTasks ~= Input.getInstance();
Lines 37-40 Link Here
37
37
38
private:
38
private:
39
    Task[]  myTasks;
39
    Task[]  myTasks;
40
};
40
};
(-)atomorun2008-1.0-O/src/fontwriter.d (-4 / +4 lines)
Lines 20-29 Link Here
20
class FontWriter : Unit {
20
class FontWriter : Unit {
21
    mixin Singleton;
21
    mixin Singleton;
22
    override void init() {
22
    override void init() {
23
        myFonts ~= cast(TextureFont)ResourceManager.getInstance().need(TextureFont.classinfo, "resources/fonts/nfont_12auf256.png");
23
        myFonts ~= cast(TextureFont)ResourceManager.getInstance().need(TextureFont.classinfo, "/usr/share/games/atomorun2008/resources/fonts/nfont_12auf256.png");
24
        myFonts ~= cast(TextureFont)ResourceManager.getInstance().need(TextureFont.classinfo, "resources/fonts/nfont_14auf256.png");
24
        myFonts ~= cast(TextureFont)ResourceManager.getInstance().need(TextureFont.classinfo, "/usr/share/games/atomorun2008/resources/fonts/nfont_14auf256.png");
25
        myFonts ~= cast(TextureFont)ResourceManager.getInstance().need(TextureFont.classinfo, "resources/fonts/nfont_18auf512.png");
25
        myFonts ~= cast(TextureFont)ResourceManager.getInstance().need(TextureFont.classinfo, "/usr/share/games/atomorun2008/resources/fonts/nfont_18auf512.png");
26
        myFonts ~= cast(TextureFont)ResourceManager.getInstance().need(TextureFont.classinfo, "resources/fonts/nfont_24auf512.png");
26
        myFonts ~= cast(TextureFont)ResourceManager.getInstance().need(TextureFont.classinfo, "/usr/share/games/atomorun2008/resources/fonts/nfont_24auf512.png");
27
        use(myFonts[length-1]);
27
        use(myFonts[length-1]);
28
    };
28
    };
29
    override void uninit() {
29
    override void uninit() {
(-)atomorun2008-1.0-O/src/game.d (-2 / +2 lines)
Lines 58-66 Link Here
58
        myBackgroundTexture = cast(Texture2D)ResourceManager.getInstance.need(Texture2D.classinfo, myBackgroundFile);
58
        myBackgroundTexture = cast(Texture2D)ResourceManager.getInstance.need(Texture2D.classinfo, myBackgroundFile);
59
        mySceneManager.addItem(myBackgroundTexture);
59
        mySceneManager.addItem(myBackgroundTexture);
60
60
61
        myExplosionTexture	= cast(Texture2D)ResourceManager.getInstance.need(Texture2D.classinfo, "resources/textures/explosion.png");
61
        myExplosionTexture	= cast(Texture2D)ResourceManager.getInstance.need(Texture2D.classinfo, "/usr/share/games/atomorun2008/resources/textures/explosion.png");
62
62
63
		myExplosionSound	= cast(Sound)ResourceManager.getInstance.need(Sound.classinfo, "resources/sounds/explosion.wav");
63
		myExplosionSound	= cast(Sound)ResourceManager.getInstance.need(Sound.classinfo, "/usr/share/games/atomorun2008/resources/sounds/explosion.wav");
64
		Mix_PlayChannel(-1, myExplosionSound.sound, 0);
64
		Mix_PlayChannel(-1, myExplosionSound.sound, 0);
65
65
66
        myPlayer = new Player();
66
        myPlayer = new Player();
(-)atomorun2008-1.0-O/src/heightmap.d (-1 / +1 lines)
Lines 83-89 Link Here
83
83
84
		if (ARBMultitexture.isEnabled() && ARBShaderObjects.isEnabled()) {
84
		if (ARBMultitexture.isEnabled() && ARBShaderObjects.isEnabled()) {
85
			myShader    =   new HLSLShader;
85
			myShader    =   new HLSLShader;
86
			myShader.load("resources/shaders/vertexshader_terrain.fx", "resources/shaders/fragmentshader_terrain.fx");
86
			myShader.load("/usr/share/games/atomorun2008/resources/shaders/vertexshader_terrain.fx", "/usr/share/games/atomorun2008/resources/shaders/fragmentshader_terrain.fx");
87
		};
87
		};
88
88
89
        myTexture0 = cast(Texture2D)ResourceManager.getInstance.need(Texture2D.classinfo, alphamapFilename);
89
        myTexture0 = cast(Texture2D)ResourceManager.getInstance.need(Texture2D.classinfo, alphamapFilename);
(-)atomorun2008-1.0-O/src/image.d (-1 / +1 lines)
Lines 57-63 Link Here
57
        };
57
        };
58
    };
58
    };
59
    override void loadDefault() {
59
    override void loadDefault() {
60
        loadSpecific("resources/textures/standardpic.png");
60
        loadSpecific("/usr/share/games/atomorun2008/resources/textures/standardpic.png");
61
    };
61
    };
62
62
63
    int width()     { return myWidth; };
63
    int width()     { return myWidth; };
(-)atomorun2008-1.0-O/src/loader.d (-1 / +1 lines)
Lines 29-35 Link Here
29
        Loader.getInstance.uninit();
29
        Loader.getInstance.uninit();
30
    };
30
    };
31
    void init() {
31
    void init() {
32
			myTexture = cast(Texture2D)ResourceManager.getInstance.need(Texture2D.classinfo, "resources/textures/loading.png");
32
			myTexture = cast(Texture2D)ResourceManager.getInstance.need(Texture2D.classinfo, "/usr/share/games/atomorun2008/resources/textures/loading.png");
33
    	};
33
    	};
34
    void refresh() {
34
    void refresh() {
35
        glBindTexture(GL_TEXTURE_2D, myTexture.texture);
35
        glBindTexture(GL_TEXTURE_2D, myTexture.texture);
(-)atomorun2008-1.0-O/src/menuecopyright.d (-3 / +3 lines)
Lines 20-34 Link Here
20
        myButtons.length = 3;
20
        myButtons.length = 3;
21
21
22
        myButtons[0]    =   new Button;
22
        myButtons[0]    =   new Button;
23
        myButtons[0].init(Point2D(Config["window_width"]-250, 220), Point2D(256,37),".start game", "resources/sounds/menue_click.wav", "resources/sounds/menue_over.wav");
23
        myButtons[0].init(Point2D(Config["window_width"]-250, 220), Point2D(256,37),".start game", "/usr/share/games/atomorun2008/resources/sounds/menue_click.wav", "/usr/share/games/atomorun2008/resources/sounds/menue_over.wav");
24
        myButtons[0].addActionListener(theMenue, "Menue", "LVL");
24
        myButtons[0].addActionListener(theMenue, "Menue", "LVL");
25
25
26
        myButtons[1]    =   new Button;
26
        myButtons[1]    =   new Button;
27
        myButtons[1].init(Point2D(Config["window_width"]-250, 170), Point2D(256,37),".copyrights", "resources/sounds/menue_click.wav", "resources/sounds/menue_over.wav");
27
        myButtons[1].init(Point2D(Config["window_width"]-250, 170), Point2D(256,37),".copyrights", "/usr/share/games/atomorun2008/resources/sounds/menue_click.wav", "/usr/share/games/atomorun2008/resources/sounds/menue_over.wav");
28
        myButtons[1].addActionListener(theMenue, "Menue", "Copyright");
28
        myButtons[1].addActionListener(theMenue, "Menue", "Copyright");
29
29
30
        myButtons[2]    =   new Button;
30
        myButtons[2]    =   new Button;
31
        myButtons[2].init(Point2D(Config["window_width"]-250, 120), Point2D(256,37),".quit game", "resources/sounds/menue_click.wav", "resources/sounds/menue_over.wav");
31
        myButtons[2].init(Point2D(Config["window_width"]-250, 120), Point2D(256,37),".quit game", "/usr/share/games/atomorun2008/resources/sounds/menue_click.wav", "/usr/share/games/atomorun2008/resources/sounds/menue_over.wav");
32
        myButtons[2].addActionListener(theMenue, "Menue", "Quit");
32
        myButtons[2].addActionListener(theMenue, "Menue", "Quit");
33
    };
33
    };
34
34
(-)atomorun2008-1.0-O/src/menue.d (-4 / +4 lines)
Lines 33-42 Link Here
33
33
34
class Menue : ActionListener {
34
class Menue : ActionListener {
35
    void init(APP_STATE theState) {
35
    void init(APP_STATE theState) {
36
        myHeightmap 	= cast(Heightmap)ResourceManager.getInstance.need(Heightmap.classinfo, "resources/heightmaps/start.txt");
36
        myHeightmap 	= cast(Heightmap)ResourceManager.getInstance.need(Heightmap.classinfo, "/usr/share/games/atomorun2008/resources/heightmaps/start.txt");
37
        myTexture   	= cast(Texture2D)ResourceManager.getInstance.need(Texture2D.classinfo, "resources/textures/menue_shade.png");
37
        myTexture   	= cast(Texture2D)ResourceManager.getInstance.need(Texture2D.classinfo, "/usr/share/games/atomorun2008/resources/textures/menue_shade.png");
38
        myClickSound	= cast(Sound)ResourceManager.getInstance().need((Sound.classinfo), "resources/sounds/menue_click.wav");
38
        myClickSound	= cast(Sound)ResourceManager.getInstance().need((Sound.classinfo), "/usr/share/games/atomorun2008/resources/sounds/menue_click.wav");
39
        myOverSound		= cast(Sound)ResourceManager.getInstance().need((Sound.classinfo), "resources/sounds/menue_over.wav");
39
        myOverSound		= cast(Sound)ResourceManager.getInstance().need((Sound.classinfo), "/usr/share/games/atomorun2008/resources/sounds/menue_over.wav");
40
40
41
41
42
        pos.x = 0;
42
        pos.x = 0;
(-)atomorun2008-1.0-O/src/menueitem.d (-1 / +1 lines)
Lines 19-25 Link Here
19
        myPosition  = thePosition;
19
        myPosition  = thePosition;
20
        myDimension = theDimension;
20
        myDimension = theDimension;
21
        myBB2D      = new BoundingBox2D(Point2D(myPosition.x,myPosition.x+myDimension.x), Point2D(myPosition.y+myDimension.y,myPosition.y));
21
        myBB2D      = new BoundingBox2D(Point2D(myPosition.x,myPosition.x+myDimension.x), Point2D(myPosition.y+myDimension.y,myPosition.y));
22
        myTexture   = cast(Texture2D)ResourceManager.getInstance().need((Texture2D.classinfo), "resources/textures/gui.png");
22
        myTexture   = cast(Texture2D)ResourceManager.getInstance().need((Texture2D.classinfo), "/usr/share/games/atomorun2008/resources/textures/gui.png");
23
    };
23
    };
24
    void refresh() {};
24
    void refresh() {};
25
    void uninit() {
25
    void uninit() {
(-)atomorun2008-1.0-O/src/menuelost.d (-4 / +4 lines)
Lines 20-40 Link Here
20
class MenueLost : MenueImpl {
20
class MenueLost : MenueImpl {
21
public:
21
public:
22
    override void init(Menue theMenue) {
22
    override void init(Menue theMenue) {
23
        mySound   	= cast(Sound)ResourceManager.getInstance().need((Sound.classinfo), "resources/sounds/game_end.wav");
23
        mySound   	= cast(Sound)ResourceManager.getInstance().need((Sound.classinfo), "/usr/share/games/atomorun2008/resources/sounds/game_end.wav");
24
		Mix_PlayChannel(-1, mySound.sound, 0);
24
		Mix_PlayChannel(-1, mySound.sound, 0);
25
25
26
        myButtons.length = 3;
26
        myButtons.length = 3;
27
27
28
        myButtons[0]    =   new Button;
28
        myButtons[0]    =   new Button;
29
        myButtons[0].init(Point2D(Config["window_width"]-250, 220), Point2D(256,37),".start game", "resources/sounds/menue_click.wav", "resources/sounds/menue_over.wav");
29
        myButtons[0].init(Point2D(Config["window_width"]-250, 220), Point2D(256,37),".start game", "/usr/share/games/atomorun2008/resources/sounds/menue_click.wav", "/usr/share/games/atomorun2008/resources/sounds/menue_over.wav");
30
        myButtons[0].addActionListener(theMenue, "Menue", "LVL");
30
        myButtons[0].addActionListener(theMenue, "Menue", "LVL");
31
31
32
        myButtons[1]    =   new Button;
32
        myButtons[1]    =   new Button;
33
        myButtons[1].init(Point2D(Config["window_width"]-250, 170), Point2D(256,37),".copyrights", "resources/sounds/menue_click.wav", "resources/sounds/menue_over.wav");
33
        myButtons[1].init(Point2D(Config["window_width"]-250, 170), Point2D(256,37),".copyrights", "/usr/share/games/atomorun2008/resources/sounds/menue_click.wav", "/usr/share/games/atomorun2008/resources/sounds/menue_over.wav");
34
        myButtons[1].addActionListener(theMenue, "Menue", "Copyright");
34
        myButtons[1].addActionListener(theMenue, "Menue", "Copyright");
35
35
36
        myButtons[2]    =   new Button;
36
        myButtons[2]    =   new Button;
37
        myButtons[2].init(Point2D(Config["window_width"]-250, 120), Point2D(256,37),".quit game", "resources/sounds/menue_click.wav", "resources/sounds/menue_over.wav");
37
        myButtons[2].init(Point2D(Config["window_width"]-250, 120), Point2D(256,37),".quit game", "/usr/share/games/atomorun2008/resources/sounds/menue_click.wav", "/usr/share/games/atomorun2008/resources/sounds/menue_over.wav");
38
        myButtons[2].addActionListener(theMenue, "Menue", "Quit");
38
        myButtons[2].addActionListener(theMenue, "Menue", "Quit");
39
    };
39
    };
40
    override void refresh() {
40
    override void refresh() {
(-)atomorun2008-1.0-O/src/menuelvl.d (-20 / +32 lines)
Lines 16-63 Link Here
16
import texture2d;
16
import texture2d;
17
17
18
import std.stream;
18
import std.stream;
19
import std.c.stdlib;
20
import std.string;
19
21
20
import std.stdio;
22
import std.stdio;
21
23
22
class MenueLVL : MenueImpl {
24
class MenueLVL : MenueImpl {
23
public:
25
public:
26
27
  static const char[] PREF_FILE = ".atomorun2008/savegame";
28
29
public char[] pref_file() {
30
    char * home = getenv("HOME");
31
    if (home is null)
32
      throw new Error("HOME environment variable is not defined");
33
    return std.string.toString(home) ~ "/" ~ PREF_FILE;
34
    }
35
24
    override void init(Menue theMenue) {
36
    override void init(Menue theMenue) {
25
        myButtons.length = 1;
37
        myButtons.length = 1;
26
        myButtons[0] = new Button;
38
        myButtons[0] = new Button;
27
        myButtons[0].init(Point2D(Config["window_width"]-250, 120), Point2D(256,37), ".main menu", "resources/sounds/menue_click.wav", "resources/sounds/menue_over.wav");
39
        myButtons[0].init(Point2D(Config["window_width"]-250, 120), Point2D(256,37), ".main menu", "/usr/share/games/atomorun2008/resources/sounds/menue_click.wav", "/usr/share/games/atomorun2008/resources/sounds/menue_over.wav");
28
        myButtons[0].addActionListener(theMenue, "Menue", "Main");
40
        myButtons[0].addActionListener(theMenue, "Menue", "Main");
29
41
30
        myImageButtons.length = 7;
42
        myImageButtons.length = 7;
31
        myImageButtons[0] = new ImageButton();
43
        myImageButtons[0] = new ImageButton();
32
        myImageButtons[0].init(Point2D(50, Config["window_height"]-250), Point2D(128,128),"Level 1", "resources/textures/lvls/lvl1_thumb.png", "resources/sounds/menue_click.wav", "resources/sounds/menue_over.wav");
44
        myImageButtons[0].init(Point2D(50, Config["window_height"]-250), Point2D(128,128),"Level 1", "/usr/share/games/atomorun2008/resources/textures/lvls/lvl1_thumb.png", "/usr/share/games/atomorun2008/resources/sounds/menue_click.wav", "/usr/share/games/atomorun2008/resources/sounds/menue_over.wav");
33
        myImageButtons[0].addActionListener(theMenue, "Game", "resources/lvls/lvl1.txt");
45
        myImageButtons[0].addActionListener(theMenue, "Game", "/usr/share/games/atomorun2008/resources/lvls/lvl1.txt");
34
46
35
        myImageButtons[1] = new ImageButton();
47
        myImageButtons[1] = new ImageButton();
36
        myImageButtons[1].init(Point2D(250, Config["window_height"]-250), Point2D(128,128),"Level 2", "resources/textures/lvls/lvl2_thumb.png", "resources/sounds/menue_click.wav", "resources/sounds/menue_over.wav");
48
        myImageButtons[1].init(Point2D(250, Config["window_height"]-250), Point2D(128,128),"Level 2", "/usr/share/games/atomorun2008/resources/textures/lvls/lvl2_thumb.png", "/usr/share/games/atomorun2008/resources/sounds/menue_click.wav", "/usr/share/games/atomorun2008/resources/sounds/menue_over.wav");
37
        myImageButtons[1].addActionListener(theMenue, "Game", "resources/lvls/lvl2.txt");
49
        myImageButtons[1].addActionListener(theMenue, "Game", "/usr/share/games/atomorun2008/resources/lvls/lvl2.txt");
38
50
39
        myImageButtons[2] = new ImageButton();
51
        myImageButtons[2] = new ImageButton();
40
        myImageButtons[2].init(Point2D(450, Config["window_height"]-250), Point2D(128,128),"Level 3", "resources/textures/lvls/lvl3_thumb.png", "resources/sounds/menue_click.wav", "resources/sounds/menue_over.wav");
52
        myImageButtons[2].init(Point2D(450, Config["window_height"]-250), Point2D(128,128),"Level 3", "/usr/share/games/atomorun2008/resources/textures/lvls/lvl3_thumb.png", "/usr/share/games/atomorun2008/resources/sounds/menue_click.wav", "/usr/share/games/atomorun2008/resources/sounds/menue_over.wav");
41
        myImageButtons[2].addActionListener(theMenue, "Game", "resources/lvls/lvl3.txt");
53
        myImageButtons[2].addActionListener(theMenue, "Game", "/usr/share/games/atomorun2008/resources/lvls/lvl3.txt");
42
54
43
        myImageButtons[3] = new ImageButton();
55
        myImageButtons[3] = new ImageButton();
44
        myImageButtons[3].init(Point2D(250, Config["window_height"]-650), Point2D(128,128),"Special Level", "resources/textures/lvls/lvl4_thumb.png", "resources/sounds/menue_click.wav", "resources/sounds/menue_over.wav");
56
        myImageButtons[3].init(Point2D(250, Config["window_height"]-650), Point2D(128,128),"Special Level", "/usr/share/games/atomorun2008/resources/textures/lvls/lvl4_thumb.png", "/usr/share/games/atomorun2008/resources/sounds/menue_click.wav", "/usr/share/games/atomorun2008/resources/sounds/menue_over.wav");
45
        myImageButtons[3].addActionListener(theMenue, "Game", "resources/lvls/lvlSpecial.txt");
57
        myImageButtons[3].addActionListener(theMenue, "Game", "/usr/share/games/atomorun2008/resources/lvls/lvlSpecial.txt");
46
58
47
        myImageButtons[4] = new ImageButton();
59
        myImageButtons[4] = new ImageButton();
48
        myImageButtons[4].init(Point2D(50, Config["window_height"]-450), Point2D(128,128),"Level 4", "resources/textures/lvls/lvl5_thumb.png", "resources/sounds/menue_click.wav", "resources/sounds/menue_over.wav");
60
        myImageButtons[4].init(Point2D(50, Config["window_height"]-450), Point2D(128,128),"Level 4", "/usr/share/games/atomorun2008/resources/textures/lvls/lvl5_thumb.png", "/usr/share/games/atomorun2008/resources/sounds/menue_click.wav", "/usr/share/games/atomorun2008/resources/sounds/menue_over.wav");
49
        myImageButtons[4].addActionListener(theMenue, "Game", "resources/lvls/lvl1b.txt");
61
        myImageButtons[4].addActionListener(theMenue, "Game", "/usr/share/games/atomorun2008/resources/lvls/lvl1b.txt");
50
62
51
        myImageButtons[5] = new ImageButton();
63
        myImageButtons[5] = new ImageButton();
52
        myImageButtons[5].init(Point2D(250, Config["window_height"]-450), Point2D(128,128),"Level 5", "resources/textures/lvls/lvl6_thumb.png", "resources/sounds/menue_click.wav", "resources/sounds/menue_over.wav");
64
        myImageButtons[5].init(Point2D(250, Config["window_height"]-450), Point2D(128,128),"Level 5", "/usr/share/games/atomorun2008/resources/textures/lvls/lvl6_thumb.png", "/usr/share/games/atomorun2008/resources/sounds/menue_click.wav", "/usr/share/games/atomorun2008/resources/sounds/menue_over.wav");
53
        myImageButtons[5].addActionListener(theMenue, "Game", "resources/lvls/lvl2b.txt");
65
        myImageButtons[5].addActionListener(theMenue, "Game", "/usr/share/games/atomorun2008/resources/lvls/lvl2b.txt");
54
66
55
        myImageButtons[6] = new ImageButton();
67
        myImageButtons[6] = new ImageButton();
56
        myImageButtons[6].init(Point2D(450, Config["window_height"]-450), Point2D(128,128),"Level 6", "resources/textures/lvls/lvl7_thumb.png", "resources/sounds/menue_click.wav", "resources/sounds/menue_over.wav");
68
        myImageButtons[6].init(Point2D(450, Config["window_height"]-450), Point2D(128,128),"Level 6", "/usr/share/games/atomorun2008/resources/textures/lvls/lvl7_thumb.png", "/usr/share/games/atomorun2008/resources/sounds/menue_click.wav", "/usr/share/games/atomorun2008/resources/sounds/menue_over.wav");
57
        myImageButtons[6].addActionListener(theMenue, "Game", "resources/lvls/lvl3b.txt");
69
        myImageButtons[6].addActionListener(theMenue, "Game", "/usr/share/games/atomorun2008/resources/lvls/lvl3b.txt");
58
70
59
        File hm = new File();
71
        File hm = new File();
60
        hm.open("resources/savegame", FileMode.In);
72
        hm.open(pref_file(), FileMode.In);
61
        int data;
73
        int data;
62
        while (!hm.eof) {
74
        while (!hm.eof) {
63
            hm.readf(&data);
75
            hm.readf(&data);
Lines 65-73 Link Here
65
        };
77
        };
66
        hm.close();
78
        hm.close();
67
79
68
        myTexGold   = cast(Texture2D)ResourceManager.getInstance().need((Texture2D.classinfo), "resources/textures/prize/gold.png");
80
        myTexGold   = cast(Texture2D)ResourceManager.getInstance().need((Texture2D.classinfo), "/usr/share/games/atomorun2008/resources/textures/prize/gold.png");
69
        myTexSilver = cast(Texture2D)ResourceManager.getInstance().need((Texture2D.classinfo), "resources/textures/prize/silver.png");
81
        myTexSilver = cast(Texture2D)ResourceManager.getInstance().need((Texture2D.classinfo), "/usr/share/games/atomorun2008/resources/textures/prize/silver.png");
70
        myTexBronze = cast(Texture2D)ResourceManager.getInstance().need((Texture2D.classinfo), "resources/textures/prize/bronze.png");
82
        myTexBronze = cast(Texture2D)ResourceManager.getInstance().need((Texture2D.classinfo), "/usr/share/games/atomorun2008/resources/textures/prize/bronze.png");
71
    };
83
    };
72
    override void refresh() {
84
    override void refresh() {
73
        foreach(button; myButtons) button.refresh();
85
        foreach(button; myButtons) button.refresh();
(-)atomorun2008-1.0-O/src/menuemain.d (-3 / +3 lines)
Lines 19-33 Link Here
19
        myButtons.length = 3;
19
        myButtons.length = 3;
20
20
21
        myButtons[0]    =   new Button;
21
        myButtons[0]    =   new Button;
22
        myButtons[0].init(Point2D(Config["window_width"]-250, 220), Point2D(256,37),".start game", "resources/sounds/menue_click.wav", "resources/sounds/menue_over.wav");
22
        myButtons[0].init(Point2D(Config["window_width"]-250, 220), Point2D(256,37),".start game", "/usr/share/games/atomorun2008/resources/sounds/menue_click.wav", "/usr/share/games/atomorun2008/resources/sounds/menue_over.wav");
23
        myButtons[0].addActionListener(theMenue, "Menue", "LVL");
23
        myButtons[0].addActionListener(theMenue, "Menue", "LVL");
24
24
25
        myButtons[1]    =   new Button;
25
        myButtons[1]    =   new Button;
26
        myButtons[1].init(Point2D(Config["window_width"]-250, 170), Point2D(256,37),".copyrights", "resources/sounds/menue_click.wav", "resources/sounds/menue_over.wav");
26
        myButtons[1].init(Point2D(Config["window_width"]-250, 170), Point2D(256,37),".copyrights", "/usr/share/games/atomorun2008/resources/sounds/menue_click.wav", "/usr/share/games/atomorun2008/resources/sounds/menue_over.wav");
27
        myButtons[1].addActionListener(theMenue, "Menue", "Copyright");
27
        myButtons[1].addActionListener(theMenue, "Menue", "Copyright");
28
28
29
        myButtons[2]    =   new Button;
29
        myButtons[2]    =   new Button;
30
        myButtons[2].init(Point2D(Config["window_width"]-250, 120), Point2D(256,37),".quit game", "resources/sounds/menue_click.wav", "resources/sounds/menue_over.wav");
30
        myButtons[2].init(Point2D(Config["window_width"]-250, 120), Point2D(256,37),".quit game", "/usr/share/games/atomorun2008/resources/sounds/menue_click.wav", "/usr/share/games/atomorun2008/resources/sounds/menue_over.wav");
31
        myButtons[2].addActionListener(theMenue, "Menue", "Quit");
31
        myButtons[2].addActionListener(theMenue, "Menue", "Quit");
32
    };
32
    };
33
    override void refresh() {
33
    override void refresh() {
(-)atomorun2008-1.0-O/src/menuewonbronze.d (-4 / +4 lines)
Lines 19-39 Link Here
19
class MenueWonBronze : MenueImpl {
19
class MenueWonBronze : MenueImpl {
20
public:
20
public:
21
    override void init(Menue theMenue) {
21
    override void init(Menue theMenue) {
22
		mySound   	= cast(Sound)ResourceManager.getInstance().need((Sound.classinfo), "resources/sounds/game_end.wav");
22
		mySound   	= cast(Sound)ResourceManager.getInstance().need((Sound.classinfo), "/usr/share/games/atomorun2008/resources/sounds/game_end.wav");
23
		Mix_PlayChannel(-1, mySound.sound, 0);
23
		Mix_PlayChannel(-1, mySound.sound, 0);
24
24
25
        myButtons.length = 3;
25
        myButtons.length = 3;
26
26
27
        myButtons[0]    =   new Button;
27
        myButtons[0]    =   new Button;
28
        myButtons[0].init(Point2D(Config["window_width"]-250, 220), Point2D(256,37),".start game", "resources/sounds/menue_click.wav", "resources/sounds/menue_over.wav");
28
        myButtons[0].init(Point2D(Config["window_width"]-250, 220), Point2D(256,37),".start game", "/usr/share/games/atomorun2008/resources/sounds/menue_click.wav", "/usr/share/games/atomorun2008/resources/sounds/menue_over.wav");
29
        myButtons[0].addActionListener(theMenue, "Menue", "LVL");
29
        myButtons[0].addActionListener(theMenue, "Menue", "LVL");
30
30
31
        myButtons[1]    =   new Button;
31
        myButtons[1]    =   new Button;
32
        myButtons[1].init(Point2D(Config["window_width"]-250, 170), Point2D(256,37),".copyrights", "resources/sounds/menue_click.wav", "resources/sounds/menue_over.wav");
32
        myButtons[1].init(Point2D(Config["window_width"]-250, 170), Point2D(256,37),".copyrights", "/usr/share/games/atomorun2008/resources/sounds/menue_click.wav", "/usr/share/games/atomorun2008/resources/sounds/menue_over.wav");
33
        myButtons[1].addActionListener(theMenue, "Menue", "Copyright");
33
        myButtons[1].addActionListener(theMenue, "Menue", "Copyright");
34
34
35
        myButtons[2]    =   new Button;
35
        myButtons[2]    =   new Button;
36
        myButtons[2].init(Point2D(Config["window_width"]-250, 120), Point2D(256,37),".quit game", "resources/sounds/menue_click.wav", "resources/sounds/menue_over.wav");
36
        myButtons[2].init(Point2D(Config["window_width"]-250, 120), Point2D(256,37),".quit game", "/usr/share/games/atomorun2008/resources/sounds/menue_click.wav", "/usr/share/games/atomorun2008/resources/sounds/menue_over.wav");
37
        myButtons[2].addActionListener(theMenue, "Menue", "Quit");
37
        myButtons[2].addActionListener(theMenue, "Menue", "Quit");
38
    };
38
    };
39
    override void refresh() {
39
    override void refresh() {
(-)atomorun2008-1.0-O/src/menuewongold.d (-4 / +4 lines)
Lines 19-39 Link Here
19
class MenueWonGold : MenueImpl {
19
class MenueWonGold : MenueImpl {
20
public:
20
public:
21
    override void init(Menue theMenue) {
21
    override void init(Menue theMenue) {
22
        mySound   	= cast(Sound)ResourceManager.getInstance().need((Sound.classinfo), "resources/sounds/game_end.wav");
22
        mySound   	= cast(Sound)ResourceManager.getInstance().need((Sound.classinfo), "/usr/share/games/atomorun2008/resources/sounds/game_end.wav");
23
		Mix_PlayChannel(-1, mySound.sound, 0);
23
		Mix_PlayChannel(-1, mySound.sound, 0);
24
24
25
        myButtons.length = 3;
25
        myButtons.length = 3;
26
26
27
        myButtons[0]    =   new Button;
27
        myButtons[0]    =   new Button;
28
        myButtons[0].init(Point2D(Config["window_width"]-250, 220), Point2D(256,37),".start game", "resources/sounds/menue_click.wav", "resources/sounds/menue_over.wav");
28
        myButtons[0].init(Point2D(Config["window_width"]-250, 220), Point2D(256,37),".start game", "/usr/share/games/atomorun2008/resources/sounds/menue_click.wav", "/usr/share/games/atomorun2008/resources/sounds/menue_over.wav");
29
        myButtons[0].addActionListener(theMenue, "Menue", "LVL");
29
        myButtons[0].addActionListener(theMenue, "Menue", "LVL");
30
30
31
        myButtons[1]    =   new Button;
31
        myButtons[1]    =   new Button;
32
        myButtons[1].init(Point2D(Config["window_width"]-250, 170), Point2D(256,37),".copyrights", "resources/sounds/menue_click.wav", "resources/sounds/menue_over.wav");
32
        myButtons[1].init(Point2D(Config["window_width"]-250, 170), Point2D(256,37),".copyrights", "/usr/share/games/atomorun2008/resources/sounds/menue_click.wav", "/usr/share/games/atomorun2008/resources/sounds/menue_over.wav");
33
        myButtons[1].addActionListener(theMenue, "Menue", "Copyright");
33
        myButtons[1].addActionListener(theMenue, "Menue", "Copyright");
34
34
35
        myButtons[2]    =   new Button;
35
        myButtons[2]    =   new Button;
36
        myButtons[2].init(Point2D(Config["window_width"]-250, 120), Point2D(256,37),".quit game", "resources/sounds/menue_click.wav", "resources/sounds/menue_over.wav");
36
        myButtons[2].init(Point2D(Config["window_width"]-250, 120), Point2D(256,37),".quit game", "/usr/share/games/atomorun2008/resources/sounds/menue_click.wav", "/usr/share/games/atomorun2008/resources/sounds/menue_over.wav");
37
        myButtons[2].addActionListener(theMenue, "Menue", "Quit");
37
        myButtons[2].addActionListener(theMenue, "Menue", "Quit");
38
    };
38
    };
39
    override void refresh() {
39
    override void refresh() {
(-)atomorun2008-1.0-O/src/menuewonsilver.d (-4 / +4 lines)
Lines 19-39 Link Here
19
class MenueWonSilver : MenueImpl {
19
class MenueWonSilver : MenueImpl {
20
public:
20
public:
21
    override void init(Menue theMenue) {
21
    override void init(Menue theMenue) {
22
        mySound   	= cast(Sound)ResourceManager.getInstance().need((Sound.classinfo), "resources/sounds/game_end.wav");
22
        mySound   	= cast(Sound)ResourceManager.getInstance().need((Sound.classinfo), "/usr/share/games/atomorun2008/resources/sounds/game_end.wav");
23
		Mix_PlayChannel(-1, mySound.sound, 0);
23
		Mix_PlayChannel(-1, mySound.sound, 0);
24
24
25
        myButtons.length = 3;
25
        myButtons.length = 3;
26
26
27
        myButtons[0]    =   new Button;
27
        myButtons[0]    =   new Button;
28
        myButtons[0].init(Point2D(Config["window_width"]-250, 220), Point2D(256,37),".start game", "resources/sounds/menue_click.wav", "resources/sounds/menue_over.wav");
28
        myButtons[0].init(Point2D(Config["window_width"]-250, 220), Point2D(256,37),".start game", "/usr/share/games/atomorun2008/resources/sounds/menue_click.wav", "/usr/share/games/atomorun2008/resources/sounds/menue_over.wav");
29
        myButtons[0].addActionListener(theMenue, "Menue", "LVL");
29
        myButtons[0].addActionListener(theMenue, "Menue", "LVL");
30
30
31
        myButtons[1]    =   new Button;
31
        myButtons[1]    =   new Button;
32
        myButtons[1].init(Point2D(Config["window_width"]-250, 170), Point2D(256,37),".copyrights", "resources/sounds/menue_click.wav", "resources/sounds/menue_over.wav");
32
        myButtons[1].init(Point2D(Config["window_width"]-250, 170), Point2D(256,37),".copyrights", "/usr/share/games/atomorun2008/resources/sounds/menue_click.wav", "/usr/share/games/atomorun2008/resources/sounds/menue_over.wav");
33
        myButtons[1].addActionListener(theMenue, "Menue", "Copyright");
33
        myButtons[1].addActionListener(theMenue, "Menue", "Copyright");
34
34
35
        myButtons[2]    =   new Button;
35
        myButtons[2]    =   new Button;
36
        myButtons[2].init(Point2D(Config["window_width"]-250, 120), Point2D(256,37),".quit game", "resources/sounds/menue_click.wav", "resources/sounds/menue_over.wav");
36
        myButtons[2].init(Point2D(Config["window_width"]-250, 120), Point2D(256,37),".quit game", "/usr/share/games/atomorun2008/resources/sounds/menue_click.wav", "/usr/share/games/atomorun2008/resources/sounds/menue_over.wav");
37
        myButtons[2].addActionListener(theMenue, "Menue", "Quit");
37
        myButtons[2].addActionListener(theMenue, "Menue", "Quit");
38
    };
38
    };
39
    override void refresh() {
39
    override void refresh() {
(-)atomorun2008-1.0-O/src/meshzms.d (-1 / +1 lines)
Lines 85-91 Link Here
85
    };
85
    };
86
86
87
    void loadDefault() {
87
    void loadDefault() {
88
		loadSpecific("resources/meshes/defaultmesh.zms");
88
		loadSpecific("/usr/share/games/atomorun2008/resources/meshes/defaultmesh.zms");
89
	};
89
	};
90
90
91
    override void unloadSpecific() {
91
    override void unloadSpecific() {
(-)atomorun2008-1.0-O/src/player.d (-4 / +4 lines)
Lines 22-31 Link Here
22
public:
22
public:
23
23
24
    void init() {
24
    void init() {
25
        myMesh = cast(MeshZMS)ResourceManager.getInstance.need(MeshZMS.classinfo, "resources/meshes/player.zms");
25
        myMesh = cast(MeshZMS)ResourceManager.getInstance.need(MeshZMS.classinfo, "/usr/share/games/atomorun2008/resources/meshes/player.zms");
26
        myJumpSound = cast(Sound)ResourceManager.getInstance.need(Sound.classinfo, "resources/sounds/player_jump.wav");
26
        myJumpSound = cast(Sound)ResourceManager.getInstance.need(Sound.classinfo, "/usr/share/games/atomorun2008/resources/sounds/player_jump.wav");
27
        myLandSound = cast(Sound)ResourceManager.getInstance.need(Sound.classinfo, "resources/sounds/player_land2.wav");
27
        myLandSound = cast(Sound)ResourceManager.getInstance.need(Sound.classinfo, "/usr/share/games/atomorun2008/resources/sounds/player_land2.wav");
28
        myWalkSound = cast(Sound)ResourceManager.getInstance.need(Sound.classinfo, "resources/sounds/player_walk.wav");
28
        myWalkSound = cast(Sound)ResourceManager.getInstance.need(Sound.classinfo, "/usr/share/games/atomorun2008/resources/sounds/player_walk.wav");
29
29
30
    };
30
    };
31
    void uninit() {
31
    void uninit() {
(-)atomorun2008-1.0-O/src/sound.d (-1 / +1 lines)
Lines 25-31 Link Here
25
		mySound	=	null;
25
		mySound	=	null;
26
    };
26
    };
27
    override void loadDefault() {
27
    override void loadDefault() {
28
        loadSpecific("resources/sounds/defaultsound.wav");
28
        loadSpecific("/usr/share/games/atomorun2008/resources/sounds/defaultsound.wav");
29
    };
29
    };
30
30
31
    Mix_Chunk* sound() { return mySound; };
31
    Mix_Chunk* sound() { return mySound; };

Return to bug 234924