~rabbits/yufo

Virtual pet, written in Tal

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~rabbits/yufo
read/write
git@git.sr.ht:~rabbits/yufo

You can also use your local clone with git send-email.

#Ufo

A virtual pet, written in Uxntal.

#Build

You must have the Uxn assembler and emulator.

uxnasm src/main.tal bin/ufo.rom && uxnemu bin/ufo.rom

If do not wish to assemble it yourself, you can download yufo.rom.

#Controls

  • The B button moves the icon selection on the screen.
  • The A button confirms the use of a selected icon, or switches to the clock screen if no icon is selected.
  • The Select button will clear any icon selection, and close whatever menu the screen is currently showing.
  • The Start button will clear the current Tamagotchi, bringing it back to the Egg stage.

#Options

#0 Feed

The user uses this icon to feed their Tamagotchi either a meal or snack. Meals fill the Hungry hearts, and each meal adds 1 to the Tamagotchi's weight. Snacks raise one Happy heart and add 2 to the Tamagotchi's weight. Feeding a Tamagotchi too many snacks within a short period of time will make it sick, and continuously doing so will kill it. Overfeeding a Tamagotchi snacks is the only way it can die during the baby stage

#1 Light

When the Tamagotchi goes to sleep, the user selects this icon to turn the lights on or off. Not turning the lights off before the Attention icon vanishes will result in a care mistake. A Tamagotchi will only grow and age while it is awake, and a year will be added to its age on the check meter every time it wakes up. Every Tamagotchi has its own waking and sleeping hours. Turning off the lights while the Tamagotchi is awake will not impact its health, but will make it impossible for the user to see if the Tamagotchi has made a poo or gotten sick.

#2 Game

This icon allows the user to play a game with their Tamagotchi to raise its happiness and lower its weight. Playing a complete game will always reduce the Tamagotchi's weight by 1. Each game lasts five rounds, and if the user wins a minimum of three rounds, the game is won and the Tamagotchi fills one Happy heart. Once five rounds are played, it will show a results screen showing how well the game was played. If the user presses A or B after the results screen, a new game will start. If the Tamagotchi poops, gets sick, calls for attention, or falls asleep while in the process of playing the game, the game will not resume after the results screen.

#3 Medecine

When the Tamagotchi becomes ill, a skull will appear on the top right corner of the Tamagotchi, and they will refuse to eat or play. Using the Medicine icon will heal them. It may take one or two doses to cure the sickness. The Tamagotchi will get ill prior to evolution, before death, with old age, if poo has been left on the screen for too long, or if fed too many snacks. Every time the Tamagotchi gets sick from old age, its stats will begin to decrease at a faster pace.

#4 Bathroom

Throughout its life, the Tamagotchi will leave poo on the screen. The user must select this icon to clear it away. Leaving poo on the screen for too long may result in illness, while multiple poop on the screen drastically increase the likelihood of illness. The baby will poo twice (15 and 40-45 minutes after hatching) before it evolves. Once at the child stage, it will leave poo after five minutes, and then one poo every three hours.

#5 Meter

The Tamagotchi features a Health meter screen that shows the Tamagotchi's overall stats. The first screen displays age (one year being the equivalent of one day) and weight (measured in grams on the Japanese versions, ounces on international P1s, and pounds on international P2s), the second displays Discipline, the third shows Hungry, and the fourth shows Happy. There are a total of four hearts each for hunger and happiness, with white hearts representing an empty stat. The rate at which hearts decrease depends on the character, and also how old they are in regards to adults. Using the Health meter regularly allows the user to know their Tamagotchi's needs, allowing them to make decisions that influence the Tamagotchi's overall care, which in turn impact the Tamagotchi's evolutions throughout its life cycle.

#6 Discipline

The Discipline icon is used to scold the Tamagotchi for misbehavior. Occasionally, the Tamagotchi will call for attention when its Hungry and Happy meters are not completely empty, and refuse to eat or play games. When this occurs, the user must use the Discipline icon. When used correctly, a special sound effect will play and the attention icon will turn off. Using the icon when the Tamagotchi is not misbehaving will cause it to lose a Happy heart.

The amount of discipline the Tamagotchi receives directly affects what they grow up into. Each successful punishment adds 25% to the discipline meter, but the discipline level may be reduced by evolution. On the original release, during each growth stage, the Tamagotchi will only make enough calls to completely fill the meter from however full it presently is (for example, a teen that began with 50% discipline will call twice). On the 2017 rereleases, a Tamagotchi may make more calls than necessary, given the user the opportunity to fill the meter even if some calls were missed.

#7 Attention

This icon cannot be selected and lights up on its own when the Tamagotchi needs something - Hungry or Happy being completely empty, falling asleep and requiring the lights to be turned off, or making a false call and requiring discipline. If the user does not tend to their needs within 15 minutes, the icon will turn off and a care mistake will occur (unless the Tamagotchi was making a discipline call). If a Tamagotchi dies from neglect while the attention icon is on, it will remain lit on the death screen until a new egg appears. The Tamagotchi will not call for attention when it poops, nor if it gets ill.

#Death

A Tamagotchi will eventually die due to either neglect or old age, with the oldest possible Tamagotchi living to 25 years, or about 24 real-world days. The death screen varies by region: the Japanese models show a ghost floating around a gravestone, the English P1 shows an angel flying among stars, and the English P2 shows a UFO in space. If the user maintained good care during the adult stage, it will show an additional animation of the Tamagotchi laying an egg just before it passes. These eggs don't hatch into anything and disappear after the death sequence ends. Child and teen characters will never lay eggs upon death. If a baby dies, it skips the death sequence entirely, with the screen fading away similar to the evolution screen before showing the death screen.

Pressing the C button will scroll the screen to the right to show the Tamagotchi's final age, and pushing it again will go back to the normal death screen. The B button cannot be pushed to view the clock, and pressing the A and C buttons simultaneously will bring up a new egg to hatch, starting the cycle over.