Share your repls and programming experiences

← Back to all posts
242
The Fishing Game
h
AmeliaBlackwell (910)

The Fishing Game

Explore your way through the different regions by catching the rarest fish you can. Catch em all to fill up your fishedex!

Hi!! This my fishing game. Here's a bit of an explanation that you also get ingame:

Welcome to my fishing game! The aim of the game is to reach level 100 as quickly as possible. Catch the rarest fish you can and level up! You can sell your fish in the shop. Rarer fish bring in more gold. You can use this gold to purchase bait, which is needed to catch fish, and rods, which make catching rarer fish easier. Careful, bait gets more expensive as you level up. New types of fish are unlocked as you level up, and at higher levels, it's easier to catch fish. You can also see information about all the fish you've come across in the 'fishedex' in the shop. Catch them all! You might also find some treasure when you're fishing! The game saves your progress at the end of each day, so you can just log in again and pick up where you left off. Good luck! Press enter to continue.

Not gonna lie, it's pretty fun.


Backstory

I made this game last July. The reason I choose fishing was mainly because it makes plurals easier - the plural of most types of fish is the same as the singular ;) (This doesn't work for anchovies though... or mythical creatures. Oh well). To make it I did have to learn a little about using classes and objects - I find them really useful now though. My coding's definitely developed a bit since I made this (it's a mess), but I can't really be bothered to make the code any neater (I did a tiny bit). I have edited it a bit since I originally made it to make it ready for the game jam. Here are some of the additions (spoiler for past level 100!!) :

  • There are new "mythicals" which are extremely rare fantasy creatures, like mermaids. They can only be encountered after level 100. You can't sell them, though the game remembers which ones and how many you've seen. You need the special new moonstone rod.
  • The game's harder now, in that the XP needed to level up increases exponentially as you go up the levels. I really should have had that from the beginning, because levelling up was way too quick.
  • Some new types of fish!
  • Highscore board for how many days it takes to reach level 100. I'm not sure if this was in the original fishing game that I posted in July, but I don't think it was. It's empty currently because the new XP-level scale has made all the previous highscores made by me and my family during testing unfair. Let's see who get's the lowest!
  • Rarest fish stat. Within the rarity boundaries like common, uncommon, rare ect, there are varying rarities based on a number. If you catch a fish with the same rarity number as your rarest fish stat, it counts as rarer if it's unlocked at a higher level. Basically, higher level is used to decide rarity in a couple of cases. The point is, I wanted to add something that made the game more orientated to getting the rarest fish - kinda like pokemon. Anyone got the blue whale?
  • Changed the rod names from "default, alright, decent, good, great" ect. to "wooden, bamboo, copper, iron, steel" ect, just for added character. The only one that stayed the same was the awesome golden rod ;)

In the Future...

I've got a few ideas for what I want to add to the fishing game...

  • A little addition of telling you the current highscore when you sign up, or when you log in, or at the top each day in game. I just don't really know which one would be best. Let me know what you want!
  • More fish of course! I just don't want to bombard you with them. Maybe if some of you guys really like the game I'll put a personalised fish in for you ;)
  • More ideas post level 100. Maybe some cool non-mythical fish.
  • Having the option to change rods using ones you've already bought, because at the moment if you want to change your rod you have to repurchase any you've already bought and that's just dumb.
  • New rods with cool properties, like extra attempts per day, or unlocking specific types of fish, unlocked at certain levels.
  • Maybe, but probably not, lengths of fish - they'd be a mean length for each type, and the fish you caught would be around this. The price could depend on length. There could be a new stat with longest fish caught? I feel like this is just too complicated for my simple little fishing game though.
  • Music! I feel like it would really benefit from some tunes but I don't know how to implement that. I'd have to look in to it.
  • Your suggestion here. Seriously, I would really love it if you guys could tell me what you want to see, if you like the game of course.

PLANS FOR THE FINAL DAY

  • Quests/achievements?
  • Rainforest and/or fire biome? DONE fire, I think rainforest would be cool but too much
  • Settings page with options to reset account, see highscores, see game info/help, see current number of accounts on the game? DONE
  • Work on fish rarity colours and fishedex/treasuredex colouring. DONE
  • End biome highscores page? DONE and in settings
  • Mythicals for the other biomes !!! DONE
  • Better names than "normal biome" "ice biome" "desert biome" DONE but they were stolen from game of thrones... oops
  • Weathers with different fish for different weathers DONE

