Enterprise Forever

:UK => Enterprise DevCompo => Enterprise DevCompo #1 => Topic started by: ssr86 on 2016.May.16. 22:05:19

Title: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: ssr86 on 2016.May.16. 22:05:19
Team Hat Trick aka Six Men One Puck a clone/rip-off of Hat Trick by Bally Sente.
Graphics are based on the ms-dos version but altered. Come to think of it I don't know if this counts as a conversion or an original program...

It was made with 64kb 50fps in mind but I've failed... You won't be able to play with all the players on 64kb machine in 50fps... The game slow downs constantly. Maybe there's a chance for optimization but I don't know if memory will allow it... I think ep128 could get a special optimized version which maybe even could do Eight Men One Puck:) but that maybe some other time...

However as soon as you run it you'll see that the game is still not finished. There's no sound and I've encountered some bugs which I'll try to fix. Also the title screen is very minimal... No single player mode...

EDIT: Added a quick manual text file to the attachements.


Bugs:
- in shootout, when starting from gate the left player can turn down and he doesn't bounce from the rink bounds thus allowing him to shoot the puck outside the rink... However the shootout turns are short so that shouldn't be too game breaking...
- there is some random bug/glitch when shooting diagonally towards the right rink bound...
- irritating clinching... it's hard to free yourself

Some unimplemented but planned features:
- endurance and strength settings
- tournament mode (?)
- auto-facing the goal (like on c64 version of ht) option
- enhanced control of the goalkeeper if assigned a seperate controller (more control over the puck)
- computer player...
- saving of settings/presets

Hope some of you have someone to play with and you will enjoy it...

A quick video presentation:
https://www.youtube.com/watch?v=4qmOwGM5LZc&feature=youtu.be

New video:
https://www.youtube.com/watch?v=M4E-BnV6ECg&feature=youtu.be
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: geco on 2016.May.16. 22:34:12
Sounds great! Tomorrow i will test it.
As i know there is no special consideration of changing lpt properly, i use in most cases port 82h only to change, 2 lpt starts in the same 1000h. 1 thing what could happen, if vsync part has different  number scanlines defined then screen jumps after switching.
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: ssr86 on 2016.May.16. 22:39:48
Sounds great!
...unfortunately the game doesn't do sound... Which is somewhat off-puting while watching the video...There was little time and I've decided to focus on the gameplay aspects like collision calibration and some of the additional settings... Barely made it to the current state in time...
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: geco on 2016.May.16. 22:44:03
...unfortunately the game doesn't do sound... Which is somewhat off-puting while watching the video...There was little time and I've decided to focus on the gameplay aspects like collision calibration and some of the additional settings... Barely made it to the current state in time...
I meant that what you wrote sounds great, but possibly it has meaning in hungarian only what means:i like it.
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: ssr86 on 2016.May.16. 22:46:59
:) I know what you've meant - I was just playing with words. I should put an emoticon there I guess :oops:
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: geco on 2016.May.16. 22:57:38
:) I know what you've meant - I was just playing with words. I should put an emoticon there I guess :oops:
lol
Ok :-)
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: Zozosoft on 2016.May.16. 23:10:44
It is looks very nice!
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: gflorez on 2016.May.16. 23:53:02
I like very much the smooooth movement of the players sliding on the ice.

The very first Enterprise game to allow six joysticks. Just only for this your game deserves a price.
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: geco on 2016.May.17. 08:44:12
Cool, I watched now the video, the movement is very smooth, the graphics is better than the C64 version, my favourite the score display :)
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: geco on 2016.May.17. 19:23:42
Hey, the movement very smooth and fast it is better than on C64, I hope you will finish soon the sounds, and possibly the computer opponent part of the game.
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: ssr86 on 2016.May.17. 23:50:20
I think I've managed to fix the bug with being able to enter the bounds with the puck... Updated the files in the first post.

The computer part may be very tricky because of having more than one of them at once and they would have to behave like a team... With one computer it would be more or less a "chase" puck scenario... Never done ai before.

I think some of you have noticed but didn't mention the lack of the scraping of the rink when moving...
I hope to add it sometime because it's a very neat effect. However the problem is that I would have to clean the rink after a match and that would require to keep it compreesed somewhere in the memory(?). And I don't know if I'll have the memory for that when the sound comes...

Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: ssr86 on 2016.May.21. 19:20:47
Fixed a major bug in player-puck collision detection for diagonal sprites. Updated the files from the original post.
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: szipucsu on 2016.May.23. 17:28:34
Can the internal joystick not be chosen to play?

