how can i make a shop page

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
bobbyjones
Party member
Posts: 730
Joined: Sat Apr 26, 2014 7:46 pm

how can i make a shop page

Post by bobbyjones »

how can I make a shop page that is graphically similar to the one in shoppingcarthero 3
heres the code I have so far but this is just ugly. I don't want to use pictures because idk im stubborn.

Code: Select all

      love.draw()
      A = love.window.getWidth() - 100
		B = love.window.getHeight() - 100
		
		love.graphics.setLineWidth(3)
		
				
		love.graphics.setLineStyle( 'smooth' )
		
		
		--love.graphics.setInvertedStencil( recSizzor )
		love.graphics.setColor(0,0,0)
		love.graphics.polygon('fill',130,105,150,70,350,70,365,105)
		love.graphics.rectangle('fill',100,100,A-100,B- 100)
		love.graphics.setColor(255,255,255)
		love.graphics.rectangle('fill',100,101,A-100,B-101)
		love.graphics.setColor(255,0,0)
		love.graphics.line( 100,100,130,100,150,70,350,70,365,100,A,100,A,B,100,B,100,100 )
      end 
User avatar
YGOFreak1997
Party member
Posts: 103
Joined: Sun Jan 22, 2012 4:29 pm
Location: Germany, Baden-Württemberg
Contact:

Re: how can i make a shop page

Post by YGOFreak1997 »

I guess this is a rather complicated problem. You could, for instance write your own object-oriented UI so you can add buttons and list objects or whatever else you need for the shopping page. To make it easier to start over, you could also use one of the many GUI libraries out there (See the wiki!) but they of course do not offer the variety you may need for your project.

Hope I could help a bit, greetings!
Also look at my LÖVE-Tutorial-Youtube-Channel (German ^^)
GitHub Repo: Click Me!
Website: No, Me!
IndieDB: Or Maybe Me?

ÖBEY!
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 5 guests