Well that's it. I really hope you guys like it. If there's any bugs let me know, and if you want any improvements, let me know too! Thanks so much for trying it out! (also sorry that it doesn't fit the cash theme. I edited it to make it more appropriate to the cash theme, but it kinda sucked. I prefer the cutesy fishing element)

On a final note, let me know if you encounter all the mythicals! That would be seriously cool!

Edit: don't really care if you don't like that it's in all lower case. I think it looks nicer.


Change Log since posting

  • Input validation for a, b, c at the start of the day, to avoid the "press enter and run up your days" error
  • Input validation for logging in or signing up
  • More input validation for selling some fish, plus added capability for selling multiple fish at a time (not all fish) and fixing a bug that would've prevented fish with spaces in their name - eg electric eel - to be sold.
  • Fixed the printing of high scores so that it's in actually in the correct order, plus accounting for ties.
  • Disallowed "-" characters in the username, which would've messed up the accounts file, had it been working anyway.
  • Lowered the power of the rods and raised the prices for a more difficult game ... sorry if the highscores are now unfair but I can't let it be the same game forever :(
  • More input validation in the shop... it never ends
  • Weirdly, more input validation in the shop, I thought I caught it all, but nope. thanks for catching that, TechGamer
  • Added the "fishedex"!! It's amazing! It's literally just a pokedex. Go to the shop to see it. If you do manage to catch em all then tell me if my code works and you get a congratulations. Hope you all like the fishedex, thanks to Hamloid for the idea!
  • Accounts and highscores saving error fixed!
  • You don't get as much info about a fish each time you catch one now, only the first time you do. I think it looks a lot nicer.
  • The code now has the grammar knowledge of a 6 year old and can appropriately use "a" or "an" now.
  • If you put in "log in" but you should've put in "sign up", you no longer need to refresh, the code will sort it out for you.
  • Fixed password security thanks to ebest!
  • Added treasures and treasuredex!
  • Fish are now coloured based on rarity, inspired by Runescape!
  • Different biomes with different fish, different treasures, harder xp gradients, and dangers [dangers are so cool]! Level resets to 1 in these biomes. You can travel between biomes by ships (your old levels stay the same, don't worry). Biomes are only unlocked past level 100. I only have the ice biome now, but more are coming (unlocked at ice level 100, ect.)
  • Biome specific rods! [only 1 per biome, but they're both great at getting rare fish, and allow mythicals (at the moment mythicals can only be caught in normal, but I'm going to add ice and desert mythicals)
  • Desert biome added!! I know, the names suck. I'm working on it.
  • Bait price increases as you level up. It's also more expensive as you go through the biomes.
  • Dangers added for normal.
  • "One use" items! These are pretty cool and last for 1-2 weeks, increasing your chance at either: catching a fish, catching a treasure or catching rarer fish, or keeping you safer. There's 2 "levels" of item for each, with the better being rarer. They can't be bought in the shop and are instead found when fishing.
  • Added weathers, which are specific to biomes. Most fish can only be caught in certain type(s) of weather.
  • Added settings page with options to reset account, see highscores, see total number of accounts signed up, see game info and see game help. Going to settings doesn't use up your day, unlike the shop.
  • Improved fish rarity colours suggested by Mavrick and each line in the fishedex is coloured according the what biome the fish is found in.
  • Fire biome, which is the last one! Highscores page for when you complete it.
  • Mythicals for different biomes.
  • Biomes are no longer called biomes and are now named after locations in game of thrones.
  • Massive bug exodus just before deadlines oops
  • Inputs except user and password are now not case sensitive
  • Slight edits to reaching level 100 & ship functions
  • cats_ur_cool77's awesome fishing game tribute can be found in settings!
  • credits when you reach endgame!

New: Competition!

Anyone who can reach level 100 in under 300 days can have a personalised mythical! Screenshot the highscore board once you reach 300 and tell about what you want your mythical to be. Maybe they'll have even more XP than normal mythicals. Good luck!!


Account bug FIXED! Finally! Thanks so much to leon332157 for their json store module - https://repl.it/talk/share/jsonstoreio/10956. Your account information and highscores should always be saved now! (let me know if you find a bug though)

Issue with account security is definitely improved now. Don't try too hard to hack it though aha Edit: account security is much better now!! thanks to ebest!

Don't forget to upvote if you enjoyed the game! Thanks so much to everyone who has done so, or commented, already!


Notes to judges

  • Sorry that there are no screenshots of game play. I was planning to take some today but I have definitely ran out of time :(
  • Please don't mark me down because it's all in lowercase. It's inspired by a dark room, and it's super easy to change at the end of the day.
  • PLEASE play until you reach at least the ice biome Beyond the Wall because I worked so hard on the biomes!! And don't you want to log a highscore?
  • Sometimes, I worked on the file by forking it and editing the fork. I then copied and pasted it back into the original. I deleted some forks to make more room in my repl. I swear I used repl.it!
  • I used this file a lot to change the data that is held for the accounts. It was necessary when the new developments in the game required more data to be stored. https://repl.it/@AmeliaBlackwell/Fishing-Game-Account-Handler
  • Of course I really hope you enjoy my game :)
  • *I had to restore the latest backup because the storage got full and had to delete itself. I'm really sorry anyone lost their data. I should've written an exception for this but I didn't think about that before the deadline. Everything should be working now though.

I recommend playing in a new tab

Commentshotnewtop
18
Galamphin (99)

This game is awesome!
In the future you could make this into an 8-bit game (kinda like pokemon, or stardew valley!)

5
AmeliaBlackwell (910)

@Galamphin Thank you!!! that would be so cool, I love both those games :) I will need to learn some more code though haha

2
ChristopherOkor (7)

@AmeliaBlackwell if you want people inthe community can hel yu use pygame to make it 8 bit
i already know how to use pygame so people could help you do the graphics while you do th e random and logoics== and ther variables

1
Lil_smokey (0)

@AmeliaBlackwell
How long had you been learning code when you made this?

4
AmeliaBlackwell (910)

@JonathanYuan woah good job!! I guess the new challenge is under 300! also noticed my highscores seem to not work with ordering :/ I'll fix it. hope you enjoyed!

1
xmy314 (0)

@AmeliaBlackwell this game is really great. by the way, I pressed report rather than reply for the first time I want to reply. I'm really sorry about it.

4
AmeliaBlackwell (910)

@TristanBlair great job, you did it really fast, under a year! I'll put you in the high scores file to save it for all eternity

2
Sparkster (45)

Got two mythical in one time
@Sparkster

4
AmeliaBlackwell (910)

@Sparkster WOAh that looks so satisfying ahhhhhh which mythical is your favourite??

4
AmeliaBlackwell (910)

@Sparkster oh that's so cool too! Maybe i should make them rarer haha

4
AmeliaBlackwell (910)

@Sparkster haha mine's the lion turtle (avatar the last airbender)

3
FakeName4 (7)

@TristanBlair https://files.catbox.moe/uicw97.png
i guess i am second, that's too bad. fun game though!

5
AmeliaBlackwell (910)

@FakeName4 Adding you to the highscores! thanks a lot, glad you enjoyed. maybe try again? ;)

