YARIŞÇI

Python
# =============================
# PARALARI TOPLA
# =============================

def on_on_overlap(hero_sprite2, coin_sprite):
    info.change_score_by(1)
    coin_sprite.destroy(effects.spray, 100)
    if info.score() >= 10:
        game.over(True, effects.star_field)
        music.play(music.create_song(hex("""
                0078000408020100001c00010a006400f40164000004000000000000000000000000000500000430000400080001200c001000012414001800012418001c00011d20002400012024002800012728002c000124300034000120
                """)),
            music.PlaybackMode.UNTIL_DONE)
sprites.on_overlap(SpriteKind.player, SpriteKind.food, on_on_overlap)

# =============================
# DÜŞMAN VURUŞU
# =============================

def on_on_overlap2(hero_sprite, enemy_sprite):
    info.change_life_by(-1)
    enemy_sprite.destroy(effects.fire, 100)
sprites.on_overlap(SpriteKind.player, SpriteKind.enemy, on_on_overlap2)

coin: Sprite = None
enemy: Sprite = None
# =============================
# KUKLA(KARAKTERLER) RESİMLERİ
# =============================
hero_image = img("""
    . . . . . . . .
    . . . . . . . .
    . 8 8 8 8 8 8 .
    . 8 6 8 8 6 8 .
    6 8 8 8 8 8 8 6
    . 8 8 8 8 8 8 .
    . 8 8 8 8 8 8 .
    . . 6 . . 6 . .
    """)
coin_image = img("""
    . . . . . . . .
    . . a a a a . .
    . a a a a a a .
    . a a 9 9 a a .
    . a a 9 9 a a .
    . a a a a a a .
    . . a a a a . .
    . . . . . . . .
    """)
enemy_image = img("""
    . . . . . . . .
    . f f f f f f .
    . f f f f f f .
    . f a f f a f .
    . f f f f f f .
    . f f a a f f .
    . f a f f a f .
    . f f f f f f .
    """)
# =============================
# BAŞLANGIÇ EKRANI
# =============================
game.splash("ENDERMANDAN KAÇ", "Başlamak için BOŞLUK tuşuna basın")
# =============================
# OYUN KURULUMU
# =============================
scene.set_background_color(5)
info.set_score(0)
info.set_life(5)
# =============================
# KAHRAMAN
# =============================
hero = sprites.create(hero_image, SpriteKind.player)
hero.set_position(25, 60)
hero.set_stay_in_screen(True)
controller.move_sprite(hero, 0, 100)
# =============================
# DÜŞMANLAR YARATMA
# =============================

def on_update_interval():
    global enemy
    enemy = sprites.create(enemy_image, SpriteKind.enemy)
    enemy.set_position(155, randint(15, 105))
    enemy.set_velocity(-90, 0)
    enemy.set_flag(SpriteFlag.AUTO_DESTROY, True)
game.on_update_interval(1400, on_update_interval)

# =============================
# PARALARI YARATMA
# =============================

def on_update_interval2():
    global coin
    coin = sprites.create(coin_image, SpriteKind.food)
    coin.set_position(155, randint(15, 105))
    coin.set_velocity(-70, 0)
    coin.set_flag(SpriteFlag.AUTO_DESTROY, True)
game.on_update_interval(900, on_update_interval2)
zeynepdurukasap7955
Sign in to react
2
Uploaded Jul 23, 2026

Published feedback

Robby
InimitableRobby
Updated Aug 2, 2026

Zeynep Duru Kasap, oyunun içindeki karakterlerin ve objelerin renkli ve eğlenceli tasarımı, oyuncunun dikkatini çekiyor ve oyun deneyimini daha keyifli hale getiriyor.

YARIŞÇI projenle oyunculara heyecan verici bir mücadele sunuyorsun, bu fikri daha da geliştirerek oyununu daha ilginç hale getirebilirsin!