启动图形&游戏编程(Java和或许C ++) [英] Starting Graphics & Games Programming (Java and maybe C++)

查看:177
本文介绍了启动图形&游戏编程(Java和或许C ++)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直对创建自己的游戏感兴趣,现在在大学,我有机会使用Java和C ++为那些倾向于使用Java的人创建一些2D和3D游戏。

I've always had an interest in creating my own games, and now at university I have the opportunity to create some 2D and 3D games using Java and C++ for those who are that way inclined.

我从来没有真正编程过一个游戏,更不用说图形了,所以我对这个领域完全陌生。在今天快速浏览图书馆之后,我发现了很少的关于开始2D游戏开发甚至Java或C ++的图形编程的信息。我可以在Java中以合理的水平编程,但我从来没有触及过C ++。

I've never really programmed a game before, let alone graphics, so I'm completely new to the area. After a quick trip to the library today I came across very little information on starting 2D game development or even graphics programming in Java or C++. I can program in Java at a reasonable level, but I have never touched C++.


  1. Java或C ++?

  2. 我没有C ++经验,但我已经在C和Java中编程,在两个方面都感觉相当舒适。当我们注意到重要的标记时,我应该跳转到C ++吗?我在游戏编程中听到很多关于C ++的好东西,所以我不确定对我来说最好的选择是什么。

  3. 我想要写一个2D游戏在我自己的时间有点开心,我开始进入大学的繁重工作。任何人都可以为有兴趣使用OpenGL和Java / C ++编写自己的游戏的人推荐一些好的资源。

  4. 对于那些跟随我的其他问题的人,我在数学上很可怕,甚至基础的知识。这对我来说是一个严重的问题吗?如果我需要数学知识,你推荐我刷什么?

  1. Can someone recommend any good books on starting Graphics Programming in Java or C++?
  2. I have no C++ experience, but I've programmed in C and Java and feel reasonably comfortable in both. Should I take the jump and dive into C++ when important marks are at stake? I hear a lot of good things about C++ as far as Games Programming goes so I'm unsure as to what is the best option for me.
  3. I'm looking to write a 2D game in my own time for a bit of fun before I start getting into the heavy work at university. Can anyone recommend some good resources for those interested in writing their own games using OpenGL and Java/C++.
  4. For those who have followed my other questions here I am terrible at Maths and hold very little knowledge of even the foundations. Is this going to be a serious problem for me? If I were to need Math knowledge what do you recommend I brush up on?

如果我的问题看起来有点模糊,我是一个完整的新手,当涉及到很多这些话题。

I apologise if my questions seem a bit vague, as I'm a complete newbie when it comes to a lot of these topics. Any help you could provide would be much appreciated.

编辑:我已经签出了题为游戏编程,但发现它不能真正满足我的具体问题。

I've already checked out the question titled "game programming", but have found it to not really cater for my specific questions.

推荐答案

我现在正在经历类似的过程。我发现以下网站有帮助,它有一个伟大的教程(Java中的空间侵略者):

I am going through a similar process to you at the moment. I found the following site helpful, it has a great tutorial (space invaders in Java):

http://www.cokeandcode.com/node/6

您可以获取源代码并混淆它。你可能会从IDE中受益,如果你还没有收藏,你可以尝试Netbeans(netbeans.org)是免费的,我认为它是相当不错。

You can get the source code and mess around with it. You will probably benefit from an IDE, if you don't already have a favorite you could try Netbeans (netbeans.org) which is free and I think it's pretty good.

对于这本书是好的(以java为中心):

As for books this one is OK (it's java-centric):

http://www.amazon.com/Killer-Game-Programming-Andrew-Davison/dp/0596007302

我个人决定使用Java进行游戏(现在),因为我非常喜欢Java,而且使用C ++也不那么容易。但你会发现大多数人使用C ++的商业游戏。实际上,我开始与pygame(python游戏框架),这也是很好的开始,特别是如果你知道python。

I personally decided to use Java for games (for now) because I am very comfortable with Java and far less so with C++. But you will find that most people use C++ for commercial games. Actually I started with pygame (python games framework) which is also nice to get started, especially if you know python.

这篇关于启动图形&游戏编程(Java和或许C ++)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