2
FakeName4 (7)

@AmeliaBlackwell Thanks! I will try to push to 10m gold.

4
AmeliaBlackwell (910)

@FakeName4 woahh I've only got to like 200k before! let me know if you do it!

4
ebest (408)

@Sparkster BABY SHARK DO DO DO DO DO DO BABY SHARK DO DO DO DO DO DO BABY SHARK DO DO DO DO DO DO BABY SHARK MOMA SHARK DO DO DO DO DO DO MOMA SHARK DO DO DO DO DO DO... lol

5
YousifZangana (4)

why does it say username and password do not match when i made them the same?

4
AmeliaBlackwell (910)

@YousifZangana it's a bug. It works on my account but no other accounts. it must be to do with file editing privileges for other users since the account details are saved to an external text file. I'm trying to fix it but I think it's due to repl.it, not my code

4
ebest (408)

Leprechaun pot could be a treasure for a special hook (rainbow hook. Perhaps a rainbow hook could also catch the legendary leprechaun (maybe you need the hook that's blessed by St. Patricks for that)). Also, you could add hooks as treasures that you can only find by fishing. You could also add some unique fishing rods that are only acquirable by fishing. And other things like that, like a guaranteed treasure bait that's also only acquirable by fishing. Another item would be a treasure magnet, perhaps. stick it in the place of your bait and you have a higher chance of getting treasure, but you cannot get fish when you have it on. Lots of ideas.

2
AmeliaBlackwell (910)

@ebest I have a lot of ideas that I'm gonna be working on asap. I hope you like them ;)

2
2
AmeliaBlackwell (910)

@ebest yeah!! Hope you like them! The last thing I'm going to do is add mythicals in the different biomes, then I'm done :)

2
ebest (408)

@AmeliaBlackwell where's my bait backpack? :'(

HAHAHA
And now I'm going to beat the game with effectively infinite gold and infinite bait. This is gonna be fun! :)
Also, are the caught bait/hooks automatically applied?

-Ebest

2
AmeliaBlackwell (910)

@ebest Aw yeah! Honestly I love the bait backpacks idea but I don't want to have too much stuff and for it to be confusing. sorryyyyyyy!

Haha have fun! yes they are!

2
ebest (408)

@AmeliaBlackwell I want a way to get more tries. It's annoying, having to press a in the middle of fishing sessions.

2
AmeliaBlackwell (910)

@ebest I'm sorry! I don't really have time to change it now :( please let me know if you find any bugs? thank you!

4
ebest (408)

the new storage still can be encrypted. If you have the skill, it's still easy to find the accounts.

3
AmeliaBlackwell (910)

@ebest yes I'm aware :( at least it works though. I will try my best to work on some encryption. Do you think I should focus on encrypting the key or the actual data?

3
AmeliaBlackwell (910)

@ebest if someone looks at my code they could use the key to find the data. Should i somehow encrypt the key so someone looking at my code can't use it, or encrypt the data so someone looking at the data can't use it? I don't really know much about this, i will have to look into it. It's hard when anyone can look at the code

2
ebest (408)

@AmeliaBlackwell Actually, there is no key except the salt and you cannot reverse a hash. Basically, once a password is hashed there is no reversing the hash and finding back the password.

2
ebest (408)

@AmeliaBlackwell I'm almost done with the fork, but if I complete the operation your version of the game will not work anymore.
Here it is:
https://repl.it/@ebest/the-fishing-game-1
Ok. Line 683, if you delete the pound signs and run the code, the commented code will change all your passwords (even on your original copy) and the rest of the changed code will run normally.

Changes:
Line 84 hashes passwords on sign-up/creation of account
Line 116 hashes user inputed password and compares to stored and hashed passwords
Line 683 changes all unhashed passwords into hashed passwords

and this is for free. I like seeing my work on other websites

-Ebest

3
AmeliaBlackwell (910)

@ebest okay cool!! Thanks so much. Please explain what you did coz i'm not really understanding this whole hash thing, sorry :/

2
ebest (408)

@AmeliaBlackwell hash = irreversible encryption
Now do you understand?

2
ebest (408)

@ebest Issue with account security is definitely improved now. Don't try too hard to hack it though aha
MUAHAHAHAHAHA I already did
oh noes your going to use encryption now

3
AmeliaBlackwell (910)

@ebest okay right, I get it. Thank you so much. I'll have a look and implement it tomorrow. Thanks again!!

3
AmeliaBlackwell (910)

@ebest yes yes i will be using your encryption code don't fear

2
ebest (408)

@AmeliaBlackwell a salt I think is that when you shove a bunch of characters inbetween your message:
Hello how are you doing
to
Hlelwlod whdodwc dauroed oyuodud dwoxignag

2
ebest (408)

@AmeliaBlackwell it would be easier than that. You could just copy my code into your file. then run the line 683 code and delete that.
but oh well

3
AmeliaBlackwell (910)

@ebest ohhh okay. Also when i said key i meant token - the token to the specific json store web page

3
AmeliaBlackwell (910)

@ebest yeahh that's what I'll do aha, that's what I meant ^^

2
ebest (408)

@AmeliaBlackwell ohhhhhhh That's a good idea, but it might be a little hard. Because of the key thing. Maybe you could store the website somewhere else, or in an extremely complex text file. I'll think about that.

and the leon person is also where I got my json io storage idea. How coincidental.

The only way I thought of to securely store a key to a game is by person. You could also store seperate (encrypted) bits of the token in different positions in the game code, then decode them with different method. The best you can do is obfustication, and if you want that I can add it.
If you want to obfusticate it, the secure storage has this:

eobj = AES.new(key, AES.MODE_CFB, key2)
ciphertext = eobj.encrypt(message)

I can add that, too

3
AmeliaBlackwell (910)

@ebest Hi ebest, so I ran the code but only some of the passwords were changed? it's weird

3
AmeliaBlackwell (910)

@ebest That's alright. your password hasher worked fine and that's enough for me. Yeah, I wish I could just store the key on my computer and then get replit to find it from one of my files.
the json storage is really cool huh. I've always wanted to be able to store objects as objects and not as there little individual parts. it's so much easier.

2
3
AmeliaBlackwell (910)

@ebest It's working now!! sorry forgot to say. it's working really well, thanks so much :)

4
ebest (408)

This is really cool! I'd give 100 upvotes if I could, but I can only give one. Yesterday, I was making some code for secure storage using a bunch of other ideas. Here it is:
https://repl.it/@ebest/Secure-Storage
This also stops the problem of file saving. I was having that problem too. Really annoying, but I found some info from another post.
Just curious, do you have spring break?
-Ebest

3
AmeliaBlackwell (910)

@ebest oh wow thanks v much for the code!! I'll have a look at it tomorrow coz it's getting late here. Hopefully it will solve the file problem. Really glad you enjoyed the game :) yeah I'm on spring break (we call it easter holidays in the UK though).

2
ebest (408)

@AmeliaBlackwell How long is easter holidays? until easter, I'm guessing, but easter is in a while. Thanks!

3
AmeliaBlackwell (910)

@ebest haha yeah until easter. we have longer holidays here, except summer, which is a lot shorter than the american summer holidays.

4
lsambrook (284)

Wow..... i played it and at day 26 it laged and it made me quit the game, i tried to log in but it doesn't work even if i put the right username and the right password.

4
AmeliaBlackwell (910)

@lsambrook Lagging is not my fault it's probably your computer's or the repl.it server. The post talks about the account bug in bold. Please read it and do what it says if you want me to save your account.

4
lsambrook (284)

@AmeliaBlackwell i made i new one and it works now thanks for the answer anyway

4
ethanheys (38)

lol i made i made it in 321 days lol

you caught a blue whale! a blue whale is a legendary fish that can be sold for 5000 gold
CONGRATULATIONS! YOU REACHED LEVEL 100!
you reached level 100 in 321 days
these are the high score rankings for how many days other players have reached level 100 in
1. wbt - 321 days
2. tjb0411 - 341 days
3. l33g - 357 days
4. spencer - 379 days
now that you've reached level 100, you have the ability to encounter mythical creatures. these are extremely rare and can only be found with the moonstone rod, which is now unlocked in the shop. they can't be sold, but encountering them gives you a lot of experience!

4
AmeliaBlackwell (910)

@ethanheys woah good job! I'll add you to the highscores file :) that's soo quick

4
Babbel (56)

I've already played this game a while ago, so i already know it's really nice :) +1

