Devlogs
Tried key input and joy port
Posted October 10, 2022 by ElmonEPG
#LOG #MEMO
This time, I tried some input method. Which is arrow key and space key and joy port 1 to control my spaceship and shot some missiles. The graphics of spaceship and missile are drawn by boxf command and comverted to sprite.
My learning about key input and moving sprites in this experiment are,
- Moving +5 pixels per frame is enough fast
- Firing every frame is too fast for rapid fire (how can I say it? A.K.A rensha in Japanese). Around 5 frames interval probably good.
- 32x32 sprite size probably too large for my spaceship when the display is 320x200 (or x256). But it may possible to express funny shape.
Accomplishment:
Tests key input (RawStatus()) and Joy port(joyx/joyy/joyb/joyr)
ToDo:
- What's else? Oh, yes, I should try collision detection. I thought and planed to check rectangle vs rectangle detection to do simple way. But if my memory is correct, I saw Blitz BASIC provided collision test functionality on the manual.
- Test about BGM functionalities too.
- Finding tools for making characters and background graphics or converter.
- Thinking about structure of shooter game. For example, when I play shooter game like gradius, every time, enemies show up at almost same place same timing.