Anyway it seems to be great. I would really watch a multiplayer game on a real EP with two joysticks.
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: ssr86 on 2016.May.23. 19:30:52
Can the internal joystick not be chosen to play?
No, currently only external joysticks are supported - no keyboard/internal joy. But I guess that adding internal joy support shouldn't require that much work...
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: ssr86 on 2016.May.28. 14:05:45
Added internal joystick and keyboard support.
No key redefine option however.
The two added choosable control schemes are:
* IJ = internal joystick + ENTER
* KB = QAOP + SPACE
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: geco on 2016.May.28. 23:24:31
Good choice :) My favourite is QAOP Space, I think we inherited from Speccy :)
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: ssr86 on 2016.June.06. 23:44:04
"TEAM HAT TRICK 4 player cocktail table! Only 15 known to have been made!":
https://www.youtube.com/watch?v=f4uiqFf0OlQ

Although like someone already stated in the comments: I wonder why there are no dumps of the game available... Didn't know there were complete units. Why they haven't tried to release the roms to the public?
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: gflorez on 2016.June.07. 10:14:02
But you can obtain the "normal" version Mame roms here (http://www.planetemu.net/rom/mame-roms/teamht-1).
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: ssr86 on 2016.June.07. 11:43:50
Didn't know the game has been actually dumped. :oops:
Funny, do you know in which version of mame the game was added?
 
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: gflorez on 2016.June.07. 12:38:26
You have the version on the same roms page: MAME - ROMs (0.174)

It is the actual version of Mame, so a very recent release(25 May 2016).
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: ssr86 on 2016.June.11. 13:01:14
Fixed another collision bug.
Some minor changes in graphics and one changed palette (set 3 to dark cga)
Added sound but the driver is sloooow... but must suffice for now - I've had enough struggle to get to what is.

Also found out that after adding sound the clinching of players is even more irritating than I thought - it's just strangely hard to get out of it...

Only one noise channel is such a pain...
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: geco on 2016.June.12. 05:04:18
Only one noise channel is such a pain...
You can use any of 3 tone channels also for noise, load 10h into A6h register, and set bit 4 and 5 in any of A1 , A3, A5 registers
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: ssr86 on 2016.June.12. 13:31:50
You can use any of 3 tone channels also for noise, load 10h into A6h register, and set bit 4 and 5 in any of A1 , A3, A5 registers
Thanks for the info :oops:

So with this I can have a total of 4 channels of noise?
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: geco on 2016.June.12. 17:15:20
Thanks for the info :oops:

So with this I can have a total of 4 channels of noise?
yes, noise channel with fix frequency, and on tone channels with variable frequency.
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: ssr86 on 2016.June.18. 22:52:03
Refactored the sound driver by using the distortion swap for noise. The sounds played aren't very good... I'll try to improve them somewhat sometime.
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: geco on 2016.June.19. 09:35:00
Refactored the sound driver by using the distortion swap for noise. The sounds played aren't very good... I'll try to improve them somewhat sometime.
Which setting do you use on port A6?
10h on A6 generate the same quality noise as noise channel.
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: geco on 2016.June.19. 10:12:57
I checked A6 setting, If i remember well Dave ports are write only, reading them results alway 0ffh, therefore A6 setting of the game is always 0ffh, which sounds the same for my ears as 10h. Other the sounds are good I think, I played with one sound, when all two players owns the puck, and the sound was much better when I decreased the volume from 3f,3f,2f,2f to 1f,1f,0f,0f, so possibly it is enough to play with the volumes to get the best sounding.

Reading A6 I think can be removed, except if you use other A6 setting elsewhere, I would suggest to load directly A6
Code: [Select]
 01E6  3E 10        LD    A, 10
  01E8  D3 A6        OUT   (A6), A
instead of
 *01E4  DB A6        IN    A, (A6)
  01E6  F6 10        OR    A, 10
  01E8  D3 A6        OUT   (A6), A

other, the code could be smaller and littlebit faster:
at 03c3h setting the volume
Code: [Select]
    OUTI
     SET 2,C
     OUTI
instead of
     LD    A, (HL)
     OUT   (C), A
     INC   C
     INC   C
     INC   C
     INC   C
     INC   HL
     LD    A, (HL)
     OUT   (C), A

at 03d4h resetting the volume:
Code: [Select]
    XOR A
     OUT   (C), A
     SET  2,C
     OUT   (C), A
instead of
  03D4  AF           XOR   A
  03D5  ED 79        OUT   (C), A
  03D7  0C           INC   C
  03D8  0C           INC   C
  03D9  0C           INC   C
  03DA  0C           INC   C
  03DB  ED 79        OUT   (C), A

at 03edh reset all volume registers:
Code: [Select]
    XOR a
     OUT (0A8h),A
     OUT (0A9h),A
     OUT (0AAh),A
     OUT (0ABh),A
     OUT (0ACh),A
     OUT (0ADh),A
     OUT (0AEh),A
     OUT (0AFh),A
     RET
instead of
  03ED                  XOR A
  03EE  0E A8        LD    C, A8
  03F0  ED 79        OUT   (C), A
  03F2  0C           INC   C
  03F3  ED 79        OUT   (C), A
  03F5  0C           INC   C
  03F6  ED 79        OUT   (C), A
  03F8  0C           INC   C
  03F9  ED 79        OUT   (C), A
  03FB  0C           INC   C
  03FC  ED 79        OUT   (C), A
  03FE  0C           INC   C
  03FF  ED 79        OUT   (C), A
  0401  0C           INC   C
  0402  ED 79        OUT   (C), A
  0404  0C           INC   C
  0405  ED 79        OUT   (C), A
  0407  C9           RET
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: ssr86 on 2016.June.19. 14:14:37
Thanks for the tips. Applied the changes but haven't updated the files because I want to do a few more things in some other parts first.
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: ssr86 on 2016.July.05. 20:13:00
Added the ice scratches effect option.
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: Zozosoft on 2016.July.05. 20:16:32
Added the ice scratches effect option.
Nice! And I like the sounds!
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: geco on 2016.July.06. 14:04:51
cool :) Will we have a Rolba also ? :)
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: ssr86 on 2016.July.06. 19:59:16
Will we have a Rolba also ? :)
Rather not.
I need to fix two more collision 'bugs' and then try to do some ai so it can be played alone -after that I think I will call it 'finished'.
Currently I'm cleaning the rink by decrunching the exomizer-compressed clean rink to the screen memory. With the rolba I'd need to be able to erase the scratches with an alternative method and I think that for that I would need to store the rink in yet another way and with that the game would go over 64kb.
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: ssr86 on 2018.January.05. 21:50:07
At last had someone to play with (or "test") at the end of 2017 and it wasn't very fun so I've felt that I needed to make some corrections...