4
AmeliaBlackwell (910)

@Babbel Thanks a lot!! hope you enjoy the new stuff!!

4
15aaronm (3)

the code needs more work

4
AmeliaBlackwell (910)

@15aaronm yeah I guess, it does the job though

4
AkhilGupta (16)

There is a fatal error is you do not enter anything when selling some fishes

4
AmeliaBlackwell (910)

@AkhilGupta Oh boy that's bad, I'll fix it as soon as I can. thanks for showing me!

4
AmeliaBlackwell (910)

@AkhilGupta Fixed, the selling some fish part needed some work - I'm used to just selling all. it's more functional now

1
AkhilGupta (16)

@AkhilGupta another error....
I am stuck in an infinite loop

2
AmeliaBlackwell (910)

@AkhilGupta oh I'm really sorry about that. I'll fix it asap

1
AkhilGupta (16)

@AmeliaBlackwell great...I should be your tester..lol.

1
AkhilGupta (16)

@AmeliaBlackwell great....
Lucky you that you got this many people to test your game for you before the jam ends. I feel a bit jealous!

4
JustARatherRidi (185)

How you've managed put all of this together is seriously impressive, well done! There's one small problem if you haven't noticed, anyone can come along and see what's in accounts.txt, so the whole login thing isn't exactly 100% secure 😛

