Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - [Coding Competition 2022] Food Fighter by haroldoop

Reply to topic

Rate this entry!

1 (Terrible) 0% 0%
2 0% 0%
3 5% 5%
4 17% 17%
5 23% 23%
6 23% 23%
7 23% 23%
8 5% 5%
9 0% 0%
10 (Excellent) 0% 0%
This poll has expired.
Author Message
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14687
  • Location: London
Reply with quote
[Coding Competition 2022] Food Fighter by haroldoop
Post Posted: Mon Mar 21, 2022 7:01 am
https://www.smspower.org/Homebrew/FoodFighter-SMS

Quote
A food-themed SHMUP.


  View user's profile Send private message Visit poster's website
  • Joined: 23 Jan 2010
  • Posts: 414
Reply with quote
Post Posted: Wed Mar 30, 2022 2:51 pm
@haroldoop, this game is inspired in Atari´s 2600 Demon Attack?
  View user's profile Send private message
  • Joined: 19 Aug 2006
  • Posts: 71
  • Location: Brazil
Reply with quote
Post Posted: Wed Mar 30, 2022 3:18 pm
segarule wrote
@haroldoop, this game is inspired in Atari´s 2600 Demon Attack?


It seems closer to Megamania.

By the way, I think this is the kind of game where you excel at, haroldoop. Thank you for your arcade games! Keep them coming!
  View user's profile Send private message
  • Joined: 25 Feb 2006
  • Posts: 863
  • Location: Belo Horizonte, MG, Brazil
Reply with quote
Post Posted: Wed Mar 30, 2022 3:23 pm
Many thanks! ;)

And, yes, it's heavily inspired by Megamania.
  View user's profile Send private message Visit poster's website
  • Joined: 12 Oct 2015
  • Posts: 183
  • Location: Ireland
Reply with quote
Post Posted: Wed Mar 30, 2022 5:57 pm
Really like the title of this one - keep glancing at it thinking this one is called "Foo Fighters" after the rock band. And source code included - awesome!
  View user's profile Send private message Visit poster's website
  • Joined: 23 Jan 2010
  • Posts: 414
Reply with quote
Post Posted: Wed Mar 30, 2022 6:13 pm
mateusbond wrote
segarule wrote
@haroldoop, this game is inspired in Atari´s 2600 Demon Attack?


It seems closer to Megamania.

By the way, I think this is the kind of game where you excel at, haroldoop. Thank you for your arcade games! Keep them coming!

This. Megamania. I mess the names. I played it in back days.
  View user's profile Send private message
  • Joined: 25 Feb 2006
  • Posts: 863
  • Location: Belo Horizonte, MG, Brazil
Reply with quote
Post Posted: Wed Mar 30, 2022 8:50 pm
By the way, here's the Github repository: https://github.com/haroldo-ok/food-fighter
  View user's profile Send private message Visit poster's website
  • Joined: 12 Aug 2021
  • Posts: 73
Reply with quote
Post Posted: Wed Mar 30, 2022 11:11 pm
Oh, this is a much more simple game than Dragon Blaster, I can say that.

I like the attack patterns here.

However I feel like the hitboxes are much wider than the actual graphic, but only on their left side.
Maybe there is an error in the collision calculation?

This kind of ruins the game for me when I get to stage 5 where I have to put my "ship/jam pot" under enemy fire, and my only allowed projectile will often go right through the enemy, whereas the enemy's projectiles can just smash me to pieces...

Not really a fan of this one, I'm afraid :/ but I bet there's something to explore in a sprite-only atari-style shooter.
  View user's profile Send private message
  • Joined: 01 Feb 2014
  • Posts: 849
Reply with quote
Post Posted: Thu Mar 31, 2022 10:31 am
Nice game that really captures the feel of the Atari VCS 2600 classics. I have to agree, though, that something’s off with the hit detection. The player's hitbox is clearly left of the actual sprite.
  View user's profile Send private message
  • Joined: 25 Feb 2006
  • Posts: 863
  • Location: Belo Horizonte, MG, Brazil
Reply with quote
Post Posted: Thu Mar 31, 2022 3:11 pm
You're right; there's something wrong with the collision code; I may have mistyped or miscalculated some constant.
  View user's profile Send private message Visit poster's website
  • Joined: 23 Mar 2013
  • Posts: 611
  • Location: Copenhagen, Denmark
Reply with quote
Post Posted: Sat Apr 02, 2022 8:23 am
Once you get into the rythmn of the different enemy movements, it becomes strangely addicting. It really feels like a vertical shooter from the pre-SMS epoch. With Dragonblaster and Food Fighter, it seems you are exploring ways to implement enemy movement in patterns. Are you ramping up to create the next Powerstrike? :) I agree with Kagesans remark about the player's hitbox - something feels off (to the left).

When I play on my laptop with Emulicious, the game works as expected. When I play on my Mega Sg w. Everdrive there is strange corruption on the screen (see attached foto)?
IMG_0166.JPEG (446.5 KB)
IMG_0166.JPEG

  View user's profile Send private message Visit poster's website
  • Joined: 25 Feb 2006
  • Posts: 863
  • Location: Belo Horizonte, MG, Brazil
Reply with quote
Post Posted: Sat Apr 02, 2022 9:25 am
hang-on wrote
Once you get into the rythmn of the different enemy movements, it becomes strangely addicting. It really feels like a vertical shooter from the pre-SMS epoch. With Dragonblaster and Food Fighter, it seems you are exploring ways to implement enemy movement in patterns. Are you ramping up to create the next Powerstrike? :) I agree with Kagesans remark about the player's hitbox - something feels off (to the left).


Long term, I intend to at least try to create some library/toolset to facilitate creation of SHMUPs; whether it will ever reach this point and whether it will be easy to use or not, we will have to see... it's more likely that I will at least make some partial progress in that direction, but not necessarily a completely functional/useable thing. :P

hang-on wrote
When I play on my laptop with Emulicious, the game works as expected. When I play on my Mega Sg w. Everdrive there is strange corruption on the screen (see attached foto)?


That's strange, indeed. One possibility is that, since at the current stage of development, I haven't used the background map yet, maybe it is picking up some garbage left from the BIOS boot process? If that is really the case, it should be, at least theorethically, easy to fix.
  View user's profile Send private message Visit poster's website
  • Joined: 05 Sep 2013
  • Posts: 3762
  • Location: Stockholm, Sweden
Reply with quote
Post Posted: Mon Apr 04, 2022 12:44 pm
haroldoop wrote
One possibility is that, since at the current stage of development, I haven't used the background map yet, maybe it is picking up some garbage left from the BIOS boot process?


I am positive this is the problem. Even if you don't use the BG map you should ensure that its contents are what you desire - that is all zeroes for instance.
  View user's profile Send private message Visit poster's website
  • Joined: 12 Oct 2015
  • Posts: 183
  • Location: Ireland
Reply with quote
Clear VRAM
Post Posted: Mon Apr 04, 2022 3:01 pm
haroldoop wrote
One possibility is that, since at the current stage of development, I haven't used the background map yet, maybe it is picking up some garbage left from the BIOS boot process?

I think - if this is relevant - I had similar issue of graphics artefacts remaining on screen after game load from the Everdrive menu so I execute Maxim's Clear VRAM assembly routine as inline assembler and seems to do the trick nicely...
  View user's profile Send private message Visit poster's website
  • Joined: 05 Sep 2013
  • Posts: 3762
  • Location: Stockholm, Sweden
Reply with quote
Post Posted: Mon Apr 04, 2022 3:11 pm
usually you don't need to clear VRAM as you'll be loading tiles and tilemaps there so it's a waste of time - but of course until you don't load anything in the BG you have to set the tilemap entries to your 'empty' tile, which for instance might be tile 0 (or the space char if you loaded a charset from ASCII 32, which is an empty tile anyway)

you might just run:
SMS_VRAMmemsetW(XYtoADDR(0,0), 0, 32*28*2);

to set all the 32*28 PNT entries to zero
  View user's profile Send private message Visit poster's website
  • Joined: 25 Feb 2006
  • Posts: 863
  • Location: Belo Horizonte, MG, Brazil
Reply with quote
Post Posted: Mon Apr 04, 2022 8:26 pm
Thanks, everyone; this version 0.3 clears the background map on start up, ensuring it shouldn't display garbage on real hardware.

  View user's profile Send private message Visit poster's website
  • Joined: 25 Feb 2006
  • Posts: 863
  • Location: Belo Horizonte, MG, Brazil
Reply with quote
Post Posted: Mon Apr 04, 2022 9:08 pm
Okay, version 0.4 is now available! It corrects most of the collision bugs.
food_fighter-0.4.sms.zip (9.03 KB)
The ROM for version 0.4

  View user's profile Send private message Visit poster's website
Reply to topic



Back to the top of this page

Back to SMS Power!