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 2023] Shootagem by joe

Reply to topic

Rate this entry!

1 (Terrible) 0% 0%
2 0% 0%
3 0% 0%
4 5% 5%
5 5% 5%
6 0% 0%
7 25% 25%
8 45% 45%
9 (Excellent) 20% 20%
This poll has expired.
Author Message
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14691
  • Location: London
Reply with quote
[Coding Competition 2023] Shootagem by joe
Post Posted: Mon Mar 27, 2023 4:15 pm
https://www.smspower.org/Homebrew/Shootagem-SMS



Quote
Shootagem is a lightgun based puzzle game for the Sega Master System.

Shooting a gem will drop the gems above it down.
By shooting out gems, match 3 or more gems in a row or column to score!
Clearing multiple sets of gems in quick succession will add to your combo which will increase the points scored.

The timer is ticking down and it's game over when it hits zero.
Clearing rows and columns will add time to the timer and you'll get more time added for longer rows of gems.
After clearing enough lines, more and more worthless rocks will start to enter the play area which you'll have to clear them out by shooting them.

The game features dual PSG/FM music if you have an FM Sound Unit.

Controls:
The game expects the light phaser to be in controller port 1
Aim at gems and shoot with the fire button.
You can reload by shooting the status bar, or by shooting offscreen.
While in-game you can open and close the calibration screen by pressing the Pause button.

Software used (if you're interested):
Written in assembly and compiled with WLA DX
Tested and debugged using the superb Emulicious
(Also tested on Meka and Genesis Plus GX in RetroArch, as well as on SMS2 and Mega Drive using Everdrives)
Graphics drawn in Aseprite and converted with BMP2Tile
Gameplay tilemap put together in Tilemap Studio
Music and sound effects written in Furnace

This is my first SMS game and it was definitely a learning experience, I much appreciated the SMS Power documentation!
Thanks to Richard for doing some testing!


  View user's profile Send private message Visit poster's website
  • Joined: 07 Mar 2021
  • Posts: 55
Reply with quote
Post Posted: Tue Mar 28, 2023 9:10 am
Colums with Guns ! :-)

Wow! It's a very good concept Joe to use the light phaser for a puzzle game.

The mechanics of the game work very well. It may still be missing some fall effects that would make gem destruction more visible, but I see that everything is rendered in tiles.

Adding some special effects in sprites (score, combo, fall) might add an arcade feel to this game which I enjoyed !
  View user's profile Send private message
  • Joined: 25 Mar 2023
  • Posts: 6
Reply with quote
Post Posted: Tue Mar 28, 2023 8:08 pm
Thank you for playing it and for your nice comments!

I had sprite particles on my To Do list for ages but didn't get around to it sadly. I agree seeing bits of gem flying and combo popups would make it better!

Making the gems fall is a bit tricky because drawing more than one or two columns' worth of tiles was taking too much time. In the worst case scenario there could be a 5 gem match on the bottom row and that's 5 columns of 5 or 6 gems to redraw, which is way too much per frame and way too many sprites to use to move them all at once for a falling animation.

