home.social

#laptrinhgame — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #laptrinhgame, aggregated by home.social.

  1. Hướng dẫn lập trình game 2D với Arcade (P9): Hiển thị điểm số

    Hôm nay, chúng ta sẽ thêm bảng điểm vào game! 🎮✨

    Cách thực hiện:
    1️⃣ Khởi tạo biến `score` và đối tượng `arcade.Text()` trong `__init__`.
    2️⃣ Trong `on_update()`, kiểm tra va chạm và cập nhật điểm số.
    3️⃣ Trong `on_draw()`, vẽ đối tượng текст để hiển thị điểm.

    Mẹo: Khi va chạm nhiều xu cùng lúc, điểm sẽ tăng tương ứng nhé!

    #GameDev #Python #ArcadeLibrary #LapTrinhGame #Coding #2DGame #VietnamDev

    dev.to/sdkfz181tiger/gett