Matress banner

Matress

16 devlogs
22h 8m 29s

This game combines Tetris and 2048 in an intresting way. When you place down tiles, you can move them around the square and combine them together, to try to reduce the tiles you have and maximize your score. If u dont wanna compile it, then just v…

This game combines Tetris and 2048 in an intresting way. When you place down tiles, you can move them around the square and combine them together, to try to reduce the tiles you have and maximize your score. If u dont wanna compile it, then just view the demo as that gives a good idea of what the game entails.

This project uses AI

I used a tad bit of claude for debugging. and sum chatgpt for cmake issues.

Demo Repository

Loading README...

desh.kian

Project is allmost read for ship. I added in a lil preview for the next piece as well as plaing around with the ui, and after a bit of polishing it should be good. Prolly also gonna add a restart menu which wont take that long

Attachment
0
desh.kian

I made a cool color system, and now when u combine tiles the colors get mixed. Looks kinda, wierd, but ima try to fix it and polish up the gayme.

Attachment
0
desh.kian

Wassup my favorite feet finders, I made a really complex script to make me be able to use my own phont. I kinda forogor that ttfs exist so i did it the hard way!:( Now my games font looks better tho.

Attachment
0
desh.kian

I fixed a wierd bug with the combinations, mayde a font and started loading it.

0
desh.kian

HEY HEY HEY WWSP GAMER GIRLS I MADE A THINGY AND NOW THE 2048 works cause yes. Now the slidey slidey and addey addey wroks. Video will explian it better.

0
desh.kian

So i added in gravity. My idea behind it was i could just have the gravity for one direction and just rotate it and rotate it back so its basically normal. The gravity is wierd and flips all the rows, so I still need to fix that

2

Comments

sakshisuman25
sakshisuman25 10 days ago

GOOD

desh.kian
desh.kian 9 days ago

Thanks bro

desh.kian

I scrapped the numbers and operators idea and decided to make a 2048 and tetris hybrid. Now the grid is significantly tinier, and every tile has its own power of 2. I have not implemented the 2048 swiping, put I will probably do that next.

Attachment
0
desh.kian

I made some progress on scanning the rows, now it breaks them up into chucks, but doesnt really analizey them. I dont really hzve much to show. I think im gonna take a break from this project and finish my bossfight.

Attachment
0
desh.kian

I SPENT WAY TO LONG TRYING TO GET MY LIST TO NOT PRINT WRONG CHARECTERS WHEN I REALIZED I WAS ACESSING MY LIST IN THE WRONG WAY. I also worked on the expression stuff and got nowhere, at this point I should just reset it. Im just gonna show the funny charecters ive been seeing cause i dont like them and I suffered. :( Overall not the most positive devlog, but hopefully Ill be happier

Attachment
0
desh.kian

I made it so that numbers and operators are drawn onto the tiles and grid, and spednt way to long making squares rotate even though there hitboxes dont change. I also put a random number generator on the side for a goal, but it doesnt have any use.

Attachment
0
desh.kian

I finished the rotation stuff, and fixed some edge cases. I got started on the numbers and operations stuff, but didnt get a lot done.

Attachment
0
desh.kian

I dont know how, but It’s actually working, You can rotate, move around and pieces get drawn on the map. this took like half the time of the original and works 10 times better. Me Happy. I still needa code the rotation in the other direction and for a few other pieces. I might also do SRS, but I don’tknow.

Attachment
0
desh.kian

I did a bunch at coding at a time I should not have been doing that. I woke up this morning and started coding, but my code may have been in mandarin cause I could not understand it. The logical thing to do would go through my code and fix it, but I’m not really logical. I restarted the project now with a tad bit more C knowledge. I created a shape that just stays in place, but it has the fundemental logic the work.

Attachment
0
desh.kian

I added in collision and made walls work! Now it’s actually kinda sort of playable. I still need to make it draw when it ends. Dont ask about all the zeros, I had to test something.

Attachment
0
desh.kian

I spent a while learning how structs work, and tried a few different aproaches to make pieces randomized, and had to change the pieces to rotate better. Now the pieces randomly get chosen, and fall down.

Attachment
0
desh.kian

I spent a bit coding in godot, but then I realized that would be far to easy. I wanted to do something low level that isnt a game engine. I started working on a project in C using the Raylib library. This is very annoying, I have to learn a lot of things my python and gdscript brain can’t handle. This is also kinda fun tho, I made a tetromino fall, and I’m pround of it for now. Also, I had a vision. What if isntead of combining math and tetris. I combine 2048 and tetris. I don’t know which one I’ll do, but I’ll figure it out. Right now I’m just concerend about the basics.

Attachment
0