有人对游戏编程作业有什么想法吗?
就像 给我一份 C 作业 的作者一样,我正在寻找学习游戏编程,我通过实践学得最好,但我没有任何关于游戏编程的好主意,这些主意可以教我技能,而且图形可以免费提供给谁。
我已经编写了一个基本的吃豆人游戏,但除此之外我还没有做过任何其他游戏。
理想情况下,我想要 2-3 个或更多作业,每个作业都比前一个更高级,所以也许第一个游戏是非常基本的东西,下一个游戏会更高级,第三个游戏甚至更高级,依此类推。
我想使用Java小程序作为游戏平台,但这应该不重要,大多数可以用C/flash等编写的游戏也应该可以翻译为java。
谢谢
Much like the author of Give me an assignment in C, I'm looking to learn game programming and I learn best by doing, but I don't have any good ideas for games to program which will teach me the skills and for whom the graphics are freely available.
I have written a basic pacman game but apart from that I haven't done any other games.
Ideally I would like 2-3 or more assignments, each more advanced than the previous one, so perhaps the first game would be something very basic, the next would be more advanced, and the 3rd even more advanced, and so on.
I want to use Java applets as the platform for the games, but that shouldn't matter too much, most games which can be written in C/flash etc should also be translatable to java.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(15)
制作一个基本的“尽可能长时间地逃离怪物”的游戏。然后:
Make a basic "run away from the monster for as long as possible" game. Then:
只需启动您最近的游戏机或手持游戏系统,然后打开您最喜欢的游戏之一...里面可能会有迷你游戏,只需继续尝试复制其中一个即可。
《生化奇兵》里有“黑客”小游戏,《幻影沙漏》里有打捞小游戏,例子都已经讲完了。
大多数这些迷你游戏都有相当简单的机制,您应该能够非常快速地实现基本功能。其中大多数也经过了高水平的润色,因此您可以花时间尝试让您的副本表现正确。例如,打捞迷你游戏的第一遍将有 1:1 控制……稍后您可以添加物理功能,使控制变得更马虎,让游戏更具挑战性。
只需看看您喜欢的游戏并尝试复制,然后最终改进它们。
Just fire up your closest console or handheld game system and open one of your favorite games... inside you'll probably have mini-games, just go ahead and try to duplicate one of those.
In Bioshock there was the "hacking" mini-game, in Phantom Hourglass there was the salvage mini-game, examples are all over.
Most of these mini-games have fairly simple mechanics, you should be able to implement the basic functionality very quickly. Most of them also have a high level of polish, so you can spend time trying to get your copy to behave correctly. For example, a first-pass of the salvage mini-game would have 1:1 control... later you could add physics to make the control be a little sloppier and the game more challenging.
Just look at the games that you enjoy and try to copy, then eventually improve them.
作为一名计算机科学专业的学生,我们实际上被分配了游戏创建作业! :D
在实现游戏之前,您应该尝试实现游戏的功能。在真正开始制作游戏之前,我花了很多时间构建自己的框架。
尝试以下操作:
然后将两者结合起来:
然后更高级:
这是我在创建游戏时使用的方法。从小事做起,让每个功能相互配合,然后根据您想要的实际游戏机制组合功能! :D
Being a Computer Science Student, we actually were given game creating assignments! :D
You should try implementing features of a game before implementing a game. I spent a lot of time building my own framework before i actually started on a game.
Try things like:
Then combine both:
Then get even more advanced:
This is the sort of methodology I use when creating games. Start small, make each feature work with each other, then combine features for the actual game mechanics you want! :D
您可以尝试生命游戏,这是一个非常好的状态机编码示例。
3d 魔方也会很有趣!
You can try Game of Life which is a very good example of coding state machines.
3d Rubik's Cube would be fun too!
既然您已经编写了吃豆人,为什么不编写一个 3D 多人吃豆人游戏呢?
Since you already wrote pac-man, why not write a 3D multi-player pac-man game.
我会选择 2D 平台游戏,然后选择 3D 游戏。
I Would go for a 2D Platform game, and then for a 3D Game.
在高级函数式编程课程中,我们被分配编写一个 Rogue-like。原因是可以找到大量有关所使用算法的文档。你可以随心所欲地设置它的难度。你将学到很多关于算法、人工智能写作(同样,你可以根据自己的喜好设置难度)和游戏规则,而不会因为为界面创建奇特的设计而分心。
In an advanced Functional Programming course we were assigned to write a Rogue-like. The reason for this is that there is a lot of documentation to be found about the algorithms used. You can make it as hard as you want. You'll learn a lot about algorithms, AI writing (again, you can make it as hard as you like) and game rules without being distracted by creation fancy designs for your interface.
如果您还没有想要制作的游戏,为什么要学习游戏编程?
其他游戏创意可能包括:
但游戏编程不仅仅是复制游戏玩法。如果您想学习,无论您正在制作什么游戏,请考虑接近以下一些方面:
Why do you want to learn game programming, if you don't already have games that you want to make?
Other game ideas could include:
But game programming is more than just replicating gameplay. If you want to learn, consider approaching some of the following aspects, whatever game you're making:
对于一款入门主机游戏来说,没有什么比 Nim 更好的了。为什么?这是基本的游戏策略+人工智能编程+数学技能
For a starting console game, few things beat Nim. Why? It's basic game strategy + AI programming + math skills
我猜既然你已经编写了一个基本的吃豆人游戏,你就已经知道像双缓冲这样的重要事情了。对于下一个项目,您可以进入更复杂的游戏世界,这需要碰撞检测和模拟大量 NPC。例如,一个简单的赛车游戏,用于了解更多有关处理用户输入、检测碰撞、针对对手的简单 AI,当然还有一些游戏物理知识。
I'm guessing since you already programmed a basic pacman game you already know important things like double buffering. For the next project you could advance to more complex game worlds which require collision detection and simulation of a lot of NPCs. For example, a simple racing game to learn more about handling user input, detecting collisions, a simple AI for the opponents and, of course, a little gaming-physics.
以下是基本游戏的两个想法:
Here's two ideas for basic games:
编写一个简单的 2d 自上而下视图游戏,在其中控制一些飞机,并必须通过使它们相互碰撞、自己射击或使用诱饵来避免红外制导导弹。导弹(和你的飞机)应该沿着弯曲的路径飞行,所以你需要使用一些三角学来让事情看起来很漂亮。你可以添加各种各样的东西,比如能量提升、新型导弹、其他船只、更好的跟踪 AI 等等。你还可以将其设为 3D 或多人游戏。
Write a simple 2d top down view game where you control some aircraft and have to avoid infrared guided missiles by making them collide into each other, shooting them yourself, or using decoys. The missiles (and your aircraft) should go in curvy paths so you'll need to use some trigonometry to make things look nice. You can add all sorts of things like power ups, new types of missiles, other ships, better tracking AI, etc. You could also make it 3D or multiplayer.
创建一个小库存引擎。这是一个有用的部分,对于任何数量的游戏风格都至关重要
Create a little inventory engine. This is a useful bit that is vital to any number of game styles
《太空入侵者》是一款很好玩的游戏,这是我们在 CompSci 课程中编写的第一个图形项目。
Space invaders is a good game to go with, that was the first graphic project we coded in my CompSci class.
设计三张牌游戏。
一副牌有四种类型,即黑桃、梅花、红心和黑桃。钻石。每个有 13 个值。
设计一个算法来随机挑选 12 张卡。
将挑选的卡片分发给 4 名不同的玩家。
显示获胜玩家姓名
从高到低的牌排名
A 排名最高,2 最低
踪迹(三张相同) )
纯序列
序列
颜色
对
高卡
Design Three Card Game.
A card deck has four types i.e. Spade, Club, Heart & Diamond. Each having 13 values.
Design an algorithm to randomly pick 12 Cards.
Distribute the picked card to 4 Different players.
Display the name of Winning Player
Ranking of the cards from high to low
Aces are ranked the highest and 2's are the lowest
Trail (three of a kind)
Pure Sequence
Sequence
Color
Pair
High Card