Author Topic: menu background  (Read 4003 times)

0 Members and 2 Guests are viewing this topic.

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
menu background
« on: December 11, 2011, 12:12:47 am »
so I want to put in a background for my menu, but I don't know how to make one design one or anything. In axe please :) thanks
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: menu background
« Reply #1 on: December 11, 2011, 05:24:20 am »
Well, you create a pic of the background and then draw it.

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: menu background
« Reply #2 on: December 11, 2011, 12:18:56 pm »
I don't want it to interfeer with the menu though....can I use like greyscale? and how?
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: menu background
« Reply #3 on: December 11, 2011, 12:47:52 pm »
With the menu, you just draw stuff on it and then have something like A+getkey(1)-getkey(4)->A and then clear the screen and then draw the pic and then draw the curser and then display the screen. Like that you have a moving curser. And to grayscale, exactly the same thing, you just need to draw to bouth screen buffers and update screen with DispGraphr or DispGraphrr   (Radian r)

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: menu background
« Reply #4 on: December 11, 2011, 12:55:41 pm »
can I have and example? I don't get the whole greyscale thing or the drawing
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: menu background
« Reply #5 on: December 11, 2011, 01:03:52 pm »
Maybe you could read throught tutorials?
To draw greyscale:
You need to draw to bouth backup buffers
with pixelon(x,y) you turn a pixel on in the normal buffer
with pixelon(x,y)r    (this is the radian r) you turn a pixel on in the other backup buffer needed for greyscale

That works aswell with all the other drawing things e.g. sprites.

Now, you use DispGraphr (radian r) for 3-level greyscale and Dispgraphrr (radianr) for 4-level greyscale

In three level greyscale:
If i pixel is on in bouth buffers it is black, if it is just on in the normal buffer it is gray

In four level greyscale:
If the pixel is on in bouth buffers it is dark black, if it is just on in the normal buffer it is darkgray, if it is just on in the other buffer it is lightgray

Remember that you need the DispGraph command then in a loop so it seems grey.

Hope I could help you out! :)

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: menu background
« Reply #6 on: December 11, 2011, 01:47:16 pm »
This is what I do.

Draw a menu on paint 96x64
If just black and white:Leave blank spaces where other menu things will be to not interfere
Save as monochrome bitmap
Go to Ti screen capture in ti-connect
Open the pic
Send to calc in archive, in Pic9 for example
[Pic9]->Pic9 ; in beginning
In the beginning of the menu loop,

Repeat getkey(15)
ClrDraw
Copy(Pic9,L6,768)
....other pics and stuff
DispGraph

Or for greyscale,

Repeat getkey(15)
ClrDraw
ClrDrawr
Copy(Pic9,L3,768)
...other pics and stuff
DispGraphr
« Last Edit: December 11, 2011, 01:48:59 pm by epic7 »

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: menu background
« Reply #7 on: December 12, 2011, 09:44:58 am »
ok, well, what you do:
Draw your pic, store it into a picvariable
[Pic1]->Pic1

Repeat getkey(15)
ClrDraw
Copy(Pic1,L6,768)
//draw curser
DispGraph
Repeat getkey
End
//Change curser possision
End

For Grayscale you do

[Pic1]->Pic1
[Pic2]->Pic2

Repeat getkey(15)
ClrDrawrr
Copy(Pic1,L6,768)
Copy(Pic2,L3,768)
//draw curser
Repeat getkey
Dispgraphr                 //if you want to use 4-level greyscale use instead Dispgraphrr
End
//Change curser possision
End

Well, that's how I would do it! :)
Important for greyscale is the little loop that repeats till a key is pressed so that it updates the screen often, else it doesn't look grey.

I would still add it to the black/white menu, just coz that's my programming style! :P

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!