Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Question for those that actually developed an Arcade game/Juke etc...  (Read 1744 times)

0 Members and 1 Guest are viewing this topic.

renobastian100

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:August 21, 2010, 05:07:08 pm
or anyone with extensive experience in arcade game programming...
I want to develop a simple arcade game that runs on Linux. Which programming language is the most reliable for something say as simple and graphic rich as say tetrix/connect 4?

Should I go with Flash/Java/C or is it all a wash depending on programmer expertise? The arcade game will be built from scratch and I want to hook up a bill acceptor... I've found a few guys on elance and guru, but I'm completely clueless else wise on the matter.

GaryMcT

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 745
  • Last login:September 24, 2014, 11:19:27 am
    • GaryMcT's arcade blog
Re: Question for those that actually developed an Arcade game/Juke etc...
« Reply #1 on: September 30, 2009, 07:37:13 pm »
You could do a game like that in just about any language.  Is the bill collector hooked up as a keyboard input?
My blog on learning how to develop FPGA versions of arcade boards: http://garymct.blogspot.com


MonMotha

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2378
  • Last login:February 19, 2018, 05:45:54 pm
Re: Question for those that actually developed an Arcade game/Juke etc...
« Reply #2 on: September 30, 2009, 08:04:05 pm »
For simple stuff, SDL is great.  It's reasonably fast, lightweight, and it's portable.  From the sound of it, SDL would be perfect for your application and would probably do all that you need.

For more complex things, OpenGL is good for 3D (and can work with SDL to make your life easier).  OpenAL is a good audio library.  Both are portable.  You could use ALSA directly for audio, but it's kinda a mess, and it isn't portable.  There are lots of toolkits for OpenGL available to help you with UI type stuff.  SDL has rudimentary audio support if you prefer.