5
AmeliaBlackwell (910)

@JustARatherRidi Thanks very much! Glad you like it! Yeah, I just kind of assumed people wouldn't exploit that. I guess I should definitely fix it though. I wouldn't know how to do that, though...

4
JustARatherRidi (185)

@AmeliaBlackwell No problem! ^^

I'd say the easiest way to get around it is by encrypting the username and password in some way. If you haven't heard of it before, try googling "caesar cipher" (it isn't as scary as it sounds). This won't exactly stop someone from figuring it out if they wanted to, but now they would at least have to read the source code to do it.

But if you really want to make sure that no one can find out, what I'd do is use Google Sheets to store everything in accounts.txt, and use their api to access and modify the data.

4
AmeliaBlackwell (910)

@JustARatherRidi Okay yeah! The google docs sounds really hard, I still don't really know how to access webpages using python. I can try do the encryption, I remember doing caesar ciphers in school. I'll see what I can do. Thanks for the help.

3
JustARatherRidi (185)

@AmeliaBlackwell Anytime! doing caesar cipher should take you only take you around 5-10 minutes and it shouldn't be too hard at all if you've seen it before.

And yeah, using google's APIs is definitely harder, but it's also pretty interesting to learn how to do something like that and I'd say it's quite a useful skill to have so it might be worth your time. Or don't bother at all, you do you 😛

Cheers!

6
AmeliaBlackwell (910)

@JustARatherRidi Okay you've persuaded me, I'll try my best :)

