Learn Game Programming with Ruby: Bring Your Ideas to Life with Gosu (Paperback)

Mark Sobkowicz

  • 出版商: Pragmatic Bookshelf
  • 出版日期: 2015-09-13
  • 售價: $1,100
  • 貴賓價: 9.5$1,045
  • 語言: 英文
  • 頁數: 208
  • 裝訂: Paperback
  • ISBN: 1680500732
  • ISBN-13: 9781680500738
  • 相關分類: Ruby
  • 已絕版

買這商品的人也買了...

商品描述

Level up your programming skills while making fast-paced, arcade-style video games. Make enemy spaceships explode in balls of fire, and escape from a pit while dodging falling boulders. You'll use the fun and approachable Ruby programming language and the Gosu 2D game library, which makes making games a breeze. Gain the skills and techniques you need to bring your own video game ideas to life with moving images and thumping sounds.

If you have a little experience programming in Ruby or another language, then you're ready to start making your own video games. In this book you'll learn concepts such as animation, keyboard and mouse movement, sounds and music, and physics as you build four exciting games.

Your first game will test your reflexes as you try to click on a ruby that pops in and out of your screen. Learn how to draw images and text, and how to make objects move around the screen. You'll make a space-shooter where you defend your home base from a seemingly endless stream of enemies, as you discover how to use keyboard input, add music and sounds, an opening title screen, and scrolling end-credits. Next up: make a sliding number puzzle game where you'll learn to incorporate more complicated logic and user interaction into your game. Learn all about game physics as you build a game where a bold adventurer must climb out of a pit while dodging bouncing, spinning rocks. Finally, package up your games as Windows and Mac apps so you can share them with your friends.

When you're done with this book, you'll have improved your programming skills, and you'll have all the tools you need to make your own arcade-style games.

What You Need:

You'll need a computer running Windows 7 or later, or Mac OS X 10.7 or later. All the other software you need is free, and the first chapter will get you up and running.

商品描述(中文翻譯)

在製作快節奏、街機風格的視頻遊戲時,提升你的程式設計技能。讓敵方太空船爆炸成火球,並在躲避落下的巨石時逃離坑洞。你將使用有趣且易於上手的 Ruby 程式語言和 Gosu 2D 遊戲庫,讓製作遊戲變得輕鬆自在。通過移動圖像和震撼音效,獲得將你自己的視頻遊戲點子實現的技能和技巧。

如果你有一點 Ruby 或其他程式語言的編程經驗,那麼你就準備好開始製作自己的視頻遊戲了。在這本書中,你將學習動畫、鍵盤和滑鼠移動、音效和音樂以及物理學等概念,同時構建四個令人興奮的遊戲。

你的第一個遊戲將測試你的反應能力,當一顆紅寶石在你的屏幕上出現和消失時,你需要點擊它。學習如何繪製圖像和文字,以及如何使物體在屏幕上移動。你將製作一個太空射擊遊戲,在這個遊戲中,你需要保護你的家園免受看似無窮的敵人襲擊,同時探索如何使用鍵盤輸入、添加音樂和音效、開場標題畫面和滾動結尾字幕。接下來,製作一個滑動數字拼圖遊戲,你將學習將更複雜的邏輯和用戶互動融入遊戲中。在構建一個大膽的冒險者必須在躲避彈跳、旋轉的岩石的同時爬出坑洞的遊戲中,學習所有關於遊戲物理學的知識。最後,將你的遊戲打包成 Windows 和 Mac 應用程式,這樣你就可以與朋友分享。

當你完成這本書時,你的程式設計技能將得到提升,你將擁有製作自己的街機風格遊戲所需的所有工具。

你需要一台運行 Windows 7 或更新版本,或者 Mac OS X 10.7 或更新版本的電腦。你所需的其他軟體都是免費的,第一章將幫助你快速上手。