Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Another programming thread. What should I use?  (Read 4068 times)

Darkone

  • Bay Watcher
    • View Profile
Another programming thread. What should I use?
« on: January 22, 2009, 07:27:25 pm »

Right, so. I've been tinkering about with a few languages for a while, and wanting to make a 2d game. Issue: Needs hardware acceleration. Solution: Use textured quads.  Issue:Trying to get into OpenGL/DX, which seem purposely designed to have an incredible ammount of extra code REQUIRED that will only be useful to someone doing higher end graphics (I'm looking at you NeHe ;P). As well as C#/C++ being frustrating difficult to debug sometimes.  Solution: Python and a library for [usually] openGL.

Issue: Which should I use? I thought I hit the jackpot when I stumbled upon Rabbyt. Very very simple, full hardware acceleration, runs smoothly with alot of sprites onscreen. But, there aren't many (any?) tutorials for it, and it doesn't seem to support zooming, which is a must if I'm going to spend the time learning the language (for a later project >.>). Pyglet is nice, but there aren't much in the way of tutorials on its sprite functions, and the example programs don't explain quite a bit of their code.

So. I'm looking for a 2d library (or combination of libraries(or wrapper for a more complex library)), with HW acceleration; The works, rotation, scaling, camera Z function, and preferably better collision detection than circular (checking collisions between the masks of images is apparently plenty fast). Preferably in python, or fairly simple C++, as I jsut tired out on C++/C# pretty damn quick when I was doing a little self-goal-tutorial of making a program that converted text into numbers, converted them to another base, and did various things to them; it constantly gave me stupid errors and issues, whereas pythin worked fine the first time through, excluding one human error, and was done in under an hour without even knowing much about python.

Grateful for any help.

edit:Also, I would try the IRC channel first, if it wasn't for the fact that worldIRC isn't letting me connect :/
Logged
"LOL, those nub FBI, they thought you were sharing software so they kicked down your door, only to find you recently wiped your entire hard drive, how wacky! Case dismissed."
Quote
[11:58] <Jay16> I couldn't begin proper last time I tried this because I embarked next to a hydra.

Captain Hat

  • Bay Watcher
    • View Profile
Re: Another programming thread. What should I use?
« Reply #1 on: January 22, 2009, 09:35:38 pm »

I would try Allegro, it's a nice graphics library. Haaf's Game Engine looks nice as well.

Links
http://alleg.sourceforge.net/
http://hge.relishgames.com/

Vactor

  • Bay Watcher
  • ^^ DF 1.0 ^^
    • View Profile
Re: Another programming thread. What should I use?
« Reply #2 on: January 22, 2009, 10:35:17 pm »

I know you already said something not C++/C#, however I'd recommend using XNA with Visual C# Express.  There are a wealth of tutorials for both that are very easy to find.  It will also let you go on into doing 3d work very easily.

There are some very nice tutorials that can get you started very easily here:
http://www.riemers.net/eng/Tutorials/XNA/Csharp/series2d.php

Logged
Wreck of Theseus: My 2D Roguelite Mech Platformer
http://www.bay12forums.com/smf/index.php?topic=141525.0

My AT-ST spore creature http://www.youtube.com/watch?v=0btwvL9CNlA

Keiseth

  • Bay Watcher
    • View Profile
Re: Another programming thread. What should I use?
« Reply #3 on: January 22, 2009, 10:45:06 pm »

XNA (and C-sharp for that matter, mostly) are strictly Windows-based things, are they not? The topic creator and occupants may differ from me here, but I tend to be put off by anything stuck on one operating system.

Yeah, getting OpenGL to do 2D graphics is a pain. I fought with it for a few days but put it away temporarily after getting stuck-- trying to use smaller parts of one large texture (sprite/tilesets) I cannot figure out.

I've seen Allegro used to great effect, however.
Logged

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: Another programming thread. What should I use?
« Reply #4 on: January 23, 2009, 07:58:35 am »

Well, with openGL, the hardest bit is getting it set up, and that can be copied from basically any tutorial.

After that is is much simpler.

And to do sprites, you use the texture coordinates.
for four sprites on onee textre I THINK you would use 0-.5 on each
Logged
Eh?
Eh!

Keiseth

  • Bay Watcher
    • View Profile
Re: Another programming thread. What should I use?
« Reply #5 on: January 23, 2009, 04:10:35 pm »

Oh! I'm going to have to try this again, I was so close to having a dual SDL Software / PyOpenGL program going.
Logged

Darkone

  • Bay Watcher
    • View Profile
Re: Another programming thread. What should I use?
« Reply #6 on: January 23, 2009, 04:17:59 pm »

Back- Counter-questions first.

Looked at allegro at school, and a perfunctory glance shows that it probably has everything I need.

HGE is another I looked at before, but I'm not sure if it supports Z axis stuff as its a 2d oriented engine like gamemaker.

XNA is neat, as I've tried it before, but got put off with my annoyances with C# :P Howver, that tutorial looks promissing. Thanks for the replies guys.


Checked out the XNA tut, definitely sounds solid. I'll check in later After I finish it, and try drawing soem stuff.
« Last Edit: January 23, 2009, 05:29:12 pm by Darkone »
Logged
"LOL, those nub FBI, they thought you were sharing software so they kicked down your door, only to find you recently wiped your entire hard drive, how wacky! Case dismissed."
Quote
[11:58] <Jay16> I couldn't begin proper last time I tried this because I embarked next to a hydra.