Streaming game development: https://www.twitch.tv/stabyourself Image

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

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

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=0B8lwqhC0soqCd2JPNEZYemZYcWM


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?

Technochips
User avatar
Posts: 690
Joined: 12 Mar 2015, 16:05
Reputation: 189
Contact:

Post » 17 Mar 2016, 23:52

punch out actually first released on nes so welp

also nice thread name

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

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?

Technochips
User avatar
Posts: 690
Joined: 12 Mar 2015, 16:05
Reputation: 189
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

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

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: 45
Joined: 16 Apr 2013, 18:49
Reputation: 14

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!

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

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: 45
Joined: 16 Apr 2013, 18:49
Reputation: 14

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.

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

Post » 02 May 2016, 05:08

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


Return to “Game development”

Who is online

Users browsing this forum: No registered users and 3 guests