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

My first game with a long name

Feel free to showcase your own projects!
TurretBot
User avatar
Posts: 4635
Joined: 15 Mar 2012, 23:18
Reputation: 713
Contact:

Post » 18 Jan 2014, 02:49

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
Last edited by TurretBot on 09 Feb 2014, 22:29, edited 3 times in total.

Camewel
Posts: 2996
Joined: 02 Feb 2012, 21:32
Reputation: 35

Post » 18 Jan 2014, 03:12

hold left+right at the same time
congratamations you are super winner

TurretBot
User avatar
Posts: 4635
Joined: 15 Mar 2012, 23:18
Reputation: 713
Contact:

Post » 18 Jan 2014, 03:34

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)

alesan99
User avatar
Posts: 1639
Joined: 30 May 2013, 21:42
Reputation: 266
Contact:

Post » 18 Jan 2014, 04:10

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.

Doormat
User avatar
Posts: 300
Joined: 20 Aug 2013, 02:33
Reputation: 67

Post » 18 Jan 2014, 04:52

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.

BobTheLawyer
User avatar
Posts: 2240
Joined: 01 May 2012, 21:00
Reputation: 53

Post » 23 Jan 2014, 02:38

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.

Camewel
Posts: 2996
Joined: 02 Feb 2012, 21:32
Reputation: 35

Post » 23 Jan 2014, 03:14

BobTheLawyer wrote:Camy

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

TurretBot
User avatar
Posts: 4635
Joined: 15 Mar 2012, 23:18
Reputation: 713
Contact:

Post » 09 Feb 2014, 06:57

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

B-Man99
So long, and thanks for all the fish.
Posts: 1922
Joined: 02 Jul 2012, 00:32
Reputation: 415
Contact:

Post » 09 Feb 2014, 07:06

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

TurretBot
User avatar
Posts: 4635
Joined: 15 Mar 2012, 23:18
Reputation: 713
Contact:

Post » 09 Feb 2014, 07:08

a secret suit the raccoon suit

MM102
User avatar
Posts: 1015
Joined: 11 May 2012, 06:08
Reputation: 498

Post » 09 Feb 2014, 20:26

you can still keep going and improve your score after death
Image

TurretBot
User avatar
Posts: 4635
Joined: 15 Mar 2012, 23:18
Reputation: 713
Contact:

Post » 09 Feb 2014, 22:34

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

Automatik
User avatar
Posts: 1076
Joined: 20 Jul 2012, 17:54
Reputation: 8
Contact:

Post » 09 Feb 2014, 23:29

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

TurretBot
User avatar
Posts: 4635
Joined: 15 Mar 2012, 23:18
Reputation: 713
Contact:

Post » 09 Feb 2014, 23:34

Where would I put that?

Automatik
User avatar
Posts: 1076
Joined: 20 Jul 2012, 17:54
Reputation: 8
Contact:

Post » 13 Feb 2014, 21:14

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

TurretBot
User avatar
Posts: 4635
Joined: 15 Mar 2012, 23:18
Reputation: 713
Contact:

Post » 13 Feb 2014, 22:13

Thanks Auto!
Also, I put this on github: https://github.com/TurretBot/MFGWALN

BobTheLawyer
User avatar
Posts: 2240
Joined: 01 May 2012, 21:00
Reputation: 53

Post » 14 Feb 2014, 04:31

What is .gitattribute's and .gitignore, and why do you say "I put the actual code in" for nearly every file (including PNGs)?

TurretBot
User avatar
Posts: 4635
Joined: 15 Mar 2012, 23:18
Reputation: 713
Contact:

Post » 14 Feb 2014, 05:57

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

TurretBot
User avatar
Posts: 4635
Joined: 15 Mar 2012, 23:18
Reputation: 713
Contact:

Post » 14 Jan 2015, 02:28

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

OrbitalBlueprint
User avatar
Posts: 601
Joined: 08 Sep 2013, 20:11
Reputation: 308
Contact:

Post » 20 Jan 2015, 15:32

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


Return to “Game development”

Who is online

Users browsing this forum: No registered users and 1 guest