At the minute it uses a very simple option where it redraws one column every frame from left to right (unless it's a white frame, when the gun is shooting) meaning a column updates every 6 frames (10fps)

Thanks to this comment I've been playing around and if I make a copy of my column drawing code which has delays so it can access vram safely outside of vblank, I can draw another column, so they update every 3 frames (20fps)... Wish I'd thought of that sooner!

It might be that keeping a list of gems or rows/columns which need redrawing would end up being better - it's just the headache of managing that!
  View user's profile Send private message
  • Joined: 25 Feb 2006
  • Posts: 864
  • Location: Belo Horizonte, MG, Brazil
Reply with quote
Post Posted: Tue Mar 28, 2023 8:55 pm
Very creative use of the Light Phaser. Plus, there aren't many homebrews that make use of the acessory.
  View user's profile Send private message Visit poster's website
  • Joined: 28 Mar 2022
  • Posts: 19
  • Location: UK
Reply with quote
Post Posted: Thu Mar 30, 2023 12:38 pm
Well this is going to be a cow to film on actual hardware :D
  View user's profile Send private message Visit poster's website
  • Joined: 15 Aug 2019
  • Posts: 258
  • Location: Lancashire UK
Reply with quote
Post Posted: Thu Mar 30, 2023 4:17 pm
haha, better get out that CRT Dudley mate
  View user's profile Send private message Visit poster's website
  • Joined: 28 Mar 2022
  • Posts: 19
  • Location: UK
Reply with quote
Post Posted: Fri Mar 31, 2023 12:00 pm
Oh I did.

And can confirm it works perfectly on an SMS1 as well as the author's SMS2 :)
  View user's profile Send private message Visit poster's website
  • Joined: 06 Mar 2022
  • Posts: 599
  • Location: London, UK
Reply with quote
Post Posted: Fri Mar 31, 2023 12:16 pm
Just brilliant.

Surprisingly difficult and making me dearly wish I had some original hardware to play it with. Maybe building a homebrew light phaser will be my next project...
  View user's profile Send private message Visit poster's website
  • Joined: 25 Jul 2007
  • Posts: 716
  • Location: Melbourne, Australia
Reply with quote
Post Posted: Fri Mar 31, 2023 1:37 pm
What a novel concept, I like this game. The graphics are pretty and the music suits the gameplay well, what a banger!
  View user's profile Send private message
  • Joined: 28 Mar 2022
  • Posts: 19
  • Location: UK
Reply with quote
Post Posted: Mon Apr 03, 2023 11:44 am
Thought you might appreciate the lengths I went to in order to film this properly :D

  View user's profile Send private message Visit poster's website
  • Joined: 25 Mar 2023
  • Posts: 6
Reply with quote
Post Posted: Mon Apr 03, 2023 8:23 pm
Thanks for all the nice comments guys, it's most appreciated!

Quote
Thought you might appreciate the lengths I went to in order to film this properly :D

Haha, quite a lot of effort! Looks like a much nicer CRT than the one I did my testing on (it's also a nightmare to take photos of with how much brighter it is than everything else)

  View user's profile Send private message
  • Joined: 12 Oct 2015
  • Posts: 183
  • Location: Ireland
Reply with quote
Source code
Post Posted: Mon Apr 17, 2023 8:25 pm
Finally got a chance to setup the old CRT and Light Phaser and give this a go - the Light Phaser detection is really good - do you have any links for the source code to share? PS: If you were going to add to this project then I think an option / hack etc. for longer initial timer - this game is fun enough just blasting gems without trying to extend the timer yourself =P
  View user's profile Send private message Visit poster's website
  • Joined: 29 Mar 2012
  • Posts: 879
  • Location: Spain
Reply with quote
Post Posted: Tue Apr 18, 2023 8:13 am
If you're interested, Rapnet has a very good library that allows using the light phaser:
https://github.com/raphnet/inlib
  View user's profile Send private message
  • Joined: 12 Aug 2021
  • Posts: 73
Reply with quote
Post Posted: Tue Apr 18, 2023 11:02 pm
I love match-3 games. And that one was really fun to play... on an emulator. I really regret not being able to play it with an actual light gun and a CRT on real hardware, argh!!

I like that the music comes in PSG and FM flavours.

Shooting gems actually feels cathartic after swapping them for so long haha, and the fact that you can start a new game straight after finishing one is a recipe for addiction :D

The ROM will stay on my Everdrive for the moment I get a CRT TV and a light gun!

PS: Actually nevermind all the good feedback, I just noticed the gem colours and shapes on the score screen don't match the gem colours in game. LITERALLY UNPLAYABLE!*

* not literally
  View user's profile Send private message
  • Joined: 12 Oct 2015
  • Posts: 183
  • Location: Ireland
Reply with quote
Post Posted: Wed Apr 19, 2023 5:22 pm
kusfo wrote
If you're interested, Rapnet has a very good library that allows using the light phaser:
https://github.com/raphnet/inlib

OK cool - thanks kusfo for sharing that link
  View user's profile Send private message Visit poster's website
  • Joined: 30 May 2023
  • Posts: 6
Reply with quote
Post Posted: Thu Jun 01, 2023 10:51 pm
I know I'm late to the party, but just wanted to say how much I love this game. I've been playing it on a Raspberry Pi with the Sinden Lightgun. It's so rare to see a lightgun homebrew game, and even rarer to find one of such great quality.
  View user's profile Send private message Visit poster's website
  • Joined: 30 May 2023
  • Posts: 6
Reply with quote
Post Posted: Sat Jun 17, 2023 3:32 pm
Just wanted to add a bit more about my experience trying to run this game in different environments.
As previously stated it works perfectly on the Raspberry Pi in the lr-genesis-plus-gx emulator.
I tried running it on my MegaDrive2 using a flash cart. I wasn't sure if it was the cheap chinese MD flash cart I was using but it didn't run well at all, just had garbled graphics making it unplayable, but the audio was ok.
Later I got my hands on a Master System flash cart and tried it in the same MegaDrive2 console using a Master System converter, and I got the same result. just garbled graphics.
But I then tried the same flash cart in my Master System 1 and it worked perfectly (ruling out the MS flash cart as an issue).
So, one more experiment, I dug out my MegaDrive 1 and tried the game with the first MD flash cart in that, and it worked fine, also ruling out the MD flash cart as an issue.
So... the net result : Shootagem runs perfectly fine on my Model 1 MegaDrive and my Model 1 MasterSystem using the cheapest flash carts around, but it doesn't run on my Model 2 MegaDrive. I think it's a VA04 but I'm not certain, but something about that MD2 isn't liking the game graphcs.
  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!