starting to code games
Page 1 of 2 Goto page 1, 2  Next
Nalo
nothing



Posts: 13438

PostPosted: Fri, 25th Jun 2010 19:35    Post subject: starting to code games
Looking to start some simple game programming. Has anyone here used SDL or allegro? Which is best? or any alternatives?

Any good book recommendations or online tuts would be helpful too. Smile

I figure there must be someone on this site that has made a game or two. Im guessing iNatan or garus


Last edited by Nalo on Mon, 10th Jan 2011 14:20; edited 1 time in total
Back to top
PumpAction
[Schmadmin]



Posts: 26759

PostPosted: Fri, 25th Jun 2010 19:46    Post subject:
Well leo will most probably tell you to use xna Smile


=> NFOrce GIF plugin <= - Ryzen 3800X, 16GB DDR4-3200, Sapphire 5700XT Pulse
Back to top
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel 🇮🇱
PostPosted: Fri, 25th Jun 2010 19:49    Post subject:
I would strongly recommend going the C#+XNA route for both 2D and 3D game programming learning. I'd go as far as saying that combination is potent enough for prime game programming. If you've had some practice with C++, moving to C# should be pretty straightforward, just little syntax relearning and Googling around for better programming practices on C# (the C++ approach might not be the best approach in C#). Then you can either take an XNA book, download it, or my favorite, just learn as you go. Don't know why, but I prefer this method, not some had guiding book which will lock you in certain design practices mentally, which might not be optimal for your own game ideas. Just think of a game, conceptualize it, and then start searching for suggestions and tutorials on how to use the provided tools for what you need. I recommend XNA, because it provides a tremendous amount of tools for algorithms, and content (sprites, textures, audio, video, models, shaders, etc) use and manipulation.

Edit
@PumpAction
Laughing
Well yes, I would recommend going the best way in my opinion. Wink
Back to top
Werelds
Special Little Man



Posts: 15098
Location: 0100111001001100
PostPosted: Fri, 25th Jun 2010 20:17    Post subject:
iNatan wrote:
just learn as you go. Don't know why, but I prefer this method

I've never been able to learn anything from the books. Tackling a problem and just figuring out the solution by searching the web gives you a much better understanding of WHY you're handling it in a particular way. This goes for things as stupid as HTML/CSS all the way down to assembly, which I've had the pleasure of programming in as well /o\

At least that's how it is for me Razz
Back to top
Nalo
nothing



Posts: 13438

PostPosted: Fri, 25th Jun 2010 23:29    Post subject:
⁢⁢


Last edited by Nalo on Wed, 3rd Jul 2024 07:07; edited 2 times in total
Back to top
garus
VIP Member



Posts: 34200

PostPosted: Fri, 25th Jun 2010 23:30    Post subject:
snip


Last edited by garus on Tue, 27th Aug 2024 21:26; edited 1 time in total
Back to top
PumpAction
[Schmadmin]



Posts: 26759

PostPosted: Sat, 26th Jun 2010 01:03    Post subject:
Nalo wrote:
iNatan wrote:
I would strongly recommend going the C#+XNA route for both 2D and 3D game programming learning. I'd go as far as saying that combination is potent enough for prime game programming. If you've had some practice with C++, moving to C# should be pretty straightforward, just little syntax relearning and Googling around for better programming practices on C# (the C++ approach might not be the best approach in C#). Then you can either take an XNA book, download it, or my favorite, just learn as you go. Don't know why, but I prefer this method, not some had guiding book which will lock you in certain design practices mentally, which might not be optimal for your own game ideas. Just think of a game, conceptualize it, and then start searching for suggestions and tutorials on how to use the provided tools for what you need. I recommend XNA, because it provides a tremendous amount of tools for algorithms, and content (sprites, textures, audio, video, models, shaders, etc) use and manipulation.

Edit
@PumpAction
Laughing
Well yes, I would recommend going the best way in my opinion. Wink


Thanks for the tips. I was going to stay clear of xna but Ill give it a look seeing as you highly recommend it, plus Ive been meaning to look into c# for a while, so i guess nows a good a time as any. Smile



The full object oriented approach in c# and java leads to a better and more understandable code too (imho). But I still love to fool around with javascript Smile (Well and I have a lot of JS to do at work so ... yeah Laughing)


=> NFOrce GIF plugin <= - Ryzen 3800X, 16GB DDR4-3200, Sapphire 5700XT Pulse
Back to top
Nalo
nothing



Posts: 13438

PostPosted: Sat, 26th Jun 2010 01:12    Post subject:
⁢⁢


Last edited by Nalo on Wed, 3rd Jul 2024 07:07; edited 2 times in total
Back to top
PumpAction
[Schmadmin]



Posts: 26759

PostPosted: Sat, 26th Jun 2010 01:29    Post subject:
Well no, I started almost 20 years ago and I'm <30 Laughing

But I killed a lot of time doing the same stuff instead of developing myself to never programming techniques Sad


=> NFOrce GIF plugin <= - Ryzen 3800X, 16GB DDR4-3200, Sapphire 5700XT Pulse
Back to top
VGAdeadcafe




Posts: 22230
Location: ★ ಠ_ಠ ★
PostPosted: Sat, 26th Jun 2010 01:52    Post subject:
Hmm, just ran a few samples of IronPython (for net 2.0) + XNA

Interesting.
Back to top
WhiteBarbarian




Posts: 6003
Location: Russia
PostPosted: Sat, 26th Jun 2010 02:14    Post subject:
Nalo wrote:
Am i right in thinking that most of you guys learned programming in college/uni? Thinking about going back into education myself because:

- Im fed up with minimum wage, slave labour, treat you like shit jobs
- i want to get my teeth stuck into something

ah fuck i should have made the most of school :/


God help ya, if you end up coding DB's front ends, mainstream shopping solutions for the small business, etc. it's the same minimum wage slave labour like at the factory floor but with constant overtime, and at the first sight of Indian coders quality improvement you job will be outsourced to them faster than you realize what the hell just happened Laughing


Back to top
Werelds
Special Little Man



Posts: 15098
Location: 0100111001001100
PostPosted: Sat, 26th Jun 2010 11:41    Post subject:
Nalo wrote:
Am i right in thinking that most of you guys learned programming in college/uni?

Negative, just like PumpAction I'm self-taught for the most part. Doing Software Engineering at uni now, but they basically also go "use language x to complete the task, gl". They allow us to decide for ourselves how we learn the languages Smile

For your paygrade though, getting a degree will be good. Only reason I'm doing it really, because it pretty much doubles the minimum I get just because of the degree Very Happy

@ WhiteBarbarian: So true. I work for a web studio, and our first client came up to us going: we'll be hiring some people in India to take over maintaining and improving the website.

Still wanted to use our servers and everything, so we're still charging them for that (even though it costs us virtually nothing), and their Indians are taking weeks to do what would take us a day Very Happy
Back to top
PumpAction
[Schmadmin]



Posts: 26759

PostPosted: Sat, 26th Jun 2010 14:54    Post subject:
pwerelds wrote:
Nalo wrote:
Am i right in thinking that most of you guys learned programming in college/uni?

Negative, just like PumpAction I'm self-taught for the most part. Doing Software Engineering at uni now, but they basically also go "use language x to complete the task, gl". They allow us to decide for ourselves how we learn the languages Smile

For your paygrade though, getting a degree will be good. Only reason I'm doing it really, because it pretty much doubles the minimum I get just because of the degree Very Happy

@ WhiteBarbarian: So true. I work for a web studio, and our first client came up to us going: we'll be hiring some people in India to take over maintaining and improving the website.

Still wanted to use our servers and everything, so we're still charging them for that (even though it costs us virtually nothing), and their Indians are taking weeks to do what would take us a day Very Happy


+1

@whitebarbarians post: +1 too ...

We had an indian in that place where I am now and it took him 2 months to do what I did in 3 days (and his version was buggy and not working )


=> NFOrce GIF plugin <= - Ryzen 3800X, 16GB DDR4-3200, Sapphire 5700XT Pulse
Back to top
VGAdeadcafe




Posts: 22230
Location: ★ ಠ_ಠ ★
PostPosted: Sat, 26th Jun 2010 15:45    Post subject:
It's a well-known fact that only white males can code properly.
Back to top
PumpAction
[Schmadmin]



Posts: 26759

PostPosted: Sat, 26th Jun 2010 16:23    Post subject:
No but not all indians are computer gurus. Just because they are cheap doesn't mean that they are skilled...


=> NFOrce GIF plugin <= - Ryzen 3800X, 16GB DDR4-3200, Sapphire 5700XT Pulse
Back to top
VGAdeadcafe




