STM32-based game implementation system and method
The invention provides an STM-32-based game implementation method, and the method comprises the steps: a deflection angle is obtained through reading the data of a gyroscope, and then is transmitted to a single-chip microcomputer, and the height control of a bird is performed; for TFT display, as fo...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention provides an STM-32-based game implementation method, and the method comprises the steps: a deflection angle is obtained through reading the data of a gyroscope, and then is transmitted to a single-chip microcomputer, and the height control of a bird is performed; for TFT display, as for pixels needing to be moved and repeatedly refreshed, when a small train moves ceaselessly, actually, conversion of different movement positions is achieved, and 18 * 26 cache is established for the train; two caches are established, one cache is the cache of the guideboard, the needed guideboard is completely drawn in the cache with the calculated size, then the content in the cache is directly brushed into the corresponding position of a screen, the guideboard can be displayed, and the size of the cache is 259 * 39; the other cache is written into the background with the widths of three pixels on the right side of the guideboard, the guideboard moves leftwards by 13 pixels each time, theimage is directly brushed |
---|