Based on the Sānguó Yǎnyì Chinese epic, which itself was based on the official records of the time period, Sānguó Zhì (from ~169 till ~280).
Alternate names: 三国演义, 三國演義, Romance of the Three Kingdoms, 三國志, 三国志, Sānguó Zhì, Three Kingdoms period, Sangokushi
The first video game about Sānguó Yǎnyì was released on December 1985.
Barely any works of fiction are based on the actual historical records instead of the far more popular Romance of the Three Kingdoms fictional take on the events (effectively the only one that is based on the actual historical records).
Sangokushi is the name of the Chinese epic in Japan.