2
JustARatherRidi (185)

@AmeliaBlackwell Im glad i did ^^

Here's a good video that'll help you get started
https://www.youtube.com/watch?v=7I2s81TsCnc

Good luck!

2
FakeName4 (7)

@JustARatherRidi
Alternatively you could hash the passwords (hashlib is god) so that you don't have to store a key anywhere.

2
PolFlotats (1)

@AmeliaBlackwell If you would like to avoid having to encrypt the passwords and all that stuff, I would suggest that you used a .env file. I do not really know how they work though. Good luck with this awesome project!

3
Mavrick (77)

Congrats on community vote! Even though you didn't get first place, you still made a pretty good game.

5
AmeliaBlackwell (910)

@Mavrick Thank you! It's pretty cool that I won the prize for the most upvotes, I never would have thought this many people would have liked it!

1
Steven_The_GuyT (197)

@AmeliaBlackwell What was the prize for most upvotes?

1
Steven_The_GuyT (197)

@AmeliaBlackwell I thought you just said you "won the prize for the most upvotes"

3
lsambrook (284)

I started a new game and with 10 baits, I didn't even catch a single fish, so I lost on day 1...

3
AmeliaBlackwell (910)

@lsambrook you cant have 10 attempts on a single day, but if you mean on a later day, then sorry, it's just bad luck. The game has some element to difficulty

3
lsambrook (284)

@AmeliaBlackwell no worries ! I made a new one and I got lucky this time !

3
TBNRpandaboy (3)

This is a really good game!

3
kroozalin1 (9)

Here's a ss from my school iPad lol, can you update stats, thanks.

4
AmeliaBlackwell (910)

@kroozalin1 done and added your highscore as well. Good luck finding the mythicals!!

3
kroozalin1 (9)

Thanks lol this is all I do in English class now and for a bit in French @AmeliaBlackwell

3
[deleted]

I have worked until day 134 and it didnt save my progress XD is there a way to get my progress back? username is RogueKing and password is 1234

4
AmeliaBlackwell (910)

@RogueKing i'm sorry about that, but it does say in bold in the post that you need to remember your stats and comment them so I can add them to the accounts file

3
kroozalin1 (9)

Can you add mine? I posted them a bit [email protected]

3
kroozalin1 (9)

Aw man... I didn't read the part where I needed to comment my stats to get entered, that's my fault tho here I'm gonna grind and I'll finish this comment when I am as good as I was... ok here:
day 112
gold - 19229
bait - 299
rod - bronze
level - 55
rarest fish caught - plaice
inventory - empty

Edit: rlly good game btw its addictive
Edit2: updated my stats, except inventory cause that's a lot of work
Edit3: updated everything

