~teromene/lmdc/trunk

« back to all changes in this revision

Viewing changes to src/market/images.c

  • Committer: Teromene
  • Date: 2014-01-02 18:07:56 UTC
  • Revision ID: teromene@gmail.com-20140102180756-1mexnswm7kocudck
Added lot of stuff, gfx updates

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
SDL_Surface *market_zone[2];
2
 
 
 
1
SDL_Surface *market_background;
 
2
int market_over;
3
3
void market_loadMainImages() {
4
4
 
5
 
market_zone[1] = loadImage("gfx/market/shop_1.png");
6
 
market_zone[2] = loadImage("gfx/market/shop_2.png");
7
 
market_zone[3] = loadImage("gfx/market/shop_3.png");
8
 
market_zone[4] = loadImage("gfx/market/shop_4.png");
9
 
 
 
5
market_background = loadSizedImage("gfx/market/background.png",640,480);
 
6
 
 
7
}
 
8
void market_draw()
 
9
{
 
10
 
 
11
    drawImage(market_background,0,0,0);
 
12
        drawImage(back,517,406,0);
 
13
    switch(market_over) {
 
14
    case 1:
 
15
        drawColoredString("Jeu marché 1", 0, 0,font, 0, 0 ,0,0,0);
 
16
        break;
 
17
    case 2:
 
18
        drawColoredString("Jeu marché 2", 0, 0,font, 0, 0,0,0,0);
 
19
        break;
 
20
    case 3:
 
21
        drawColoredString("Jeu marché 3", 0, 0,font, 0, 0,0,0,0);
 
22
        break;
 
23
    case 4:
 
24
        drawColoredString("Jeu marché 4", 0, 0,font, 0, 0,0,0,0);
 
25
        break;
 
26
 
 
27
 
 
28
    }
 
29
    SDL_Flip(screen);
10
30
}