Author Topic: Star Backgound  (Read 33525 times)

0 Members and 1 Guest are viewing this topic.

Offline johnno56

  • Forum Resident
  • Posts: 1270
  • Live long and prosper.
    • View Profile
Star Backgound
« on: June 04, 2018, 09:15:23 pm »
I'm an not sure where to post this...

I have attached a space background (800 x 600). I made this using Gimp. Please feel free to use as you see fit. Credit is not required.

ps: I do planets as well... But they take a LOT longer to make...

Enjoy.

J
stars.png
* stars.png (Filesize: 716.48 KB, Dimensions: 800x600, Views: 777)
Logic is the beginning of wisdom.

Offline odin

  • Administrator
  • Newbie
  • Posts: 92
  • I am.
    • View Profile
Re: Star Backgound
« Reply #1 on: June 04, 2018, 09:22:29 pm »
This is probably the best spot.

FellippeHeitor

  • Guest
Re: Star Backgound
« Reply #2 on: June 04, 2018, 09:23:11 pm »
That looks gorgeous, johnno56! I wonder if it could be generated with code.

Offline johnno56

  • Forum Resident
  • Posts: 1270
  • Live long and prosper.
    • View Profile
Re: Star Backgound
« Reply #3 on: June 05, 2018, 12:22:10 am »
You are quite welcome to try. I have absolutely no idea how to do that... It took me many attempts to create the image using the principles of a tutorial as a guide

J
Logic is the beginning of wisdom.

Offline Ashish

  • Forum Resident
  • Posts: 630
  • Never Give Up!
    • View Profile
Re: Star Backgound
« Reply #4 on: June 05, 2018, 07:06:58 am »
Wow johnno56! Seems like you are very good at graphics designing! Good work!
if (Me.success) {Me.improve()} else {Me.tryAgain()}


My Projects - https://github.com/AshishKingdom?tab=repositories
OpenGL tutorials - https://ashishkingdom.github.io/OpenGL-Tutorials

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Star Backgound
« Reply #5 on: June 05, 2018, 09:39:34 am »
Hey Johnno,

That looks great for Lander project. Do you take requests? say for buttons, say for forward thruster, turning clockwise and counter-clockwise, for restarters?  ;-))

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Re: Star Backgound
« Reply #6 on: June 05, 2018, 10:09:45 am »
Johnno56 thank you for sharing this nice image!

Offline johnno56

  • Forum Resident
  • Posts: 1270
  • Live long and prosper.
    • View Profile
Re: Star Backgound
« Reply #7 on: June 05, 2018, 11:40:44 am »
Hey Johnno,

That looks great for Lander project. Do you take requests? say for buttons, say for forward thruster, turning clockwise and counter-clockwise, for restarters?  ;-))

N.B. I've already made a Lander using that background (sdlbasic) ;)

Flat; Glossy; Metallic; Rectangular; Circular; "Surprise Me"
Info: Dimensions; Colour; Text or symbol; Format: png etc

or perhaps a "hand drawing"

Just let me know what you need?

J

ps: Gold or Platinum plated will take longer and cost more... Nah. Kidding! Cost WAY more... lol
Logic is the beginning of wisdom.

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Star Backgound
« Reply #8 on: June 05, 2018, 12:07:21 pm »
Hey Johnno,

You can use your best judgment with Lander Project, the button sizes are around 200 x 50 but InForm can stretch them to fit.

Another collaboration? Feel free to add images to Lander Project thread.

Do you even have an idea for the Restart button?

Offline johnno56

  • Forum Resident
  • Posts: 1270
  • Live long and prosper.
    • View Profile
Re: Star Backgound
« Reply #9 on: June 05, 2018, 05:27:28 pm »
I'll start with perhaps a brushed metal finish... I do not think this project needs to have 'glossy' or 3D-type buttons... These beasties scream 'Hey look at me' and will 'distract'. After all, you do not want the player to crash, because their attention was 'drawn' to the fancy buttons... lol

Quick question: Regardless of the 'style', will you be wanting a duplicate 'clicked' button? (ie: slight colour change to indicate clicked)

J
Logic is the beginning of wisdom.

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Star Backgound
« Reply #10 on: June 05, 2018, 05:37:24 pm »
Hi Johnno,

