2016年3月23日

Understanding Unix/Linux Programming-事件驱动编程:编写一个视频游戏

摘要: 通过这个例子呢,作者希望我们了解更多的Unix系统服务,一些基本的原则,和操作系统的设计技术 考虑两人参与的星际旅行视频游戏,车给你需创立行星、流星、飞船和其他物体的影像,并使他们移动。每个物体有自己的移动速度、方向、动力和其他一些属性。物体之间相互作用,可能碰撞。 游戏需要同时响应用户输入。玩家通 阅读全文

posted @ 2016-03-23 13:12 H.D 阅读(417) 评论(0) 推荐(0) 编辑

Understanding Unix/Linux Programming-用户程序play_again4.c

摘要: 1 /* play_again4.c 2 * When no is input , restore the tty settings 3 */ 4 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 12 #define ASK "D... 阅读全文

posted @ 2016-03-23 09:39 H.D 阅读(279) 评论(0) 推荐(0) 编辑

导航