Mayan Calculator

Post here your demos and examples with the source files.
Forum rules
Always post the games with a screenshot.
The file must have the ged and data files (complete game source)
Use the forum attachment to post the files.
It is always better to use the first post to put the game files

Mayan Calculator

Postby tlah » Tue Oct 06, 2009 12:33 am

Since everyone is posting calculator demos (it seems), I guess I'll add mine. It is for my science fair. As you input the numbers, the Mayan symbols change depending on the number entered. You can add, subtract, multiply or divide them. Note: Although the calculator may seem like Superbeni's, I created a new one with graphics that I created, in the style of superbeni's. Also, it may help to do some research on the Mayan numerical system beforehand. :)
Attachments
Mayan.zip
Please don't harass me for "stealing" artwork, because I created these pictures and the program on my own!
(179.41 KiB) Downloaded 179 times
User avatar
tlah
 
Posts: 66
Joined: Sun Apr 06, 2008 12:10 pm
Location: In your head, readin' ur mind
Score: 2 Give a positive score

Re: Mayan Calculator

Postby Superbeni » Tue Oct 06, 2009 3:55 pm

look and works good!
User avatar
Superbeni
 
Posts: 130
Joined: Sun Aug 02, 2009 1:23 pm
Location: Vienna, Austria
Score: 31 Give a positive score

Re: Mayan Calculator

Postby tlah » Tue Oct 06, 2009 8:07 pm

Superbeni wrote:look and works good!

thanks, I needed a compliment straight from the bear's mouth!
P.S. Don't make fun of my clichės! :lol:
User avatar
tlah
 
Posts: 66
Joined: Sun Apr 06, 2008 12:10 pm
Location: In your head, readin' ur mind
Score: 2 Give a positive score

Re: Mayan Calculator

Postby DST » Tue Oct 06, 2009 11:10 pm

Not bad, it works fine as a calculator.

May i suggest a few improvements?

1. don't use textNumber as a variable. Instead, create two storage floats for the main display.

When user enters a number, it shows up. Then when they hit */- or +, have it display a second float variable, this will display the next numbers they put in. Then, when they hit =, apply the math to the first float and display that again. Now if they hit x or / again, we already have float 1 displayed, so you do the same....new entry becomes float 2, display that, and do the math to float 1 again, then display that when they hit =.

in this way, you can save both floats, so if they type 1+1= and it displays 2, like a normal calculator, you save the last function called (+-*/) and if the user keeps hitting =, it keeps performing the same math. so 1+1========= will display a final result of 9.

By using two float variables for the numbers, not only can you keep reusing them, but you can add a quick save/load list, where they can drag the text display to the save list or from the save list back to the display.

If you add such a thing.....you will actually have built a BETTER calculator than most, not just a working one, but a BETTER one.

2. Add a bevel filter to those buttons! Make them juicy and real so the user wants to click on them.
GIMP and Paint.net can both do a simple square bevel quite easily.

Only make 1 button (with no text on it)! Then distribute it (as i showed how in the post for bloodraven's calc)
viewtopic.php?f=6&t=7469
and have ge write text numbers on the buttons.
Dim the rgb or transp of the button when clicked, so the user is sure their click was registered. (and the button goes back to normal after 1/2 second).

Its a little more coding, but you only have to make 1 button! (that's like, 12 buttons less than what you'd have to make if you put the numbers on them in your paint program).

And then, like my calc, you can make skins for it.
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score


Return to Game Demos

Who is online

Users browsing this forum: No registered users and 1 guest