Posts: 22230
Location: ★ ಠ_ಠ ★
PostPosted: Sat, 26th Jun 2010 16:29    Post subject:
I was actually being serious !
Back to top
tainted4ever
VIP Member



Posts: 11335

PostPosted: Sat, 26th Jun 2010 20:48    Post subject:
VGAdeadcafe wrote:
It's a well-known fact that only white males can code properly.




Very Happy

Oh and <3 Indians.
Back to top
Nalo
nothing



Posts: 13438

PostPosted: Mon, 5th Jul 2010 22:23    Post subject:
⁢⁢


Last edited by Nalo on Wed, 3rd Jul 2024 07:06; edited 2 times in total
Back to top
garus
VIP Member



Posts: 34200

PostPosted: Mon, 5th Jul 2010 22:27    Post subject:
snip


Last edited by garus on Tue, 27th Aug 2024 21:26; edited 1 time in total
Back to top
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel 🇮🇱
PostPosted: Mon, 5th Jul 2010 22:29    Post subject:
Unfortunately, you will have to work with VS to get the most out of XNA. You can of course use something else, it is a .NET library after all, but VS does stuff which you will not be able to do easily on other IDEs unless you do it manually. For example, when you add shaders, 3D models, textures, sounds and videos, VS "compiles" them for use with XNA, and allows you to use the content manager for quick loading of cooked (or "compiled") content.

Of course, once you go Visual Studio (with perhaps Resharper addon), there is no turning back. Wink

BTW, that racing game is open source starter kit, so you can take it and observe what they have done. I would of course suggest starting with basics and not jumping into such a complex thing. Smile
Back to top
garus
VIP Member



Posts: 34200

PostPosted: Mon, 5th Jul 2010 22:33    Post subject:
snip


Last edited by garus on Tue, 27th Aug 2024 21:26; edited 1 time in total
Back to top
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel 🇮🇱
PostPosted: Mon, 5th Jul 2010 22:35    Post subject:
Yes, in order to use content in other IDEs as one would use them in VS, you'd need to run a custom command line tool that cooks every content with specified content provider using the provided compiling EXEs. Not as easy as it sounds. Wink

Edit: What's with all the ninja deletes and edits? Sad
Back to top
garus
VIP Member



Posts: 34200

PostPosted: Mon, 5th Jul 2010 22:36    Post subject:
snip


Last edited by garus on Tue, 27th Aug 2024 21:26; edited 1 time in total
Back to top
Nalo
nothing



Posts: 13438

PostPosted: Mon, 5th Jul 2010 22:43    Post subject:
⁢⁢


Last edited by Nalo on Wed, 3rd Jul 2024 07:06; edited 2 times in total
Back to top
PumpAction
[Schmadmin]



Posts: 26759

PostPosted: Mon, 5th Jul 2010 22:45    Post subject:
leo had his 3d flight simulator with self written shaders and terrain-engine on youtube Smile


=> NFOrce GIF plugin <= - Ryzen 3800X, 16GB DDR4-3200, Sapphire 5700XT Pulse
Back to top
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel 🇮🇱
PostPosted: Mon, 5th Jul 2010 22:48    Post subject:
Some old videos:



I've advanced somewhat from there, moved away from the whole simulation thing and more focused on the terrain rendering itself (I am a graphics programmer, not physics Razz). I just needed a "simulator" (with quaternion physics Laughing) for my final project:
Back to top
garus
VIP Member



Posts: 34200

PostPosted: Mon, 5th Jul 2010 22:49    Post subject:
snip


Last edited by garus on Tue, 27th Aug 2024 21:26; edited 1 time in total
Back to top
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel 🇮🇱
PostPosted: Mon, 5th Jul 2010 22:55    Post subject:
Why not?
Back to top
garus
VIP Member



Posts: 34200

PostPosted: Mon, 5th Jul 2010 22:56    Post subject:
snip


Last edited by garus on Tue, 27th Aug 2024 21:26; edited 1 time in total
Back to top
Nalo
nothing



Posts: 13438

PostPosted: Mon, 5th Jul 2010 23:04    Post subject:
⁢⁢


Last edited by Nalo on Wed, 3rd Jul 2024 07:06; edited 3 times in total
Back to top
Page 1 of 2 All times are GMT + 1 Hour
NFOHump.com Forum Index - Programmers Corner Goto page 1, 2  Next
Signature/Avatar nuking: none (can be changed in your profile)  


Display posts from previous:   

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.8 © 2001, 2002 phpBB Group