I need help on how to edit a sprite's code.
Tic-80 doesn't assign scripts directly to sprites. Instead you'll have to make a code "object" like this:
player = {x=10, y=5,sprite=255}
This is just a table to hold the players position and the correct sprite. (This assumes the player sprite is drawn in the 255th slot of the sprite sheet)
Then you can call the spr() function like this.
spr(player.sprite, player.x, player.y)
This draws the 255th sprite at the player's position.
There's a bit more abstraction in tic-80 with how graphics and code work together. It helps to think of all the code as being the game, then drawing the graphics to show the player what's going on, as opposed to applying code to each object.
Check out the tutorials on the wiki for more help