You know what would be fancy cool, crystal buttons.

I'd say crystal buttons would glow a bit with mouse over and light up when pressed.

Don't know if we could do all that, don't know if we could do any of that. ;-))

Your Star Background is looking good with a black silhouette terrain.

Offline johnno56

  • Forum Resident
  • Posts: 1270
  • Live long and prosper.
    • View Profile
Re: Star Backgound
« Reply #11 on: June 05, 2018, 10:26:47 pm »
"Crystal" buttons. Hmm.. Not sure if I've seen any of those. Slight glow with mouse-over. Brighter glow when clicked. How will that work if the player only uses the arrow keys? Perhaps just a change of state from no glow to full glow? So, in essence, you need a set of 12 buttons, right? Crystal you say? I suppose you needed them yesterday? lol  I'm going to need a bottomless cup of coffee for 'this' project... lol

J
Logic is the beginning of wisdom.

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Re: Star Backgound
« Reply #12 on: June 06, 2018, 10:15:44 am »
Hi. Crystal buttons can be very easy realised using _SETAPLHA if button is image&. I muss going out now, but i can writing demo when am back.
« Last Edit: June 06, 2018, 10:19:25 am by Petr »

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Re: Star Backgound
« Reply #13 on: June 06, 2018, 03:50:08 pm »
So here it is, it use one Johnno56 picture:

Code: QB64: [Select]
  1. SCREEN _NEWIMAGE(800, 600, 32)
  2.  
  3. Image& = _LOADIMAGE("restart.png", 32)
  4. hide& = _NEWIMAGE(_WIDTH(Image&), _HEIGHT(Image&), 32)
  5.  
  6.     SELECT CASE Quad_Button(400, 300, Image&, 200, 0, 120) ' set alpha channel (transparency), 0 is full transparent, 255 is NOT transparent
  7.         CASE 0: LOCATE 1, 1: PRINT "Button not pressed"
  8.         CASE 1: LOCATE 1, 1: PRINT "Button pressed    "
  9.         CASE 2: LOCATE 1, 1: PRINT "Mouse on position "
  10.     END SELECT
  11.     _DISPLAY
  12.  
  13.  
  14.  
  15. FUNCTION Quad_Button (X AS INTEGER, Y AS INTEGER, ButtonImage AS LONG, OFF_Color, ON_Color, On_PosColor AS LONG)
  16.     _DEST hide&: LINE (0, 0)-(_WIDTH, _HEIGHT), _RGB32(0, 0, 0), BF: _DEST 0
  17.     IF _MOUSEX >= X AND _MOUSEX <= X + _WIDTH(ButtonImage&) AND _MOUSEY >= Y AND _MOUSEY <= Y + _HEIGHT(ButtonImage&) THEN
  18.         IF _MOUSEBUTTON(1) THEN GOSUB Button_Active
  19.         GOSUB OnPosition
  20.     END IF
  21.  
  22.     _SETALPHA OFF_Color, _RGB32(0, 0, 0), hide&
  23.     _PUTIMAGE (X, Y), ButtonImage&
  24.     _PUTIMAGE (X, Y), hide&
  25.     _LIMIT 30
  26.     Quad_Button = 0: EXIT FUNCTION
  27.  
  28.     OnPosition:
  29.     _SETALPHA On_PosColor, _RGB32(0, 0, 0), hide&
  30.     _PUTIMAGE (X, Y), ButtonImage&
  31.     _PUTIMAGE (X, Y), hide&
  32.     Quad_Button = 2: EXIT FUNCTION
  33.     RETURN
  34.  
  35.     Button_Active:
  36.     _SETALPHA ON_Color, _RGB32(0, 0, 0), hide&
  37.     _PUTIMAGE (X, Y), ButtonImage&
  38.     _PUTIMAGE (X, Y), hide&
  39.     Quad_Button = 1
  40.  

Please use picture RESTART.PNG from https://www.qb64.org/forum/index.php?topic=249.30 because attachments now works not.
« Last Edit: June 06, 2018, 03:52:44 pm by Petr »

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Star Backgound
« Reply #14 on: June 07, 2018, 10:11:33 am »
Hi Petr,

Works fine and as expected for me; I had never noticed _SETALPHA before this. A rather complex function that one!

Thanks for your demo.