My first game with a long name
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!
(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
Make games.
Ha ha you know you can't do that.
Yes I can myself see I already did that right now!
(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
Last edited by TurretBot on 09 Feb 2014, 22:29, edited 3 times in total.
I could easily fix this but it's not really a big deal (I'll probably fix it anyway)Camewel wrote:hold left+right at the same time
congratamations you are super winner
You should use
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.
Code: Select all
love.graphics.draw(image, math.floor(mariox), math.floor(marioy))
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.
- BobTheLawyer
- Posts: 2232
- Joined: 01 May 2012, 21:00
Download taken down. I was looking forward to doing what Camywel suggested.
Last edited by BobTheLawyer on 23 Jan 2014, 05:01, edited 1 time in total.
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
so yeah I fixed the left+right thing
also I fixed the mario math floor thing
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
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
a secret suit the raccoon suit
you can still keep going and improve your score after death
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
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
If it's just for one highscore, you can do this for writing :
And this for reading :
Code: Select all
love.filesystem.write("highscore.txt",tostring(highscore))
Code: Select all
if love.filesystem.exists("highscore.txt") then
highscore = tonumber(love.filesystem.read("highscore.txt"))
else
highscore = 0
end
Where would I put that?
Put the reading code in love.load, and the writing code, well, it should be executed when the player lose.
So replace:
with
So replace:
Code: Select all
if mariox > 800 or mariox < 0 or marioy > 600 or marioy < 0 then
mariodied = true
end
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
Thanks Auto!
Also, I put this on github: https://github.com/TurretBot/MFGWALN
Also, I put this on github: https://github.com/TurretBot/MFGWALN
- BobTheLawyer
- Posts: 2232
- Joined: 01 May 2012, 21:00
What is .gitattribute's and .gitignore, and why do you say "I put the actual code in" for nearly every file (including PNGs)?
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
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
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
My First Game With A Long Name But This Time It Has A Longer Name
- OrbitalBlueprint
- Posts: 528
- Joined: 08 Sep 2013, 20:11
- Contact:
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