Mensagensdamanha - Tin tức tổng hợp cho mọi người mọi nhà
  • Home
  • Nội Thất
  • Xây Dựng
  • Ẩm Thực
  • Chứng Khoán
  • Công Nghệ
No Result
View All Result
  • Home
  • Nội Thất
  • Xây Dựng
  • Ẩm Thực
  • Chứng Khoán
  • Công Nghệ
No Result
View All Result
Mensagensdamanha - Tin tức tổng hợp cho mọi người mọi nhà
No Result
View All Result

Writing 2D Games in C using SDL by Thomas Lively

admin by admin
June 29, 2020
in Game
44
Writing 2D Games in C using SDL by Thomas Lively



SDL, the Simple DirectMedia Layer, is the cross-platform game library used in everything from small indie games to Valve’s blockbuster triple-A games to other applications with rich media needs. This seminar will teach you how to use this powerful C library to write your own 2D games. We will talk about the structure of game code and cover the installation and initialization of the SDL library, the creation and management of the game window, how to draw images onto the window, and how to handle keyboard and mouse input. By the end of the seminar you will have created a small demo that you can later build on as much as you want.

Nguồn: https://mensagensdamanha.com/

Xem thêm bài viết khác: https://mensagensdamanha.com/game/

Xem thêm Bài Viết:

  • Hướng dẫn chơi game bắn cá nạp thẻ bit tại nhà cái Dabet
  • FAKER HARD CARRY WITH TRISTANA MID! – SKT T1 Faker Plays Tristana vs Pantheon Mid! | Faker KR SoloQ
  • Forza Horizon 3 | Recreating 2 Fast 2 Furious
  • Jaws Unleashed – PS2 Gameplay Playthrough 1080p Part 1
  • GameCube Intro (Hip-Hop Remix) – GHETTO CUBE // I am Jemboy
Previous Post

Best Of EDM !! → Nghe là Nghiện! Tổng Hợp Những Bản Nhạc Điện Tử Hay Nhất 2017

Next Post

CẬP NHẬT GIÁ THÉP XÂY DỰNG THÁNG 4 NĂM 2020 -Xây Nhà Trọn Gói

Next Post
CẬP NHẬT GIÁ THÉP XÂY DỰNG THÁNG 4 NĂM 2020 -Xây Nhà Trọn Gói

CẬP NHẬT GIÁ THÉP XÂY DỰNG THÁNG 4 NĂM 2020 -Xây Nhà Trọn Gói

Comments 44

  1. Locomotive Re44 says:
    2 years ago

    sudo apt install mono-devel
    sudo apt install mflag
    linux

    Reply
  2. Герри Питт says:
    2 years ago

    Thanks, man! Really really helpful introduction to SDL!

    Reply
  3. abdulkerim yalçın says:
    2 years ago

    can you write a game using allegro library in c can you heelp men thanks

    Reply
  4. Harris crews says:
    2 years ago

    If you're on macOS and your window doesn't seem to be popping up (as it was not for me), it's because you need to poll for events. It seems that on the creation of the window there are a few events that are queued before the window appear event. So try something like this:

    SDL_Event event;
    bool isRunning = true;

    while (isRunning) {
    while (SDL_PollEvent(&event)) {
    if (event.type == SDL_QUIT) {
    isRunning = false;
    }
    }
    }

    instead of using the delay method. Hope this helps!

    Reply
  5. David Demelier says:
    2 years ago

    Please note that your makefile is not portable as it requires GNU make. Also the include convention is SDL.h not SDL/SDL.h.

    Reply
  6. RainingArtillery says:
    2 years ago

    This is for when C++ just doesn't bring enough tears and pain

    Reply
  7. Giancarlo Andre Bravo Abanto says:
    2 years ago

    damn lm about to watch this video.

    what l was doing all this years?

    Reply
  8. Manuel Kvarda says:
    2 years ago

    I spend some time looking for lerning materal for game development wit C. I did not find annything useful. If i found something SDL based it was about C++ and not C. So is it just my personal preference which language i choose at the énd ? what are the benefits of using pure C insead of C++ with SDL ?

    Reply
  9. karim kohel says:
    2 years ago

    cs5 does it again. thank you guys so much for everything

    Reply
  10. Syed Baryalay says:
    2 years ago

    great presentation mate, nice intro this crazy hell

    Reply
  11. Téssio Fechine says:
    2 years ago

    There's no libsdl2-dbg package in Ubuntu anymore.

    Reply
  12. DashL says:
    2 years ago

    When I run this it just says not responding and the window never appears, there is no error though, and it waits 5 seconds and then quits. (I am on mac)

    Reply
  13. UltimatePiccolo says:
    2 years ago

    I appreciate the tutorial, but why the hell linux? Why not default to Windows?

    Reply
  14. Junior Santos Gerry says:
    2 years ago

    and how configure SDL to Visual Studio 2010?

    Reply
  15. Digital Insan1ty says:
    2 years ago

    My PC runs linux. PC is not another word for Windows.

    Reply
  16. Salim Trabelsi says:
    2 years ago

    thanks man its really helpful 😍❤❤

    Reply
  17. Rose Black says:
    2 years ago

    Hello,thank your video,where tutorial code that download them?
    https://manual.cs50.net/appliance/2015/
    this link can't open and download.

    Reply
  18. Hsin Hung Lin says:
    2 years ago

    Most SDL demo video I find on the youtube is C++ in Windows, and thank you for making a demo in C and Linux.

    Reply
  19. Rambabu Upreti says:
    2 years ago

    I am bachelor 1st year student and i wanna learn c to the fullest
    Idk the codes how can i learn the graphics code and other code.
    Is there any book.?
    Please help me anyone😕

    Reply
  20. Decrypt Blessing says:
    2 years ago

    But where is the game dude?
    I have an example. This rpg has been made with allegro and sdl.
    You can switch between them.

    https://www.youtube.com/watch?v=nuLi_lB6c4Y

    Reply
  21. The Ultimate Lizard says:
    2 years ago

    You were wrong about Unions. They are made to store only one of the specified types of data, and they output only one and the most recently added data. They don't store 'the largest data' in it, as you said.

    Reply
  22. The Ultimate Lizard says:
    2 years ago

    Thank you, Dr. Chase, that was very helpful.

    Reply
  23. Marcelino Borges says:
    2 years ago

    Don't we have cs50 appliance available to download anymore??

    Reply
  24. Vishal says:
    2 years ago

    Awesome presentation! I am new to SDL 2 programming and loved it. Thank you!

    Reply
  25. SCVG dương says:
    2 years ago

    huhu Im vietnamese I don stan enythink

    Reply
  26. Abraham Manuel says:
    2 years ago

    Loved this video

    Reply
  27. Alex Falsh says:
    2 years ago

    Спасибо большое за видео! мы изучаем эту библиотеку в университете, но преподаватели не очень хорошо нам её объясняют. Мы даже не догадывались, что есть официальный сайт с подробным описанием каждой функции.

    Reply
  28. Nyume says:
    2 years ago

    So I'm planning to make a small platformer for my Data Structure class, this tutorial helped me A LOT to understand and begin the development.
    Next step, reading the documentation!

    Reply
  29. Dgafecb says:
    2 years ago

    CXXXXXX

    Reply
  30. Gadour Mn says:
    2 years ago

    Is this useful for windows compiles?

    Reply
  31. Evil Diesel says:
    2 years ago

    Excellent tutorial! Gonna give it a bash now:)

    Reply
  32. Michael Woodruff says:
    2 years ago

    Hey thanks guy. I've been using lazy foo's tutorial to get farmiliar with sdl, but I think I'll start using the wiki now.

    Reply
  33. Chester Hackenbush says:
    2 years ago

    Excellent!

    Reply
  34. plushoom says:
    2 years ago

    awesome

    Reply
  35. Shrek V says:
    2 years ago

    Thank you mit

    Reply
  36. Josh Li says:
    2 years ago

    This has rendered great help and allowed me to surface above a lot of troubles, thank you. Deserves better applause at the end.

    Reply
  37. Mo says:
    2 years ago

    I was wondering if anybody has difficulties installing libsdl2-dbg. For some reason it doesn't find the package on ubuntu 17.04 zesty. When I add a different source it does find the package but shows me: The following packages have unmet dependencies:
    libsdl2-dbg : Depends: libsdl2-2.0-0 (= 2.0.2+dfsg1-3ubuntu1.1) but 2.0.5+dfsg1-2ubuntu3 is to be installed

    Any advise on how to solve this?
    Thanks in advance 🙂

    I am running:
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 17.04
    Release: 17.04
    Codename: zesty

    Reply
  38. Zayani Meriam says:
    2 years ago

    Undefined reference to SDL_INIT . why? I installed sdl just like in the tutorial?

    Reply
  39. Zayani Meriam says:
    2 years ago

    Why doesn t this work for meeee T-T

    Reply
  40. Zayani Meriam says:
    2 years ago

    when I try to run the make file I get this error :
    clang : not found
    recipe for target (blabla) failed

    Reply
  41. Amchy says:
    2 years ago

    how to dwonload this

    Reply
  42. Wicqed Eyebot says:
    2 years ago

    Please help me, I am stuck at when I type make. It came up with this: make: * No rule to make target 'hello_window.o', needed by 'game'. Stop.

    Reply
  43. Fabrice Irambona says:
    2 years ago

    That's an awesome introduction but I still have a small problem https://github.com/tlively/sdl_seminar.git this link works well but I can't sdl_seminar-master

    Reply
  44. Red Queen Official says:
    2 years ago

    Awesome

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Xem Thêm

[COMPUTEX 2019] Quick review: Phím cơ xài switch gì mà  lạ thế ???

[COMPUTEX 2019] Quick review: Phím cơ xài switch gì mà lạ thế ???

June 29, 2020
[Đồ chơi] Bàn phím cơ Blue Switch Kailh fullsize LED Rainbow giá rẻ chỉ 600k – Tony Phùng

[Đồ chơi] Bàn phím cơ Blue Switch Kailh fullsize LED Rainbow giá rẻ chỉ 600k – Tony Phùng

June 26, 2020
[Tân Sơn Hội] HƯỚNG DẪN LÀM MỘC | bàn ghế quán cafe bằng gỗ pallet đơn giản

[Tân Sơn Hội] HƯỚNG DẪN LÀM MỘC | bàn ghế quán cafe bằng gỗ pallet đơn giản

June 29, 2020
#dothocung BÀN THỜ TREO TƯỜNG – bàn thờ PHẬT

#dothocung BÀN THỜ TREO TƯỜNG – bàn thờ PHẬT

June 28, 2020
#noithatgiare Bàn thờ ông địa thần tài kích thước siêu to khổng lồ ( hàng hiếm)

#noithatgiare Bàn thờ ông địa thần tài kích thước siêu to khổng lồ ( hàng hiếm)

June 25, 2020
#noithatgiare Bàn thờ thần tài thổ địa mẫu mới nhất 2020

#noithatgiare Bàn thờ thần tài thổ địa mẫu mới nhất 2020

June 29, 2020
  • Chính Sách Bảo Mật
  • Liên Hệ

© 2022 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Nội Thất
  • Xây Dựng
  • Ẩm Thực
  • Chứng Khoán
  • Công Nghệ

© 2022 JNews - Premium WordPress news & magazine theme by Jegtheme.