Page 1 of 1

My first game with a long name

Posted: 18 Jan 2014, 02:49
by TurretBot
Hey turret what do you like to do?
Make games.
Ha ha you know you can't do that.
Yes I can myself see I already did that right now!
Image
(This is pretty much everything that you see before the results screen)

Here's the basics of the game:
You're mario in a frog suit (custom sprite don't steal) and you use the arrow keys to slide around
The more you slide the faster you get and the goal is to go really fast without hitting the edge of the screen
Also if you slide a lot in general that helps too because distance contributes to your final score in the end

Anyway here it is: Download
Remember this is my first game with lua but I wanted to share it with you all because why not

Re: My first game with a long name

Posted: 18 Jan 2014, 03:12
by Camewel
hold left+right at the same time
congratamations you are super winner

Re: My first game with a long name

Posted: 18 Jan 2014, 03:34
by TurretBot
Camewel wrote:hold left+right at the same time
congratamations you are super winner

I could easily fix this but it's not really a big deal (I'll probably fix it anyway)

Re: My first game with a long name

Posted: 18 Jan 2014, 04:10
by alesan99
You should use

Code: Select all

love.graphics.draw(image, math.floor(mariox), math.floor(marioy))

so mario doesn't look blurry.

To make it short, math.floor removes the decimals of mariox and marioy so the image is drawn on the pixels not between pixels.

nice game by the way.

Re: My first game with a long name

Posted: 18 Jan 2014, 04:52
by Doormat
alesan99 wrote:You should use
To make it short, math.floor removes the decimals of mariox and marioy so the image is drawn on the pixels not between pixels.


Also called pixel rounding!

As for the game, I sucked at it.

Re: My first game with a long name

Posted: 23 Jan 2014, 02:38
by BobTheLawyer
Download taken down. I was looking forward to doing what Camywel suggested.

Re: My first game with a long name

Posted: 23 Jan 2014, 03:14
by Camewel
BobTheLawyer wrote:Camy

????????????????????????????????????????????????????????????????????????

Re: My first game with a long name

Posted: 09 Feb 2014, 06:57
by TurretBot
11:56 PM - B-Man99: You should be like "I updated it by adding a patch for the thing you guys pointed out and I fixed it all by myself in like 5 minutes"
so yeah I fixed the left+right thing
also I fixed the mario math floor thing

Re: My first game with a long name

Posted: 09 Feb 2014, 07:06
by B-Man99
This is a really neat concept for a first project Turret. You did a really good job. I like it!
Really, it's nice to see something like this coming from you. I'll talk to you more on steam since you made it brutally obvious already that I already knew about it

My high score is 40570021
I gold the gold why medal
What do I win

Re: My first game with a long name

Posted: 09 Feb 2014, 07:08
by TurretBot
a secret suit the raccoon suit

Re: My first game with a long name

Posted: 09 Feb 2014, 20:26
by MM102
you can still keep going and improve your score after death
Image

Re: My first game with a long name

Posted: 09 Feb 2014, 22:34
by TurretBot
Should be fixed now
Also changed the bg color slightly
Plus I was looking on the wiki and found out how to change the title on the game window
I wanna make a score saving system (even if you can't view it ingame) but I can't figure out how

Re: My first game with a long name

Posted: 09 Feb 2014, 23:29
by Automatik
If it's just for one highscore, you can do this for writing :

Code: Select all

love.filesystem.write("highscore.txt",tostring(highscore))

And this for reading :

Code: Select all

if love.filesystem.exists("highscore.txt") then
    highscore = tonumber(love.filesystem.read("highscore.txt"))
else
    highscore = 0
end

Re: My first game with a long name

Posted: 09 Feb 2014, 23:34
by TurretBot
Where would I put that?

Re: My first game with a long name

Posted: 13 Feb 2014, 21:14
by Automatik
Put the reading code in love.load, and the writing code, well, it should be executed when the player lose.

So replace:

Code: Select all

   if mariox > 800 or mariox < 0 or marioy > 600 or marioy < 0 then
      mariodied = true
   end

with

Code: Select all

   if mariox > 800 or mariox < 0 or marioy > 600 or marioy < 0 then
      if not mariodied then
         if highscore<(topspeed + distance) * (speed + 1) then -- The player has beat the highscore
            highscore = (topspeed + distance) * (speed + 1)
            love.filesystem.write("highscore.txt",tostring(highscore))
         end
      end
      mariodied = true
   end

Re: My first game with a long name

Posted: 13 Feb 2014, 22:13
by TurretBot
Thanks Auto!
Also, I put this on github: https://github.com/TurretBot/MFGWALN

Re: My first game with a long name

Posted: 14 Feb 2014, 04:31
by BobTheLawyer
What is .gitattribute's and .gitignore, and why do you say "I put the actual code in" for nearly every file (including PNGs)?

Re: My first game with a long name

Posted: 14 Feb 2014, 05:57
by TurretBot
1. The git stuff is related to github, they're probably required so I can use github with the code
2. "I put the actual code in" was the first 'update' to the game, because I had to add the code/images to the game which counts as an update for some reason, it says different things on the stuff that I updated

Re: My first game with a long name but this time it has a longer name

Posted: 14 Jan 2015, 02:28
by TurretBot
So I saw Orbital Blueprint's game (viewtopic.php?f=11&t=4571) and that inspired me to, instead of posting on his thread so he knows that I liked/played his game and give him constructive criticism to improve, watch some of Qcode's love tutorial to add an idea I had back when I first made this where you could eat mushrooms. I also changed a couple other things but mostly I just wanted to post it for that so here:

My First Game With A Long Name But This Time It Has A Longer Name

Re: My first game with a long name

Posted: 20 Jan 2015, 15:32
by OrbitalBlueprint
Image

Woohoo!

After about 500 mushrooms, the game started to lag. I'd suggest setting a limit as to how much mushrooms spawn in order to prevent that lag :P

Although it can be interpreted as Mario eating and eating and eating until he becomes too fat to eat much more...

EDIT: Holy shit, that secret message is brilliant