frameworks/toolkits for the Mac?

Coders forum. Discuss techniques, swap code snippets, ask for help etc. relating to all forms of software development.
Post Reply
User avatar
Peganthyrus
Posts: 6
Joined: Sun Sep 28, 2003 1:16 am 0
Contact:

frameworks/toolkits for the Mac?

Post by Peganthyrus »

(No, I don't come round here often.)

A bunch of whims have congealed in my head and I'm sitting here with a controller attached to my Powerbook and an urge to fool around making games. I've got the Apple dev tools installed but the learning curve is a lot more than I feel like tackling.

I've been playing with Torque Game Builder after a friend was raving about how spiffy it is, but it's super-sluggish for me, and crashing twice while I'm trying to work through the first example isn't exactly endearing it to me. The cross-platforminess attracts me, though!

What game dev toolkits do folks around here recommend on the Mac? I'm looking mostly to do 2D stuff though I might end up doing 2.5D silliness in the idea kicking around my head. I'm hoping for a fast compile-test-crash cycle, the ability to easily generate a binary to give to my mostly Windows-using friends, and being able to easily talk to the joystick. (I hate keyboard control, plus I want to do something in the Robotron lineage...)
matt
Sheepie Whore
Sheepie Whore
Posts: 14826
Joined: Mon Apr 22, 2002 4:07 pm 0
XBL Gamertag: gingerbeardman
PSN: wirehang
Location: here && there
Contact:

Post by matt »

http://www.blitzmax.com

check out the game I wrote using it in my sig. Wire Hang Redux
User avatar
super charlie
Baaaaa!
Baaaaa!
Posts: 1809
Joined: Wed Mar 31, 2004 7:53 pm 0
Location: Ipswich, suffolk
Contact:

Post by super charlie »

I also recommend blitzmax. You can check out my game written in Blitzmax via the link in my sig also.

Cheers
Charlie
Visit my website here to have a look at my game.
User avatar
pogo
Sheepie Whore
Sheepie Whore
Posts: 14180
Joined: Tue Sep 10, 2002 8:28 pm 0
Yahoo Messenger: BrassSparrow
Location: County Durham

Post by pogo »

The only way you're going to get a cross platform binary is by using non-native, interpreted code. I'm not familiar with Blitz but other ways of creating cross-platform binaries include Java and Shockwave/Flash. The former's built into the Mac, the latter needs to be bought. I'm not a fan but there are advocates of Java here who can easily make it's case.

If you want native binaries but cross-platform code, i.e. code which you can compile once on each platform, as well as Torque there's SDL, freely downloadable, and GLUT, built into the Mac and downloadable on Windows.

I prefer GLUT - it's pretty minimal but this makes it lightweight, and it's available on all platforms I use. You can knock up 2D and 3D ideas very quickly using straightforward, cross-platform C/C++ and Open GL, and decide later on whether a more robust, mature wrapper is needed.
User avatar
Peganthyrus
Posts: 6
Joined: Sun Sep 28, 2003 1:16 am 0
Contact:

Post by Peganthyrus »

Thanks for the suggestions!

I've been semi-aware of Blitz but haven't really looked at its capabilities and its code. Plus memories of it being "Blitz Basic" back in the Amiga days kinda pushed the old "eek, BASIC!" reflexes. Downloaded the demo, I'll fool around with it later.

Flash is kinda out of the running for me for several reasons: it doesn't know how to connect with joysticks, the Mac version is pretty slow to execute and draw, and, well, my day job is freelance Flash animation - I'm intimately acquainted with the editor's bugs, and have spent far too much time screaming at it for losing my work to want to use it for fun!

I think 'can't talk to joysticks' also applies to Java; I don't think I've ever seen a Java game that did it, at least. Easy joystick use is a major thing for me; I've never been comfortable with keyboard control for action games...

Do GLUT or SDL have platform-agnostic wrappers for things like 'what's the joystick state' 'please beamsync this' and 'oh no, I got tabbed out'? Some quick googling suggests SDL does, while GLUT doesn't. (Ooh, and SDL has a lot of wrappers. I could also give in to that crazy urge to learn LISP too! ...maybe not.)
User avatar
princec
Baaaa!
Baaaa!
Posts: 590
Joined: Thu May 09, 2002 3:20 pm 0
Location: Basingstoke
Contact:

Post by princec »

LWJGL talks to joysticks. My games would talk to joysticks too if I, er, had one to test it with.

Big thumbs up for Java + LWJGL + Eclipse here. Works great on the Mac and just happens to run unmodified on Windows too which is always a bonus.

Cas :)
User avatar
pogo
Sheepie Whore
Sheepie Whore
Posts: 14180
Joined: Tue Sep 10, 2002 8:28 pm 0
Yahoo Messenger: BrassSparrow
Location: County Durham

