WARNING, GAME WILL LIKELY LAG ON LOWER END DEVICES. WASD controls. (The Q button might be a bit buggy and require a few taps, sorry.) Use Q to equip your hoe, and use space to till the ground once it is equipped. After you till the ground, use Q again to unequip your hoe, then press space on the tilled ground to plant tomatoes. Once the tomatoes are planted, they'll be ripe and red after 50 seconds. Once they are, use space to harvest them.
This is my most advanced project yet. I give full permission for the use of this engine as long as I receive credit. This took a lot of work, and all the pixel art was created by me. I would one day like to make a Stardew Valley game on scratch, but I probably won't be able to. I give anyone with the same ambition permission to use the engine though.