SDL provides some input abstraction, but you'll probably end up just handling input directly since there's no real equivalent to DirectInput on Linux, though Linux provides some very nice facilities for "raw" input access (it's just not portable, but neither is DirectX).

Most commercial arcade games use a custom I/O board hooked up via a serial port or USB.  Serial devices are readily accessible as /dev/ttySn, while "raw" USB is available via libusb.  If your I/O device looks like a HID device, you can either let the standard input layers handle it (good for keyboard/mouse/game device emulating input devices) or you can attain more "raw" access using hiddev or hidraw, depending on what you need.  None of this would be readily portable to other OSes except libusb, which works on just about anything you'd run on a PC.

If you need a physics library, Bullet is free and I'm told quite good.

All of these libraries mentioned are programmable from C.  There are some libraries to provide C++ bindings if you prefer.  Almost all Linux development is done in C and C++.  Not a ton of Java.  I just don't think it appeals to most Linux devs.  It works fine, however.  Almost no flash since the flash player/plugin architecture on Linux is pretty poorly supported by Adobe (complete lack of hardware acceleration).

renobastian100

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:August 21, 2010, 05:07:08 pm
Re: Question for those that actually developed an Arcade game/Juke etc...
« Reply #3 on: September 30, 2009, 08:26:33 pm »
For simple stuff, SDL is great.  It's reasonably fast, lightweight, and it's portable.  From the sound of it, SDL would be perfect for your application and would probably do all that you need.

For more complex things, OpenGL is good for 3D (and can work with SDL to make your life easier).  OpenAL is a good audio library.  Both are portable.  You could use ALSA directly for audio, but it's kinda a mess, and it isn't portable.  There are lots of toolkits for OpenGL available to help you with UI type stuff.  SDL has rudimentary audio support if you prefer.

SDL provides some input abstraction, but you'll probably end up just handling input directly since there's no real equivalent to DirectInput on Linux, though Linux provides some very nice facilities for "raw" input access (it's just not portable, but neither is DirectX).

Most commercial arcade games use a custom I/O board hooked up via a serial port or USB.  Serial devices are readily accessible as /dev/ttySn, while "raw" USB is available via libusb.  If your I/O device looks like a HID device, you can either let the standard input layers handle it (good for keyboard/mouse/game device emulating input devices) or you can attain more "raw" access using hiddev or hidraw, depending on what you need.  None of this would be readily portable to other OSes except libusb, which works on just about anything you'd run on a PC.

If you need a physics library, Bullet is free and I'm told quite good.

All of these libraries mentioned are programmable from C.  There are some libraries to provide C++ bindings if you prefer.  Almost all Linux development is done in C and C++.  Not a ton of Java.  I just don't think it appeals to most Linux devs.  It works fine, however.  Almost no flash since the flash player/plugin architecture on Linux is pretty poorly supported by Adobe (complete lack of hardware acceleration).


thank you.
\are you a game developer?

renobastian100

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:August 21, 2010, 05:07:08 pm
Re: Question for those that actually developed an Arcade game/Juke etc...
« Reply #4 on: September 30, 2009, 08:28:18 pm »
You could do a game like that in just about any language.  Is the bill collector hooked up as a keyboard input?


is that method efficient?

Ginsu Victim

  • Yeah, owning a MAME cab only leads to owning real ones. MAME just isn't good enough. It's a gateway drug.
  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10092
  • Last login:June 28, 2025, 10:45:55 pm
  • Comanche, OK -- USA
Re: Question for those that actually developed an Arcade game/Juke etc...
« Reply #5 on: September 30, 2009, 08:28:49 pm »
thank you.
\are you a game developer?

I know one guy in this thread is for sure.... ;D

MonMotha

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2378
  • Last login:February 19, 2018, 05:45:54 pm
Re: Question for those that actually developed an Arcade game/Juke etc...
« Reply #6 on: September 30, 2009, 08:30:33 pm »
are you a game developer?
Not a game developer, but I have developed hardware platforms used commercially for gaming applications (and non-gaming but dedicated software applications as well), and I've been using and developing non-gaming applications on Linux for quite some time.

Ginsu Victim

  • Yeah, owning a MAME cab only leads to owning real ones. MAME just isn't good enough. It's a gateway drug.
  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10092
  • Last login:June 28, 2025, 10:45:55 pm
  • Comanche, OK -- USA
Re: Question for those that actually developed an Arcade game/Juke etc...
« Reply #7 on: September 30, 2009, 08:36:16 pm »
So that only leaves the other guy....

Shame your game just got banned in Oz. (What doesn't, though?)

GaryMcT

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 745
  • Last login:September 24, 2014, 11:19:27 am
    • GaryMcT's arcade blog
Re: Question for those that actually developed an Arcade game/Juke etc...
« Reply #8 on: September 30, 2009, 08:36:59 pm »
You could do a game like that in just about any language.  Is the bill collector hooked up as a keyboard input?


is that method efficient?

That would work fine.  Just wire it up like it is a button via a keyboard encoder.
My blog on learning how to develop FPGA versions of arcade boards: http://garymct.blogspot.com


GaryMcT

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 745
  • Last login:September 24, 2014, 11:19:27 am
    • GaryMcT's arcade blog
Re: Question for those that actually developed an Arcade game/Juke etc...
« Reply #9 on: September 30, 2009, 08:45:30 pm »
So that only leaves the other guy....

Shame your game just got banned in Oz. (What doesn't, though?)

We resubmitted.  Hopefully it'll get through.
My blog on learning how to develop FPGA versions of arcade boards: http://garymct.blogspot.com


renobastian100

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:August 21, 2010, 05:07:08 pm
Re: Question for those that actually developed an Arcade game/Juke etc...
« Reply #10 on: September 30, 2009, 08:49:13 pm »
You could do a game like that in just about any language.  Is the bill collector hooked up as a keyboard input?


is that method efficient?

That would work fine.  Just wire it up like it is a button via a keyboard encoder.

Now im really getting somewhere...this forum is awesome!
..........

so if i buy this -------> then wire it up to either a micro switch or keyboard encoder then.....Bingo?
are they powered via PC power supply? If so, I'll just buy the cheapest bill acceptor and hook it up to my keyboard...

Ginsu Victim

  • Yeah, owning a MAME cab only leads to owning real ones. MAME just isn't good enough. It's a gateway drug.
  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10092
  • Last login:June 28, 2025, 10:45:55 pm
  • Comanche, OK -- USA
Re: Question for those that actually developed an Arcade game/Juke etc...
« Reply #11 on: September 30, 2009, 08:49:29 pm »

Ummon

  • Trade Count: (+13)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5244
  • Last login:June 09, 2010, 06:37:18 pm
Re: Question for those that actually developed an Arcade game/Juke etc...
« Reply #12 on: October 01, 2009, 01:25:27 am »
Now im really getting somewhere...this forum is awesome!
..........

so if i buy this....then wire it up to either a micro switch or keyboard encoder then.....Bingo?
are they powered via PC power supply? If so, I'll just buy the cheapest bill acceptor and hook it up to my keyboard...

....I'm seeing (at the very least) forum police in this future....
Yo. Chocolate.


"Theoretical physics has been the most successful and cost-effective in all of science."

Stephen Hawking


People often confuse expressed observations with complaint, ridicule, or - even worse - self-pity.