Post by pogo »

Peganthyrus wrote:Do GLUT or SDL have platform-agnostic wrappers for things like 'what's the joystick state' 'please beamsync this' and 'oh no, I got tabbed out'? Some quick googling suggests SDL does, while GLUT doesn't.
That's about right. GLUT does mouse and keyboard input, and you can of course map most controllers to mouse movements and key presses, but it has no inbuilt understanding of joysticks. Other OS interaction, such as multitasking, is similarly limited to a very basic system of handlers and timers. E.g. it doesn't have an idea of being tabbed in and out - in general it keeps on running even in the background.
User avatar
Peganthyrus
Posts: 6
Joined: Sun Sep 28, 2003 1:16 am 0
Contact:

Post by Peganthyrus »

I'm playing with Blitz for now, and at the point where I might do some other experiments. Thanks for the pointers, y'all!

I made a swarm of angry wasps. I haven't done stuff like this since I was somewhere in my teens with an assembler and my Amiga...
User avatar
koogy
Baaa!
Baaa!
Posts: 475
Joined: Thu Aug 31, 2006 11:16 am 0

Post by koogy »

image link on your blog page appears broken.
User avatar
Peganthyrus
Posts: 6
Joined: Sun Sep 28, 2003 1:16 am 0
Contact:

Post by Peganthyrus »

That happens when I do things like post a lot of sketchbook excerpts, too. WORKSFORME right now.
User avatar
ravuya
Baaaaaa!
Baaaaaa!
Posts: 4801
Joined: Fri Sep 12, 2003 4:17 am 0
XBL Gamertag: ravuya
PSN: ravuya
Yahoo Messenger: mr_seigen
Location: Inside your computer
Contact:

Post by ravuya »

My current toy du jour is Processing.org. It combines Java with a powerful set of APIs (including webcam and joystick control), and has a ton of resources and hobbyists making things ranging from sound-art to OpenGL masterpieces.

Other than that, I'd also recommend Pygame.

But really, good luck with anything you're building. Looks like you're off to a good start -- I really must get gamepad input working in my game API.
User avatar
failrate
Baaaaaa!
Baaaaaa!
Posts: 2354
Joined: Sun May 23, 2004 6:54 am 0
Location: Sandy Eggo
Contact:

Post by failrate »

Another vote for Pygame, though getting it to work on older (System OS) Macs was always fiddly. However, it's well-written and it has a good community, and it makes porting apps from *nix-based to Windows and back quite a breeze :D
User avatar
the2bears
Baaaaaa!
Baaaaaa!
Posts: 3686
Joined: Wed Oct 27, 2004 9:30 pm 0
Location: The City by the Bay
Contact:

Post by the2bears »

ravuya wrote:My current toy du jour is Processing.org. It combines Java with a powerful set of APIs (including webcam and joystick control), and has a ton of resources and hobbyists making things ranging from sound-art to OpenGL masterpieces.
I really like the Processing stuff, seen some really cool things done with it.

Bill
the2bears - the indie shmup blog
Matt Langley
Posts: 2
Joined: Wed Nov 15, 2006 1:43 am 0

Post by Matt Langley »

Peganthyrus, I'm sorry you ran into such problems with TGB. If you would take the time and send me an e-mail with the issues I would be very appreciative and could pass them on to the person who handles Mac compatability so hopefully we won't have the same future problems that you ran into.

Best luck with your game and I hope you reconsider using TGB in the f uture.
Matthew Langley
TGB Docs and Demos Tech Lead
GarageGames
Post Reply