IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Programmation multimédia/Jeux Python Discussion :

Problème Tower Defense


Sujet :

Programmation multimédia/Jeux Python

  1. #1
    Futur Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Avril 2014
    Messages
    12
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 27
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Avril 2014
    Messages : 12
    Points : 7
    Points
    7
    Par défaut Problème Tower Defense
    Bonjour tout le monde,
    Voila, je vous explique mon problème, dans mon tower defense, mes tours sont des .gif, mes créatures aussi, seulement, je n'arrive pas écrire un code juste pour que mes tourelles suivent les mouvements de mes créatures du début à la fin.
    Quelqu'un pourrait-il m'aider s'il vous plait?

    Merci d'avance

  2. #2
    Futur Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Avril 2014
    Messages
    12
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 27
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Avril 2014
    Messages : 12
    Points : 7
    Points
    7
    Par défaut Problème Tower Defense ISN
    Bonjour à tous,
    Je vous présente mon problème, j'ai besoin de créer une grille pour le placement des tourelles par le joueur, j'utilise donc:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
     
    a=0
        b=0
        while a!= 17:
            a=a+1
            drawline()
     
     
        while b!= 35:
            b=b+1
            drawline2()
    Seulement, je n'arrive pas a la supprimer par la suite, quelqu'un pourrait-il m'aider?

  3. #3
    Modérateur

    Avatar de Bktero
    Homme Profil pro
    Développeur en systèmes embarqués
    Inscrit en
    Juin 2009
    Messages
    4 481
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 36
    Localisation : France, Loire Atlantique (Pays de la Loire)

    Informations professionnelles :
    Activité : Développeur en systèmes embarqués

    Informations forums :
    Inscription : Juin 2009
    Messages : 4 481
    Points : 13 679
    Points
    13 679
    Billets dans le blog
    1
    Par défaut
    Bonjour,

    Plutôt que de dupliquer les discussions sur le même sujet, demande toi pourquoi personne ne te répond....

    Ton problème est insuffisamment décrit. On ne sait pas quelle bibliothèque graphique tu utilises, quelle version de Python, tu ne nous montres presque pas de code. Il n'y a donc pas grand chose à dire à part qu'on ne peut pas t'aider avec si peu d'informations et un problème aussi vaste et vague.

  4. #4
    Futur Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Avril 2014
    Messages
    12
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 27
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Avril 2014
    Messages : 12
    Points : 7
    Points
    7
    Par défaut
    J'utilise actuellement python 3.3 et le module Tkinter.
    Voici mon code:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
     
    import sys
    from Tkinter import *
     
    J=20
    F=0
     
    #fonctions
     
    def firstmouv():
        global x6,y6,J
        x6=1353+20.5
        y6=369+20.5
        mouv()
     
    def mouv():
        global x6,y6,J,L,F
     
        if (x6>1127.5) and (x6<=1373.5) and (y6==369+20.5):
            x6=x6-10.25
            can1.coords(L[0],x6,y6)
            if (x6==1250.5) and (F==0):
                firstmouv2() 
        elif (x6==1127.5) and (y6<451+20.5) and (y6>=369+20.5): 
            y6=y6+10.25
            can1.coords(L[0],x6,y6)
     
        elif (x6>1004.5) and (x6<=1127.5) and (y6==451+20.5):
            x6=x6-10.25
            can1.coords(L[0],x6,y6)
     
        elif (x6==1004.5) and (y6<=451+20.5) and (y6>369+20.5): 
            y6=y6-10.25
            can1.coords(L[0],x6,y6)
     
        elif (x6>881.5) and (x6<=1004.5) and (y6==369+20.5):
            x6=x6-10.25
            can1.coords(L[0],x6,y6)
     
        elif (x6==881.5) and (y6<451+20.5) and (y6>=369+20.5): 
            y6=y6+10.25
            can1.coords(L[0],x6,y6)
     
        elif (x6>676.5) and (x6<=881.5) and (y6==451+20.5):
            x6=x6-10.25
            can1.coords(L[0],x6,y6)
     
        elif (x6==676.5) and (y6<=451+20.5) and (y6>369+20.5): 
            y6=y6-10.25
            can1.coords(L[0],x6,y6)
     
        elif (x6>512.5) and (x6<=676.5) and (y6==369+20.5):
            x6=x6-10.25
            can1.coords(L[0],x6,y6)
     
        elif (x6==512.5) and (y6<451+20.5) and (y6>=369+20.5): 
            y6=y6+10.25
            can1.coords(L[0],x6,y6)
     
        elif (x6>389.5) and (x6<=512.5) and (y6==451+20.5):
            x6=x6-10.25
            can1.coords(L[0],x6,y6)
     
        elif (x6==389.5) and (y6<=451+20.5) and (y6>369+20.5): 
            y6=y6-10.25
            can1.coords(L[0],x6,y6)
     
        elif (x6>266.5) and (x6<=389.5) and (y6==369+20.5):
            x6=x6-10.25
            can1.coords(L[0],x6,y6)
     
        elif (x6==266.5) and (y6<451+20.5) and (y6>=369+20.5): 
            y6=y6+10.25
            can1.coords(L[0],x6,y6)
     
        elif (x6>143.5) and (x6<=266.5) and (y6==451+20.5):
            x6=x6-10.25
            can1.coords(L[0],x6,y6)
     
        elif (x6==143.5) and (y6<=451+20.5) and (y6>369+20.5): 
            y6=y6-10.25
            can1.coords(L[0],x6,y6)
     
        elif (x6>0) and (x6<=143.5) and (y6==369+20.5):
            x6=x6-10.25
            can1.coords(L[0],x6,y6)
        if (x6>0): 
            fen1.after(15,mouv)
            print (x6)
        if (x6<=0):
            J=J-1
            F=1
            firstmouv() 
     
    def firstmouv2():
        global x7,y7,J
        x7=1353+20.5
        y7=369+20.5
        mouv2()
     
     
    def mouv2():
        global x7,y7,J,L,F
     
        if (x7>1127.5) and (x7<=1373.5) and (y7==369+20.5):
            x7=x7-10.25
            can1.coords(L[1],x7,y7)
            if (x7==1250.5) and (F==0):
                firstmouv3()                 
        elif (x7==1127.5) and (y7<451+20.5) and (y7>=369+20.5): 
            y7=y7+10.25
            can1.coords(L[1],x7,y7)
     
        elif (x7>1004.5) and (x7<=1127.5) and (y7==451+20.5):
            x7=x7-10.25
            can1.coords(L[1],x7,y7)
     
        elif (x7==1004.5) and (y7<=451+20.5) and (y7>369+20.5): 
            y7=y7-10.25
            can1.coords(L[1],x7,y7)
     
        elif (x7>881.5) and (x7<=1004.5) and (y7==369+20.5):
            x7=x7-10.25
            can1.coords(L[1],x7,y7)
     
        elif (x7==881.5) and (y7<451+20.5) and (y7>=369+20.5): 
            y7=y7+10.25
            can1.coords(L[1],x7,y7)
     
        elif (x7>676.5) and (x7<=881.5) and (y7==451+20.5):
            x7=x7-10.25
            can1.coords(L[1],x7,y7)
     
        elif (x7==676.5) and (y7<=451+20.5) and (y7>369+20.5): 
            y7=y7-10.25
            can1.coords(L[1],x7,y7)
     
        elif (x7>512.5) and (x7<=676.5) and (y7==369+20.5):
            x7=x7-10.25
            can1.coords(L[1],x7,y7)
     
        elif (x7==512.5) and (y7<451+20.5) and (y7>=369+20.5): 
            y7=y7+10.25
            can1.coords(L[1],x7,y7)
     
        elif (x7>389.5) and (x7<=512.5) and (y7==451+20.5):
            x7=x7-10.25
            can1.coords(L[1],x7,y7)
     
        elif (x7==389.5) and (y7<=451+20.5) and (y7>369+20.5): 
            y7=y7-10.25
            can1.coords(L[1],x7,y7)
     
        elif (x7>266.5) and (x7<=389.5) and (y7==369+20.5):
            x7=x7-10.25
            can1.coords(L[1],x7,y7)
     
        elif (x7==266.5) and (y7<451+20.5) and (y7>=369+20.5): 
            y7=y7+10.25
            can1.coords(L[1],x7,y7)
     
        elif (x7>143.5) and (x7<=266.5) and (y7==451+20.5):
            x7=x7-10.25
            can1.coords(L[1],x7,y7)
     
        elif (x7==143.5) and (y7<=451+20.5) and (y7>369+20.5): 
            y7=y7-10.25
            can1.coords(L[1],x7,y7)
     
        elif (x7>0) and (x7<=143.5) and (y7==369+20.5):
            x7=x7-10.25
            can1.coords(L[1],x7,y7)
        if (x7>0): 
            fen1.after(15,mouv2)
            print (x7)
        if (x7<=0):
            J=J-1
            firstmouv2()
     
    def firstmouv3():
        global x8,y8
        x8=1353+20.5
        y8=369+20.5
        mouv3()
     
    def mouv3():
        global x8,y8,J,L,F
     
        if (x8>1127.5) and (x8<=1373.5) and (y8==369+20.5):
            x8=x8-10.25
            can1.coords(L[2],x8,y8)
            if (x8==1250.5) and (F==0):
                firstmouv4()            
        elif (x8==1127.5) and (y8<451+20.5) and (y8>=369+20.5): 
            y8=y8+10.25
            can1.coords(L[2],x8,y8)
     
        elif (x8>1004.5) and (x8<=1127.5) and (y8==451+20.5):
            x8=x8-10.25
            can1.coords(L[2],x8,y8)
     
        elif (x8==1004.5) and (y8<=451+20.5) and (y8>369+20.5): 
            y8=y8-10.25
            can1.coords(L[2],x8,y8)
     
        elif (x8>881.5) and (x8<=1004.5) and (y8==369+20.5):
            x8=x8-10.25
            can1.coords(L[2],x8,y8)
     
        elif (x8==881.5) and (y8<451+20.5) and (y8>=369+20.5): 
            y8=y8+10.25
            can1.coords(L[2],x8,y8)
     
        elif (x8>676.5) and (x8<=881.5) and (y8==451+20.5):
            x8=x8-10.25
            can1.coords(L[2],x8,y8)
     
        elif (x8==676.5) and (y8<=451+20.5) and (y8>369+20.5): 
            y8=y8-10.25
            can1.coords(L[2],x8,y8)
     
        elif (x8>512.5) and (x8<=676.5) and (y8==369+20.5):
            x8=x8-10.25
            can1.coords(L[2],x8,y8)
     
        elif (x8==512.5) and (y8<451+20.5) and (y8>=369+20.5): 
            y8=y8+10.25
            can1.coords(L[2],x8,y8)
     
        elif (x8>389.5) and (x8<=512.5) and (y8==451+20.5):
            x8=x8-10.25
            can1.coords(L[2],x8,y8)
     
        elif (x8==389.5) and (y8<=451+20.5) and (y8>369+20.5): 
            y8=y8-10.25
            can1.coords(L[2],x8,y8)
     
        elif (x8>266.5) and (x8<=389.5) and (y8==369+20.5):
            x8=x8-10.25
            can1.coords(L[2],x8,y8)
     
        elif (x8==266.5) and (y8<451+20.5) and (y8>=369+20.5): 
            y8=y8+10.25
            can1.coords(L[2],x8,y8)
     
        elif (x8>143.5) and (x8<=266.5) and (y8==451+20.5):
            x8=x8-10.25
            can1.coords(L[2],x8,y8)
     
        elif (x8==143.5) and (y8<=451+20.5) and (y8>369+20.5): 
            y8=y8-10.25
            can1.coords(L[2],x8,y8)
     
        elif (x8>0) and (x8<=143.5) and (y8==369+20.5):
            x8=x8-10.25
            can1.coords(L[2],x8,y8)
        if (x8>0): 
            fen1.after(15,mouv3)
            print (x8)
        if (x8<=0):
            J=J-1
            firstmouv3() 
     
     
    def firstmouv4():
        global x9,y9
        x9=1353+20.5
        y9=369+20.5
        mouv4()
     
    def mouv4():
        global x9,y9,J,L,F
     
        if (x9>1127.5) and (x9<=1373.5) and (y9==369+20.5):
            x9=x9-10.25
            can1.coords(L[3],x9,y9)
     
        elif (x9==1127.5) and (y9<451+20.5) and (y9>=369+20.5): 
            y9=y9+10.25
            can1.coords(L[3],x9,y9)
     
        elif (x9>1004.5) and (x9<=1127.5) and (y9==451+20.5):
            x9=x9-10.25
            can1.coords(L[3],x9,y9)
     
        elif (x9==1004.5) and (y9<=451+20.5) and (y9>369+20.5): 
            y9=y9-10.25
            can1.coords(L[3],x9,y9)
     
        elif (x9>881.5) and (x9<=1004.5) and (y9==369+20.5):
            x9=x9-10.25
            can1.coords(L[3],x9,y9)
     
        elif (x9==881.5) and (y9<451+20.5) and (y9>=369+20.5): 
            y9=y9+10.25
            can1.coords(L[3],x9,y9)
     
        elif (x9>676.5) and (x9<=881.5) and (y9==451+20.5):
            x9=x9-10.25
            can1.coords(L[3],x9,y9)
     
        elif (x9==676.5) and (y9<=451+20.5) and (y9>369+20.5): 
            y9=y9-10.25
            can1.coords(L[3],x9,y9)
     
        elif (x9>512.5) and (x9<=676.5) and (y9==369+20.5):
            x9=x9-10.25
            can1.coords(L[3],x9,y9)
     
        elif (x9==512.5) and (y9<451+20.5) and (y9>=369+20.5): 
            y9=y9+10.25
            can1.coords(L[3],x9,y9)
     
        elif (x9>389.5) and (x9<=512.5) and (y9==451+20.5):
            x9=x9-10.25
            can1.coords(L[3],x9,y9)
     
        elif (x9==389.5) and (y9<=451+20.5) and (y9>369+20.5): 
            y9=y9-10.25
            can1.coords(L[3],x9,y9)
     
        elif (x9>266.5) and (x9<=389.5) and (y9==369+20.5):
            x9=x9-10.25
            can1.coords(L[3],x9,y9)
     
        elif (x9==266.5) and (y9<451+20.5) and (y9>=369+20.5): 
            y9=y9+10.25
            can1.coords(L[3],x9,y9)
     
        elif (x9>143.5) and (x9<=266.5) and (y9==451+20.5):
            x9=x9-10.25
            can1.coords(L[3],x9,y9)
     
        elif (x9==143.5) and (y9<=451+20.5) and (y9>369+20.5): 
            y9=y9-10.25
            can1.coords(L[3],x9,y9)
     
        elif (x9>0) and (x9<=143.5) and (y9==369+20.5):
            x9=x9-10.25
            can1.coords(L[3],x9,y9)
        if (x9>0): 
            fen1.after(15,mouv4)
            print (x9)
        if (x9<=0):
            J=J-1
            firstmouv4() 
     
     
     
     
     
     
    def clic(event):
        global baba
        x5=event.x//41
        x5=x5*41
        y5=event.y//41
        y5=y5*41
     
        if (x5<=123) and (x5>=0) and (y5==369) or (x5==123) and (y5<=451) and (y5>=369) or (x5<=246) and (x5>=123) and (y5==451) or (x5==246) and (y5<=451) and (y5>=369)or (x5<=369) and (x5>=246) and (y5==369) or (x5==369) and (y5<=451) and (y5>=369)or (x5>=369) and (x5<=492) and (y5==451) or (x5==492) and (y5<=451) and (y5>=369)or (x5>=492) and (x5<=656) and (y5==369) or (x5==656) and (y5<=451) and (y5>=369)or (x5>=656) and (x5<=861) and (y5==451) or (x5==861) and (y5<=451) and (y5>=369)or (x5>=861) and (x5<=984) and (y5==369) or (x5==984) and (y5<=451) and (y5>=369)or (x5>=984) and (x5<=1107) and (y5==451) or (x5==1107) and (y5<=451) and (y5>=369)or (x5>=1107) and (x5<=1271) and (y5==369):
            can1.unbind("<Button-1>")
     
        else :    
            can1.create_image(x5+4,y5-6,image=baba,anchor=NW)
            can1.unbind("<Button-1>")
     
     
    def clic_roquettes() : 
        global baba
        baba = tourelles_roquettes
        can1.bind("<Button-1>", clic)   
     
    def clic_glace():
        global baba
        baba = tourelles_glace
        can1.bind("<Button-1>", clic) 
     
    def clic_flammes():
        global baba
        baba = tourelles_flammes
        can1.bind("<Button-1>", clic) 
     
    def clic_laser():
        global baba
        baba = tourelles_laser
        can1.bind("<Button-1>", clic) 
     
     
     
    def drawline():
        "Tracé d'une ligne dans le canevas can1"
        global x1, y1, x2, y2, coul
        can1.create_line(x1,y1,x2,y2,width=2,fill= "white")
     
     
        y2, y1 = y2+41, y1+41
     
    def drawline2():
        "Tracé d'une ligne dans le canevas can1"
        global x3, y3, x4, y4, coul
        can1.create_line(x3,y3,x4,y4,width=2,fill= "white")
     
     
        x3, x4 = x3+41, x4+41
     
     
    x1, y1, x2, y2 = 0, 0, 1440, 0             
    x3, y3, x4, y4 = 0, 0, 0, 700
     
    #fin des fonctions
     
     
     
    fen1 = Tk()
    fen1.title("SPACE DEFENSE")
     
    quitter = PhotoImage(file='../images/Quit.gif')
    roquettes = PhotoImage(file='../images/tourelles/roquettes.gif')
    flammes = PhotoImage(file='../images/tourelles/flammes.gif')
    laser = PhotoImage(file='../images/tourelles/laser.gif')
    glace = PhotoImage(file='../images/tourelles/glace.gif')
    fond=PhotoImage(file='../images/jeu.gif')
    tourelles_roquettes = PhotoImage(file='../images/tourelles/roquettes2.gif')
    tourelles_glace = PhotoImage(file='../images/tourelles/glace2.gif')
    tourelles_flammes = PhotoImage(file='../images/tourelles/flammes2.gif')
    tourelles_laser = PhotoImage(file='../images/tourelles/laser2.gif')
    asteroide= PhotoImage(file='../images/tourelles/astero.gif')
     
    coeur = PhotoImage(file='../images/vie.gif')
    # création des widgets "esclaves" :
    can1 = Canvas(fen1, width=1435, height=693, bg = 'black') 
    item = can1.create_image(717.5, 346.5, image = fond) 
    can1.pack(side=TOP) 
     
    vie = Label(fen1,image=coeur)
    e = Label(fen1, text=J, width=10)
    vie.pack(side=LEFT)
    e.pack(side=LEFT)
     
     
     
     
    #Création asteroide
    astero = can1.create_image(0,0,image=asteroide)
    astero1= can1.create_image(0,0,image=asteroide)
    astero2= can1.create_image(0,0,image=asteroide)
    astero3= can1.create_image(0,0,image=asteroide)
    astero4= can1.create_image(0,0,image=asteroide)
    astero5= can1.create_image(0,0,image=asteroide)
     
    L = [astero , astero1, astero2, astero3];
     
    #debut de grille
    a=0
    b=0
    while a!= 17:
        a=a+1
        drawline()
     
     
    while b!= 35:
        b=b+1
        drawline2()
     
    #fin de grille
     
     
     
    # Bouton Quitter et tourelles  
    chaine = Label(fen1) 
    chaine.pack() 
     
    bou_out = Button(fen1,image=quitter,command=fen1.quit) 
    bou_out.pack(side=RIGHT, padx =3, pady =3) 
     
    bou1 = Button(fen1,image=roquettes,command=clic_roquettes) 
    bou1.pack(side=LEFT, padx =3, pady =3) 
     
     
    bou2 = Button(fen1,image=glace,command=clic_glace) 
    bou2.pack(side=LEFT, padx =3, pady =3) 
     
    bou3 = Button(fen1,image=flammes,command=clic_flammes) 
    bou3.pack(side=LEFT, padx =3, pady =3) 
     
    bou4 = Button(fen1,image=laser,command=clic_laser) 
    bou4.pack(side=LEFT, padx =3, pady =3)
     
    #Lancement de la boucle de l'asteroide 
    firstmouv()
     
    #fin
    fen1.mainloop()
    fen1.destroy()

  5. #5
    Futur Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Avril 2014
    Messages
    12
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 27
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Avril 2014
    Messages : 12
    Points : 7
    Points
    7
    Par défaut
    J'ai trouver la réponse a ma question, il fallait que je créer un liste avec l'emplacement des lignes pour ensuite pouvoir les supprimer.

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Problème Tower Defense ISN
    Par scorcx dans le forum Programmation multimédia/Jeux
    Réponses: 0
    Dernier message: 15/04/2014, 08h04
  2. [Projet terminé] Extreme Carnage [2D SDL] (shoot/tower defense)
    Par Lightness1024 dans le forum Projets
    Réponses: 2
    Dernier message: 14/04/2010, 15h34
  3. [Projet en cours] Recherche Artistes - Empire Defense - Multijoueur Tower Defense
    Par Crystalin dans le forum Projets
    Réponses: 2
    Dernier message: 17/11/2009, 12h18
  4. [DS] [homebrew] Warcraft : tower defense
    Par gege2061 dans le forum Consoles
    Réponses: 0
    Dernier message: 17/09/2008, 10h33
  5. Warcraft 3 Tower Defense
    Par bakaneko dans le forum Web
    Réponses: 23
    Dernier message: 26/01/2007, 17h14

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo