TAILIEUCHUNG - Programming Linux Games phần 10

Linux là 1 HĐH mạng theo đúng nghĩa của nó, các dịch vụ telnet, ssh, web, ftp, firewall. được phát triển từ bản Linux đầu tiên. Cluster - cách ghép nhiều máy tính yếu thành 1 máy tính mạnh hơn đã có mặt từ nhiều năm trước. Remote Control đã đi trước windows một bước dài ( dịch vụ này mới có mặt trong Windows XP). Có thể nói Linux sinh ra cho Network - Networking OS | FINISHING PENGUIN WARRIOR 369 SDL_Surface dest int x int y int row col SDL_Rect srcrect destrect Uint8 leds disp- on_image- w disp- on_image- h 0 0 destrect srcrect SDL_LockSurface disp- led_surface leds Uint8 disp- led_surface- pixels for row 0 row disp- phys_h row for col 0 col disp- phys_w col int led col disp- on_image- w x row disp- on_image- h y led leds row disp- virt_y disp- led_surface- pitch col disp- virt_x if led SDL_BlitSurface disp- on_image srcrect dest destrect else SDL_BlitSurface disp- off_image srcrect dest destrect SDL_UnlockSurface disp- led_surface Draws a 5x5 bitmapped character to the given 8-bit SDL surface. static void DrawChar5x5 SDL_Surface dest char ch Uint8 color int x int y 370 CHAPTER 9 char data Uint8 pixels int sx sy data Font5x5 int ch if SDL_MUSTLOCK dest SDL_LockSurface dest pixels Uint8 dest- pixels for sy 0 sy 5 sy for sx 0 sx 5 sx if data 5 sy sx pixels dest- pitch y sy x sx color else pixels dest- pitch y sy x sx 0 SDL_UnlockSurface dest End of LED stuff. Back to the world of Penguin Warrior. A temporary buffer for the characters currently on the display. define SCROlLeR_BUF_SIZE 10 char scroller_buf SCROLLER_BUF_SIZE Message to scroll. This can be changed. const char scroller_msg Welcome to Penguin Warrior int scroller_pos 0 int scroller_ticks 0 Various LED displays that appear on the Penguin Warrior screen. LED_Display player_score player_shields player_charge LED_Display opponent_score opponent_shields LED_Display status_msg FINISHING PENGUIN WARRIOR 371 int InitStatusDisplay void if LED_CreateDisplay player_score 12 5 12 5 0 return -1 if LED_CreateDisplay player_shields 12 1 12 1 0 return -1 if LED_CreateDisplay player_charge 80 1 80 1 0 return -1 if LED_CreateDisplay opponent_score 12 5 12 5 0 return -1 if LED_CreateDisplay .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.