4
AmeliaBlackwell (910)

@kroozalin1 added the stats, sorry I had to wait until I was home from school to use my computer. I'm really glad you like it, sorry about the bug :( username-kroozalin1 password-pass

2
kroozalin1 (9)

Thank you! And whenever I sign out it'll save right? @AmeliaBlackwell

4
AmeliaBlackwell (910)

@kroozalin1 no it seems other users don't have privileges to write to files. it only works on my account. I'm sorry about that but you can tell me your updated stats and I'll save them for you

3
17hama4141 (6)

what is the moonstone rod by the way and how do you get it?

3
17hama4141 (6)

all the things i caught in one run(and stats)
day 301
gold - 0
bait - 8498
rod - silver
level - 91
rarest fish caught - dolphin
inventory - 17 minnow, 18 tuna, 12 catfish, 24 prawn, 21 spider crab, 6 trout, 11 seahorse, 13 pike, 13 sardine, 18 salmon, 10 crab, 10 mackerel, 31 shrimp, 16 crayfish, 3 blobfish, 13 dogfish, 10 stingray, 14 bass, 6 squid, 12 cod, 21 anchovies, 13 electric eel, 21 jellyfish, 5 rainbow trout, 1 swordfish, 9 herring, 6 turtle, 5 shark, 2 plaice, 7 sunfish, 1 dolphin

it is easy to get a lot of money it should be at least 2 gold for bait

very good game overall well done
it is awesome

3
AmeliaBlackwell (910)

@17hama4141 okay added to the accounts file. Username: 17hama4141 . password - "pass". thank you so much I'm really glad you like it!! :) I'll think about raising the price of bait but honestly I think that could just make the very early game difficult and the rest of the game annoying. Maybe at level 100 it could increase to 10 gold. as for the moonstone rod... reach level 100 to find out what it does ;)

3
Ov3R10rd (46)

Amelia! The remake V1.0 is finished! Be sure to check it out!

3
YanfuOu (2)

Dude! NICELY done! I am very impressed!

3
[deleted]

AWSOME GAME EVER!!!

4
3
ChristopherOkor (7)

i got 341 dayas im sad

4
AmeliaBlackwell (910)

@ChristopherOkor hey that's good!! seriously! I need to actually log a highscore for myself... i bet it will be much worse than yours! I'll add yours to the file under ChristopherOker, unless you want a different user?

4
AmeliaBlackwell (910)

@GavinSpens thanks very much! I'll add your stuff to the files

3
Mavrick (77)

Congrats on over 100 votes. Might I ask how the account system works? I've been trying to find a way to do something like this forever.

5
AmeliaBlackwell (910)

@Mavrick thank you very much! Of course. So at the start od each game each user has to make a username and password which creates the player object, using the username and password and the starting stats (day 1, 0 gold, 10 bait, empty inventory ect). This object is used and updated over each in game day. At the end of each day all the attributes of the player object are written to the accounts.txt file, seperated by special characters. You will need to make sure your code only overwrites the account in current use by checking the usernames. All data must be strings so I have a printing inventory function - inventory is an object with an attribute containing all the objects inside the inventory, so each object is written as its name and quantity, seperated by different special characters. (1 account per line)
When logging back in, the accounts file is read. The username and password must match a line of the accounts file. If they do a player object is created using the details within the accounts file. Objects like inventories are reconverted from their string data back into the object. Then the game continues using this player object.

I hope you understood that. It's easier than it sounds. If you have a problem please ask.

3
DanielSchumache (20)

I love the game, but please make a better security system. Maybe do some form of simple encryption? For example, in a program I made called, XDOS, I made an admin password that is an encryption of something else:
XD_str = 71118
XD_str2 = ""

Later In The Code:
def encrypt(XD_str):
global XD_str2
for x in range(XD_str):
if x < 10:
XD_str2 += "01010"
if x == 10:
XD_str2 += "1010"
if 10 < x < 64:
XD_str2 += "1001010"
return XD_str2

Later In The Code:
def code():
global admin
code = input(colored("Input admin code > ",colour))
if code == encrypt(XD_str):
print(colored("You have been granted admin access",colour))
admin = True
else:
print(colored("Incorrect code",colour))
admin = False
time.sleep(0.25)