Friday, November 11, 2022
HomeGame Developmentsecond - How do I transfer the craft, a manually drawn object...

second – How do I transfer the craft, a manually drawn object from arcade library?


I am attempting to maneuver a spacecraft throughout the display. The craft is drawn with this operate

 def loadKraft(x, y):
    arcade.draw_line(x, y + 15, x - 7, y - 7,   arcade.shade.RED, 1)
    arcade.draw_line(x, y + 15, x + 7, y - 7, arcade.shade.RED, 1)
    arcade.draw_line(x - 7, y - 7, x, y - 3, arcade.shade.RED, 1)
    arcade.draw_line(x + 7, y - 7, x, y - 3, arcade.shade.RED, 1)

I would like to have the ability to rotate it utilizing the arrow keys and use the up arrow key to speed up it ‘forwards’. I’ve tried discovering a tutorial or one thing, however I have been unable to search out something that addresses the sort of motion with the arcade library, or permits for manually drawing a sprite with the draw features.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments