Page 1 of 1

Spoilers on a game Im working on... you will find out once you open it

Posted: 17 Mar 2016, 23:09
by RPGMAN34
this game is still WIP (a lot) but I thought I'd show you guys what I got...
Punch Out!! Wii(NES Edition)

Punch Out Wii (NES Edition) is a recreation of punch out wii, BUT ON THE NES!!!
I will add screen shots once I get the first fight prepared...

the image that gave me the idea


download: https://drive.google.com/open?id=0B8lwq ... EZYemZYcWM
im also having troubles with this code area here

Code: Select all

function love.load()
	--Non Images
	
	mouse = {
		x = love.mouse.getX() - 12,
		y = love.mouse.getY() - 10
	}
	
	area = 0
	--[[
	0 = main menu
	1 = main mode
	2 = exibition
	3 = settings
	4 = vs mode
	]]
	
	--Actual Images and Sounds
	image = {
		title = love.graphics.newImage("Images/titleLogo.png"),
		news = love.graphics.newImage("Images/Backgrounds/news.png"),
		cursor = love.graphics.newImage("Images/cursor.png")
	}
	
	sound = {
		punch = love.audio.newSource("Sounds+Music/punch.mp3")
	}
end

function love.mousepressed(x, y, button, istouch)
	if button == 1 then
		love.audio.play(sound.punch)
	end
end
I wan it to play a sound when I left click... did I do it right?

Re: Spoilers on a game Im working on... you will find out once you open it

Posted: 17 Mar 2016, 23:52
by Technochips
punch out actually first released on nes so welp

also nice thread name

Re: Spoilers on a game Im working on... you will find out once you open it

Posted: 18 Mar 2016, 01:21
by RPGMAN34
Julien12150 wrote:punch out actually first released on nes so welp

also nice thread name
it was actually first on an arcade machine in 1984...

and is that code right?

Re: Spoilers on a game Im working on... you will find out once you open it

Posted: 18 Mar 2016, 01:34
by Technochips
RPGMAN34 wrote:
Julien12150 wrote:punch out actually first released on nes so welp

also nice thread name
it was actually first on an arcade machine in 1984...

and is that code right?
i have no idea i only coded with LOVE once but it's was very shitty and has no sprites

Re: Spoilers on a game Im working on... you will find out once you open it

Posted: 18 Mar 2016, 04:13
by RPGMAN34
Julien12150 wrote:
RPGMAN34 wrote:
Julien12150 wrote:punch out actually first released on nes so welp

also nice thread name
it was actually first on an arcade machine in 1984...

and is that code right?
i have no idea i only coded with LOVE once but it's was very shitty and has no sprites
OK! I understand!

Re: Spoilers on a game Im working on... you will find out once you open it

Posted: 29 Mar 2016, 16:56
by SantaMari0
It would help if you could post the error message
Although the error probably has to do with the placement of the graphics/audio files, as I couldn't find any syntax errors

Good luck with your project!

Re: Spoilers on a game Im working on... you will find out once you open it

Posted: 30 Mar 2016, 05:24
by RPGMAN34
SantaMari0 wrote:It would help if you could post the error message
Although the error probably has to do with the placement of the graphics/audio files, as I couldn't find any syntax errors

Good luck with your project!
there is actually no errors! the only problem is it wont play a sound when I want it to

Re: Spoilers on a game Im working on... you will find out once you open it

Posted: 30 Mar 2016, 08:11
by SantaMari0
I'd say check to make sure you're running LÖVE 0.10.0 or higher, because in previous versions the argument 'button' of 'love.keypressed()' was a string.
If you are not running 0.10.0 or higher, you should change:

Code: Select all

   if button == 1 then
      love.audio.play(sound.punch)
   end
to

Code: Select all

   if button == "l" then
      love.audio.play(sound.punch)
   end
("l" stands for left-click, "r" stands for right-click)

Otherwise there must be something wrong with your audio file.

Re: Spoilers on a game Im working on... you will find out once you open it

Posted: 02 May 2016, 05:08
by Wirespark
wiimote support?
Ima write a Glovepie script once its out and post it.