📄 readme
字号:
This directory contains the source code for a simple game called Xinuworm. The game started as a lab assignment for CS503, our operatingsystems class, and was ported to Sun3 Xinu to use for testing anddebugging. It is intended as a simple example of some of thecapabilities of Xinu, and not as a full-fledged game. The game isprocess and message passing based. Part of the assignment was towrite a "wide message" passing scheme, that could send messages ofmultiple words to other processes using a simple procedure call style.The game contains the following communicating processes:plotter: Responsible for all screen outputmover: Responsible for accepting keyboard input and moving the player's worm figure.robot: A robot is created as an opponent. It always heads for the target.targeter: In charge of placing and timing out the target on the screen.referee: Watches the game at low priority and looks for players hitting the target, or running into the walls.Interaction between the processes is handled by using the existingXinu low level message passing, or the new "wide" messages forcommunicating with the plotter.Since Xinu does not support anything like "curses", it is necessary tohard code the strings necessary to clear the screen, and to positionthe cursor to a random point on the screen. These constants are givenin the file "game.h", and presently work on xterm, vt100, and raw Sunterminals. Shawn Ostermann
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -