QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

Any tutorials on menus in homebrew?

This is a discussion on Any tutorials on menus in homebrew? within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; I was looking around the forums and google to see if I could find any tutorials on programming menus. For ...

Reply
 
LinkBack Thread Tools
Old 11-05-2007, 02:44 PM   #1
 
Join Date: Sep 2007
Posts: 105
Trader Feedback: 0
Default Any tutorials on menus in homebrew?

I was looking around the forums and google to see if I could find any tutorials on programming menus. For example, if you press select in the game, a new menu appears showing your inventory of items or something. All I found was this: http://en.wikibooks.org/wiki/PSP_Programming/Text_Menu

But I wanted to check if anybody knew of any more similar tutorials.
Gusjdt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-05-2007, 02:51 PM   #2
 
 
My Mood: Bored
Join Date: Apr 2006
Location: England ~¦¦¦|+|¦¦¦~
Posts: 1,112
Trader Feedback: 0
Default

Insert_Witty_Name made a small series of tutorials on how to make a fully functioning game. Part 1 is about menus Part 1 - Menu
__________________
...Just Returned To The Scene...
JaSo PsP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-05-2007, 04:06 PM   #3
 
Join Date: Sep 2007
Posts: 105
Trader Feedback: 0
Default

This is great information! Thanks for the link, I'll take a look at it.
Gusjdt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-05-2007, 07:13 PM   #4
No longer a community member.
 
a_noob's Avatar
 
Join Date: Sep 2006
Location: Over there.
Posts: 666
Trader Feedback: 0
Default

Im sorry to inform you, but If you dont understand the simple concept behind a menu then you most definantely shouldnt be writing a game. menus are pure and simple logic you shouldnt need a tutorial. If you took time to actually learn how to program instead of Copy and Paste things together from tutorials then you would see how easy a menu is.
a_noob is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-05-2007, 10:21 PM   #5

Heroes never die
 
hallo007's Avatar
 
Join Date: Aug 2006
Location: ...........
Posts: 1,318
Trader Feedback: 0
Default

with some knowledge of if statements and some brain storming you will fast find out how to do it , later you can easily make them better and better and better , it's not a good idea to follow a tutorial for a menu , it's better for yourself if you find it by yourself
hallo007 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-06-2007, 04:33 AM   #6

Developer
 
placo23's Avatar
 
Join Date: Aug 2007
Posts: 726
Trader Feedback: 0
Default

Menus are so simple. Just like Hello Worlds.

Actually I remember when I made my first menu, it was for a hello world, where you could select in which language it would be displayed.

just as a proof of concept, but was nice to see it working and creating the logic by myself
__________________
Placo23

Spoiler for Wanna see my Apps?:
Why not donate and become part of this selected list?
Spoiler for Donators:
DarkSeveN - 5.100.000
--DylanDangles--2.000.000
Zuiver - 100.000
AlwaysAmiYumi - 10.338.63
placo23 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-06-2007, 09:11 AM   #7
 
Join Date: Oct 2007
Location: Netherlands
Posts: 44
Trader Feedback: 0
Default

on topic: Think of it, save your current menu item render different picture or text for that menu item, everything else the normal way. When pressing up or down just decrement or increment your current menu item value. Then render that item different. It is really easy and you should be able to figure this out yourself.

offtopic: The first menu I ever made was on a very slow computer and it worked perfectly. Then someone tried it on his computer, which was way faster, and with one press it cycled through every item I forgot to check for up and down states of the buttons
Ghoti is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-06-2007, 09:56 AM   #8

Developer
 
placo23's Avatar
 
Join Date: Aug 2007
Posts: 726
Trader Feedback: 0
Default

Quote:
Originally Posted by Ghoti
on topic: Think of it, save your current menu item render different picture or text for that menu item, everything else the normal way. When pressing up or down just decrement or increment your current menu item value. Then render that item different. It is really easy and you should be able to figure this out yourself.

offtopic: The first menu I ever made was on a very slow computer and it worked perfectly. Then someone tried it on his computer, which was way faster, and with one press it cycled through every item I forgot to check for up and down states of the buttons
That was the fastest menu ever.......
__________________
Placo23

Spoiler for Wanna see my Apps?:
Why not donate and become part of this selected list?
Spoiler for Donators:
DarkSeveN - 5.100.000
--DylanDangles--2.000.000
Zuiver - 100.000
AlwaysAmiYumi - 10.338.63
placo23 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-06-2007, 10:37 AM   #9
 
Join Date: Sep 2007
Posts: 105
Trader Feedback: 0
Default

Quote:
Originally Posted by a_noob
Im sorry to inform you, but If you dont understand the simple concept behind a menu then you most definantely shouldnt be writing a game. menus are pure and simple logic you shouldnt need a tutorial. If you took time to actually learn how to program instead of Copy and Paste things together from tutorials then you would see how easy a menu is.
Who said I didn't understand the concept behind a menu? It won't kill me to use tutorials as reference. Also, who told you that I don't take time to learn how to program instead of copy paste all the time? Everyone starts somewhere. I wouldn't be surprised if _you_ copied and pasted sample code when you started programming. Thanks for your advice but take better care when you assume something of others.

On the plus side, thanks to the others who posted their advice and pointers.

Last edited by Gusjdt; 11-06-2007 at 03:39 PM..
Gusjdt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-06-2007, 01:41 PM   #10
Ænima
 
Judas's Avatar
 
Join Date: Sep 2007
Posts: 587
Trader Feedback: 0
Default

Quote:
Originally Posted by a_noob
Im sorry to inform you, but If you dont understand the simple concept behind a menu then you most definantely shouldnt be writing a game. menus are pure and simple logic you shouldnt need a tutorial. If you took time to actually learn how to program instead of Copy and Paste things together from tutorials then you would see how easy a menu is.
That was the stupidest post I have ever seen. You're telling me that he should automatically know how to program a menu? And if he doesn't, he shouldn't be programming. You're retarded. And, no, it isn't just simple logic. If it was, everyone would be able to be a programmer. And to the original poster, if you want a good menu example, just PM me, I have some examples.
__________________
[IMG]http://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Zoso.svg/744px-Zoso.svg.png[/IMG]

Looking for some good C programming tutorials for the PSP? Look no further! [URL="http://psp-coding.com/"]PSP-Coding.com[/URL] is your source for all your PSP coding needs.
Judas is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-06-2007, 03:32 PM   #11


Retired PSP Developer
 
MániácX's Avatar
 
Join Date: Feb 2007
Location: Canada
Posts: 407
Trader Feedback: 0
Default

Gus, I can show you a couple of quick examples. MSN me when ur online
__________________
MániácX is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-06-2007, 06:48 PM   #12
No longer a community member.
 
a_noob's Avatar
 
Join Date: Sep 2006
Location: Over there.
Posts: 666
Trader Feedback: 0
Default

What I meant is, If you understand if statements then, how to make a menu should be really easy. Personally I make my menus over complicated. And yes I did start somewhere and the only thing I copy and pasted was the call backs (for the home button) I could send you my menu But you probably wouldn't understand it because it is a dynamic menu that uses some pointer techniques that most people don't learn about untill later on in programming. And Imo if there is code you dont understand dont try using it because if some error happens you wont know how to fix it.

If you want i can post my dynamic menu once i get my HDD restored. You dont need to understand it to use it but it would help alot if you understood it so that you could code your own menu. But as I said before I dont understand how you plan to make a game if you cant make a menu. Games usually require a bit more logic than menus. Pong for example requires simple Ai logic. And simple collision logic. There is no game i can think of that requires less logic than a menu.
a_noob is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-07-2007, 09:52 AM   #13
 
Join Date: Sep 2007
Posts: 105
Trader Feedback: 0
Default

Thanks for your reply, a_noob. I understand where you're coming from, but I never said I was trying to make a game. Like I said before, everyone starts somewhere, and I even if I was trying to make a game, I have to learn the basics somewhere. This is where my thread comes in, how to make menus. I simply had a doubt on how they were implemented, that is all.

Sure, if you don't mind posting your menu code, I'd like to take a look. The more material to learn from, the better.

Btw, I had a slight idea on how a simple menu worked, but what I didn't know was how to implement window menus, and then being able to close that window, thus returning to the game exactly as it was left before I opened the menu window. I read somewhere that savestates had to be used, but I'm not too sure on that one.

An example would be the main menu when you press the triangle button in FF7. A new window pops up with several options, and when you exit the menu, the game is the same as it was left before you opened the menu.
Gusjdt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-07-2007, 10:13 AM   #14
 
Join Date: Oct 2007
Location: Netherlands
Posts: 44
Trader Feedback: 0
Default

Quote:
Originally Posted by Gusjdt
I read somewhere that savestates had to be used, but I'm not too sure on that one.

An example would be the main menu when you press the triangle button in FF7. A new window pops up with several options, and when you exit the menu, the game is the same as it was left before you opened the menu.
You do not need savestates for this. If you have to leave your loop at one moment just do not leave it just start your menu code from within your loop, if you use classes just run the menu class from your game loop. This way your loop only just halts and continues after you leave your menu again.

If you want the game to be shown in the back, just save the screen as an image before entering the menu and pass it to your menu and render as background

hope it helps
Ghoti is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-07-2007, 10:42 AM   #15
 
Join Date: Sep 2007
Posts: 105
Trader Feedback: 0
Default

Quote:
Originally Posted by Ghoti
You do not need savestates for this. If you have to leave your loop at one moment just do not leave it just start your menu code from within your loop, if you use classes just run the menu class from your game loop. This way your loop only just halts and continues after you leave your menu again.
Yes, that makes better sense, thank you.

Quote:
If you want the game to be shown in the back, just save the screen as an image before entering the menu and pass it to your menu and render as background
I imagine there is a function that you can call for saving images currently displayed on the screen in order to do this. This is a good idea, I wouldn't have though of it. Thanks again.
Gusjdt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-07-2007, 03:36 PM   #16
 
Join Date: Mar 2007
Posts: 136
Trader Feedback: 0
Default

Often, you can use the menu/message services of the game you're converting (if that is what you're doing). Look at the recent Doom release - when you select a cheat using TRIANGLE + LEFT/RIGHT, it uses the Doom message system to display which cheat you would be selecting if you released the TRIANGLE button.
JLF65 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
homebrew , menus , tutorials

Thread Tools

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 07:21 PM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us