Changes:
* changed the diagonal shooting angles to ~33.75 instead of 45 degrees. These are more like the c64 version and this made the game sooo much more fun to play...
* fixed a bug with scoring a goal outside the gate at some very specific circumstances...
* minor changes to the rink gfx (not final)
* the game now loads from a single com file of around 20kb and now works on a ep64 (it turned out that the previous version didn't)

However:
* still no single player mode
* still some bugs to fix
* need to adjust/calibrate all the parameters
* better game palettes


I really hate the long title now... What was I thinking...
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: Zozosoft on 2018.January.05. 21:52:13
Where available the actual version?
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: ssr86 on 2018.January.05. 22:17:30
At the end of the first post in this topic. However I see that I introduced/found a new bug that makes the game reset at the end of a shootout... Will fix it later and update again... Sorry.

new video: https://www.youtube.com/watch?v=M4E-BnV6ECg&feature=youtu.be
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: geco on 2018.January.06. 11:35:32
At last had someone to play with (or "test") at the end of 2017 and it wasn't very fun so I've felt that I needed to make some corrections...

Changes:
* changed the diagonal shooting angles to ~33.75 instead of 45 degrees. These are more like the c64 version and this made the game sooo much more fun to play...
* fixed a bug with scoring a goal outside the gate at some very specific circumstances...
* minor changes to the rink gfx (not final)
* the game now loads from a single com file of around 20kb and now works on a ep64 (it turned out that the previous version didn't)
The game play very good, I miss Rolba after end of a third to clean the ice, or 1st solution clean the ice after a third without Rolba :)

I really hate the long title now... What was I thinking...
Simply "Hat Trick" like on C64?
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: szipucsu on 2018.January.06. 13:31:45
Simply "Hat Trick" like on C64?
Or Icefight, Icefight for Six? Ice Day? Ice Dice?
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: ssr86 on 2018.March.29. 17:44:07
Updated the game files (see first post).

Changes:
- title logo (team hat trick - based on the arcade logo)
- rolba animation (no sound)
- added source code with all gfx files

The source code is very messy. Bad code in many places so beware...
Title: Re: Enterprise program: Team Hat Trick aka Six Men One Puck
Post by: geco on 2018.April.02. 11:36:11
Updated the game files (see first post).

Changes:
- title logo (team hat trick - based on the arcade logo)
- rolba animation (no sound)
- added source code with all gfx files

The source code is very messy. Bad code in many places so beware...
Cool logo, and cool rolba graphics :)