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

Feel free to showcase your own projects!
Post Reply
User avatar
RPGMAN34
Posts: 34
Joined: 21 Mar 2014, 03:46

Post » 17 Mar 2016, 23:09

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?

User avatar
Technochips
Posts: 608
Joined: 12 Mar 2015, 16:05
Contact:

Post » 17 Mar 2016, 23:52

punch out actually first released on nes so welp

also nice thread name

User avatar
RPGMAN34
Posts: 34
Joined: 21 Mar 2014, 03:46

Post » 18 Mar 2016, 01:21

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?

User avatar
Technochips
Posts: 608
Joined: 12 Mar 2015, 16:05
Contact:

Post » 18 Mar 2016, 01:34

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

User avatar
RPGMAN34
Posts: 34
Joined: 21 Mar 2014, 03:46

Post » 18 Mar 2016, 04:13

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!

SantaMari0
Posts: 44
Joined: 16 Apr 2013, 18:49

Post » 29 Mar 2016, 16:56

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!

User avatar
RPGMAN34
Posts: 34
Joined: 21 Mar 2014, 03:46

Post » 30 Mar 2016, 05:24

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

SantaMari0
Posts: 44
Joined: 16 Apr 2013, 18:49

Post » 30 Mar 2016, 08:11

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.

User avatar
Wirespark
Posts: 20
Joined: 23 Nov 2013, 08:01

Post » 02 May 2016, 05:08

wiimote support?
Ima write a Glovepie script once its out and post it.

Post Reply