LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-02-2006, 01:04 AM   #1
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
full screen menu to select games?


so I've been building some linux based emulation consoles for some people the first 2 were for me and my brother and both have a keyboard and mouse and run xfce and we select games in that. this is fine because we also use these for other uses so this is the most convienent way to go about it. but now I'm building one for my friend who is not so familiar with linux. this one is in a nes case and has no keyboard mouse or monitor, just a tvout and controllers. I was wondering if anyone knows of a menu program that will run fullscreen (with big font like 24 or 36 so it is easy to read on a tv) and either uses the arrow keys or the joystick to select something and run it? this way I could have this run when it starts up and he can select a game with his controller and play. I would like something with submenus and maybee a nice config file along the lines of:

Code:
#"Title that is shown to the user" = some app or script I'd like to run
"Tetris" = /usr/games/bin/fceu -fs 1 /usr/local/roms/nes/tetris.nes
you know so that the menu could launch just about anything I could from the prompt. Does anyone know of a program that can do this? I would prefer that it look old and crappy like a nes with huge font and maybee a background image.
 
Old 02-02-2006, 01:33 AM   #2
Hosiah
Member
 
Registered: Sep 2004
Location: Des Moines, Iowa
Distribution: Slackware, Mandriva, Debian derivatives, +BSD/ Solaris/ Minix/ plan9/ GNU/HURD...
Posts: 185

Rep: Reputation: 30
Did somebody say "old 'n' crappy"? Tcl/Tk/Wish is your friend!

Of course, I don't know if this will work with your setup. But I do know you can do a Wish script like:

Code:
#!/usr/bin/wish

proc do_tetris {} {
     exec "/usr/games/tetris"
     exit
}

proc do_mario {} {
     exec "/usr/games/mario"
     exit
}

label .ask -text "Program to execute?"
button .te -text "tetris" -command "do_tetris"
button .ma -text "mario" -command "do_mario"
pack .ask
pack .te
pack .ma
A site about Tcl/Tk menus

My second guess would be to hack up something customized in SDL, which can read joysticks...that would be a lot of work, but you might be able to find something done already.

My third guess would be a Bash script dialog - Here's a site about it
 
Old 02-02-2006, 02:09 AM   #3
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
I tried to do something similar recently (didn't try very hard though) and didn't see any easy solutions. SDL would be great but I didn't want to learn C just for something small like this :/ Google for animenu and see if you can make it compile, that would do the job. Tcl/Tk would do the job fine also or if you wanted to make something spiffy but easy, PyGTK + a GTK theme could do it easily enough, accept the joystick input and look half-decent.
 
Old 02-02-2006, 02:16 AM   #4
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Original Poster
Rep: Reputation: 46
I'd prefer to avoid the button look of the tcl/tk wish menus but this will come in handy later. I thought I would have to make something in c (I'm not a programmer at least not any good) to do those kind of things. I like bash scripts. this menu would have to call a bunch of bash scripts I wrote to launch the emulators and set up the controllers anyway this looks like it would work well if I could remember how to change the color/font size of the console. I don't have to talk to the joysticks directly. I've been using Qjoypad to translate the controller to keyboard/mouse events. unless anyone can think of anything simpler I'll start working on a bash dialog menu but this may get tedious as I have like 640 nes games and like 2100 sega games. not to mention gb, gba, snes, and n64.

edit:
animenu is giving me compile errors (looking for the freetype headers in the wrong place?) I like that it would just make a menu from the contents of a directory but It looks like it's made to work with lirc. will it work with the keyboard?

Last edited by johnson_steve; 02-02-2006 at 02:57 AM.
 
Old 02-02-2006, 06:43 AM   #5
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
No idea about animenu working with a keyboard, never got it working Here is a good reference about colours in the shell, it's what I use when I'm playing with my initscripts.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Games don't run in full screen robertpratt Linux - Software 1 12-24-2005 01:13 AM
how to get games (like doom 3) to go full screen? zero79 Linux - Games 4 10-07-2004 11:16 AM
Can't get games to run full screen help! snatale1 Mandriva 0 02-29-2004 08:23 PM
Problems with some full screen games, no video :( jerome187 Linux - Software 2 11-20-2003 09:56 PM
Problems with some full screen games, no video :( jerome187 Linux - Software 2 11-20-2003 11:08 AM


All times are GMT -5. The time now is 02:23 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration