Author Topic: Betrayed Alliance 2 Development Journal  (Read 8066 times)

0 Members and 1 Guest are viewing this topic.

Offline doomlazer

Re: Betrayed Alliance 2 Development Journal
« Reply #30 on: September 24, 2021, 02:57:55 PM »
I'm slowly playing through Betrayed Alliance 1. These games seem very ambitious and well executed. The art is great and BA2 looks even better! I like the mini-games and the attention to detail is very high. I can tell you've put a lot of effort into these.

I didn't know it was possible to mouse look in SCI0. Is that something you hacked in?

One suggestion, I needed to switch to a PC to use the installer. An alternate download for Mac/Linux users with just the resources, etc. would be a convenient addition for BA2.


Offline Doan Sephim

Re: Betrayed Alliance 2 Development Journal
« Reply #31 on: September 24, 2021, 04:21:27 PM »
I'm slowly playing through Betrayed Alliance 1. These games seem very ambitious and well executed. The art is great and BA2 looks even better! I like the mini-games and the attention to detail is very high. I can tell you've put a lot of effort into these.

I didn't know it was possible to mouse look in SCI0. Is that something you hacked in?

One suggestion, I needed to switch to a PC to use the installer. An alternate download for Mac/Linux users with just the resources, etc. would be a convenient addition for BA2.
Thanks for giving the game a spin. Did you download the one from this website or from the SCIWiki page? I know that people have played it on Mac/Linux and the major problem is that the music program doesn't work on those platforms.

Thanks for the kind words about the art. I'm trying to outdo my efforts moving from the first book to the second and I'm glad it seems to be paying off.

As far as the minigames go, Gumby is responsible for getting the darts game up and running and Cloudee1 did the code for the door puzzle of the scientist. I definitely want to give credit where it's due! It was clearly too ambitious a project, which explains why I broke it up into 3 books.

Right-click look is used in Quest for Glory 1 and was a feature I always loved. It's not too complicated to get running either. Something like:
Code: [Select]
(method (handleEvent pEvent)
(super handleEvent: pEvent)
(if (== (pEvent type?) evMOUSEBUTTON)
(if (& (pEvent modifiers?) emRIGHT_BUTTON)
(if
(and
(> (pEvent x?) 47)    ; Draw a box around the area you want to check
(< (pEvent x?) 72)
(> (pEvent y?) 105)
(< (pEvent y?) 121)
)
(PrintSomething)
)
)
)
)
You can also do this with control colors and views too.
« Last Edit: September 24, 2021, 04:23:03 PM by Doan Sephim »
Artificial Intelligence Competition

Offline doomlazer

Re: Betrayed Alliance 2 Development Journal
« Reply #32 on: September 24, 2021, 06:13:50 PM »
I downloaded it from this site. I didn't think about unarchiving the installer .exe at the time, which gives access to the game files easily enough.

Cool that other people contributed. I was lumping the chess puzzle with the mini-games because I didn't seem to get an item from it. I thought it was interesting how you implemented that one.

That mouse look function is pretty simple. Could I replace the x and y checks with something like:

Code: [Select]
(if (pEvent inRect: 47 105 72 121)
I have fat fingers so the less typing the better.

Offline EricOakford

Re: Betrayed Alliance 2 Development Journal
« Reply #33 on: September 24, 2021, 07:16:11 PM »
Another way of doing right-click look is to add a mouseDown event handler to your game. My SCI0 and SCI01 templates have this all set up in the main script. It's implemented in the same way as QFG1EGA and QFG2, respectively. See my decompilation of QFG1EGA for examples.
My SCI templates
SCI0 SCI0.1 SCI1.0 SCI1.1
SCI2.1 planned

Offline Collector

Re: Betrayed Alliance 2 Development Journal
« Reply #34 on: September 24, 2021, 08:29:39 PM »
The right-click look is in many Sierra SCI0 games, such as TCB, Camelot, Iceman, KQ1SCI and others.
KQII Remake Pic

Offline doomlazer

Re: Betrayed Alliance 2 Development Journal
« Reply #35 on: September 24, 2021, 08:57:33 PM »
So it's a feature in all the games I didn't play growing up!
« Last Edit: September 24, 2021, 09:15:51 PM by doomlazer »

Offline Doan Sephim

Re: Betrayed Alliance 2 Development Journal
« Reply #36 on: September 24, 2021, 11:19:01 PM »
The most recent version of Betrayed Alliance is on the SCI Wiki page. I can't speak to the version on this site as I don't remember when or if I've ever patched it here.

I'm glad to hear there are better ways of implementing Right-click-look. I'll have to look into that.


SMF 2.0.14 | SMF © 2017, Simple Machines
Simple Audio Video Embedder

Page created in 0.108 seconds with 24 queries.