Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 03:27 04 Dec 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : "Renewed Defense of the Green Hills" on Armmite F4

Author Message
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3158
Posted: 01:33am 23 May 2021
Copy link to clipboard 
Print this post

I would post on an original thread, but I couldn't find one--just posts in the Programming Challenge thread.

Vegipete's game did not too extensively use features not compatible with the F4 (pages, etc.), but it turns out the one thing he did use was the speed of the CMM2. On the F4, it's a more--how might I say it--"stately" pace (perhaps suited to now three-quarter's-century-old reflexes of this would-be Missle Commander).

Instead of a mouse, I used the touch feature of the F4. The LCD is the 800x480 IPS display, but since vegipete used mode 2,12, 640x400, I just used that much of the screen, and used the extra 80 pixels at the bottom for scorekeeping. Touch is also used to select which of the three missile bases is firing.

The program is intended to run on both the CMM2 and the F4, and I've tested it on both. I couldn't get the "High Score" to display properly on the CMM2, and I don't know why (but don't want to spend more time).

I reduced the number of missiles--incoming and outgoing--from 48 to 33 for the F4. This gave a bit of a speed boost. Other speedups might be possible, but I did not note any throttling delays in the main loop.

Other than adequate speed, the biggest thing the F4 port is lacking is the sound effects which Pete used so effectively. It may be possible to replicate them on the F4, but I don't have any idea how to go about that.

I could not make a movie--the green in the green hills washed out completely, as did the red in the explosions, so here are screen shots after terminating with Ctrl-C (I could have set a touch area to do "SAVE IMAGE nnn.BMP".)







This was a fun exercise even if the result is less challenging than I had hoped. I keep learning from vegipete's skills.

gh2.zip

Armmite F4 on Fruit of the shed

~
Edited 2021-05-23 12:27 by lizby
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6835
Posted: 02:43pm 23 May 2021
Copy link to clipboard 
Print this post

Nice!
I can just about manage "stately" speeds nowadays. :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024