Page 1 of 1

how can i make a shop page

Posted: Wed May 07, 2014 12:41 am
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 

Re: how can i make a shop page

Posted: Mon May 26, 2014 5:43 am
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!