double-or-nothing
- 10 Devlogs
- 19 Total hours
It's a web game were you can double your score or lose EVERYTHING and be the last in the leaderboard. Will you have the highest score?
It's a web game were you can double your score or lose EVERYTHING and be the last in the leaderboard. Will you have the highest score?
Bugs, bugs, more bugs! I had bugs but in fact I think those but existed because I accidentally deleted lines of code that were needed
I deployed it in Vercel and Supabase for the database. It wasn’t really hard to do but it was boring and very long to do. I will make small changes and I ship it. :)
Well, well, well. I thing the project is near to be over. I need to deploy it. I think I’m going to use nest because it’s hard to find a platform that accept databases. I want to move the leaderboard to the left of the score and little details like that but nothing very big
I did some CSS and I think is great. I also fixed some bugs and improved a little the code but nothing very important
I added a coin that flips with a CSS animation. I have to say that I love and hate javascript at the same level. I had a LOT of help of Claude and Deepseek for the coin CSS but like always I took my time to understand it and customize it. There’re a few bugs. Apart from the aesthetics, I could say it’s ready but I will change lots of things like always for no reason. I NEED A CLEAN CODE!
I did the leaderboard in real time… I hate javascript. Thanks Claude…
I made the connection between the database and the login. So now you log with your username and is stored in the cookies with the flask session module so if you enter again you have your username automatically set. I need to refactor the hole code because it’s a mess. I have to admit that I used a lot of Claude for this part but I made sure I knew what I was doing. I know I am not doing it the best way but I’ll try to improve the code slowly
I made the database connection! I used sqlite3 and it was easier than what I thought it would be. I also removed the stay button because it makes no sense: if you want to stay you only need to not to press the double button :v. Now I need to do the login before doing all the css, animations and stuff.
The main mechanic is done except for the database. I have to figure out how to do it. I thought the game could be like a Russian roulette because is the same idea (the gun shooting the money or something like that?) but I don’t know how to do all this but I will take my time to learn for this project and do a good CSS.
This is the firs devlog of a larger project. This project will be a web made with Flask (because I don’t know js). The idea is you have a score and you have 50% of chances of double it and 50% of chances you come back to 0 or you can stay with your points. I also want to implement a leaderboard because the funny part is to be the one with most points. I think people like this sort of projects :)