Home » MODDING HQ 1.13 » Flugente's Magika Workshop » New feature: Minigames
New feature: Minigames[message #347722] Sun, 11 December 2016 13:55 Go to next message
Flugente

 
Messages:3507
Registered:April 2009
Location: Germany
As a sign that yeah, I'm still alive, I've added a new feature. This also allows me to demonstrate a few things that are possible in JA2 but are never used elsewhere. Hopefully this will lead to a few fruitful new ideas.

Anyway, as a new addition to interactive actions, we can now play minigames.


I've set this up to work at arcade machines, but as you already know, you can set this up to work on any structure via xmls and lua scripts.

InteractiveActions.xml:
Toggle Spoiler


Overhead.lua:
Toggle Spoiler


Tetris works the way you'd expect it to work. The arrow keys allow moving and rotation the controlled tile. Placing tiles fast and completing lines gives you points. Finishing lines increases the level, making the game faster and giving you more points. You can increase the starting level or add an additional challenge by raising the handicap (for each level, 2 partially filled lines will be added). [p] pauses the game, [Esc] quits it altogether.

Of minor interest to coders might be that the background images are in png format, not sti. While we can already use png background images, I've found no evidence we ever do so, at least in the trunk. So take this as a nod to that ;)

The most interesting part of this is that the coding methods used here (create a new screen type, use png images as background, create menus, use timers to simulate movement...) could also be used elsewhere. A few ideas (doesn't necessarily mean I'm going to implement them):

  • More minigames. Duh.
  • Hacking so far only results in a few lines in the message box. A dedicated computer screen would be cool.
  • It's pretty obvious we could use this and a few lua additions to be able to allow modders to put up pictures. So for example, you could walk up to a picture in a house, inspect it, and suddenly you can see the image in large.
  • Seemingly every RPG out there has minigames. Picking locks. Hacking. Crafting. Cooking. It's a meaningless, trite waste of time, and we could have that too! Just imagine, every time we pick a lock, we have to do a lockpicking game first! Maybe this is not such a good idea happy
  • Among the many ideas the new X-Com had that sounded good on paper but where bad in the finished product was air defense (which was just an impressively bad minigame). We nowadays can repair/hack SAMs, and have actual enemy targets we could shoot down...
This feature has been added to the trunk in r8346 & GameDir r2350. This is fully savegame compatible. Using the new exe without the new GameDir will cause your computer to gain sentience, briefly ponder upon the feebleness of mankind, and then run off to Slovenia with an overweight baton twirler. Ouch!

[Updated on: Sun, 11 December 2016 14:23]




I know now that it could never work between us, as much as we wanted to, it could never be! Not because you're a rabbit, but because you're black.

If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.

Report message to a moderator

Captain

Re: New feature: Minigames[message #347723 is a reply to message #347722] Sun, 11 December 2016 18:08 Go to previous messageGo to next message
DepressivesBrot is currently offline DepressivesBrot

 
Messages:3651
Registered:July 2009
Flugente wrote on Sun, 11 December 2016 12:55
...Picking locks...

>> imagines a fully stocked&locked AIMNAS depot map
>> grabs shotgun
>> books trainticket westwards cheeky



Chat with us!
#bearpit on IRC
Discord
Get your latest 1.13 Builds
(Pls don't use my forum PMs for general game queries)

Report message to a moderator

Captain

Re: New feature: Minigames[message #347725 is a reply to message #347723] Mon, 12 December 2016 11:58 Go to previous messageGo to next message
smeagol is currently offline smeagol

 
Messages:2705
Registered:June 2008
Location: Bremen, Germany
Hmmm... minigames... reminds me of something...

[url=][/url]

Report message to a moderator

Lieutenant

Re: New feature: Minigames[message #347726 is a reply to message #347722] Mon, 12 December 2016 14:58 Go to previous messageGo to next message
grim is currently offline grim

 
Messages:344
Registered:July 2006
Location: France
Quote:
Hacking so far only results in a few lines in the message box. A dedicated computer screen would be cool.
It's pretty obvious we could use this and a few lua additions to be able to allow modders to put up pictures. So for example, you could walk up to a picture in a house, inspect it, and suddenly you can see the image in large.


For immersion those two uses would be very nice.

Minigames are harder to implement in JA2's gameplay where you're not acting directly but giving orders to others, acting in your stead. Their success depends on their abilities, not yours. Though, one could imagine ponctual minigames based on intelligence (intel, information) for example.

Nice job Flugente, as usual!

Report message to a moderator

Master Sergeant
Re: New feature: Minigames[message #347728 is a reply to message #347726] Mon, 12 December 2016 20:39 Go to previous messageGo to next message
Cage is currently offline Cage
Messages:1
Registered:May 2011
It was long time ago on Metavira. Where lockpicking shows a little video with a keyhole and lockpicking process... It was cool. Maybe not a minigame, just such small animation will be added someday? Excellent job!

Report message to a moderator

Civilian
Re: New feature: Minigames[message #347731 is a reply to message #347728] Tue, 13 December 2016 17:20 Go to previous messageGo to next message
smeagol is currently offline smeagol

 
Messages:2705
Registered:June 2008
Location: Bremen, Germany
I kinda liked the rather simple lockpicking subgame wizardry 7 had (another sirtech game btw).

Report message to a moderator

Lieutenant

Re: New feature: Minigames[message #348055 is a reply to message #347731] Thu, 05 January 2017 01:11 Go to previous messageGo to next message
Flugente

 
Messages:3507
Registered:April 2009
Location: Germany
As of r8353 & GameDir r2353 (awww, exactly 6k difference), we have another minigame, this time an even older one:



It's a real classic this time. With a few upgrades:

  • A ball only scores after it has been touched by a player paddle at least once. Point goes to the last player that touched it, own goals are not possible.
  • You can set the max speed of the balls. Note that balls automatically speed up the longer they are in play, we can't have you relaxing, can we now?
  • 1 Ball is normal, but you can increase that up to 100 if you like.
  • Multiplayer: Up to 4 players can play this game at the same time with one keyboard (key bindings are listed on the side when needed). This means that we finally have a multiplayer game for this year's convention! happy
  • The AI also has a hard mode. Which is harder than easy mode.
Anyway, while this is hardly exciting, I guess I'm a bit more comfortable with collision and angular movement stuff now, which would be somewhat useful for other thinkable features.

GameDir >= r2353 is required for this (new .png image added, lua and xml settings). Using the new exe without the new GameDir is for losers. So sad.

Edit: Why is there no 'party' smiley here? Sad.

[Updated on: Thu, 05 January 2017 01:15]




I know now that it could never work between us, as much as we wanted to, it could never be! Not because you're a rabbit, but because you're black.

If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.

Report message to a moderator

Captain

Re: New feature: Minigames[message #348082 is a reply to message #348055] Thu, 05 January 2017 21:44 Go to previous messageGo to next message
wanne (aka RoWa21) is currently offline wanne (aka RoWa21)

 
Messages:1961
Registered:October 2005
Location: Austria
Awesome Flugente, Pacman next? 😆

Report message to a moderator

Sergeant Major

Re: New feature: Minigames[message #348266 is a reply to message #348082] Sat, 14 January 2017 16:33 Go to previous message
LootFragg is currently offline LootFragg

 
Messages:349
Registered:August 2009
Location: Berlin, Germany
Play Jagged Alliance 1 in Jagged Alliance 2! Brillant idea, I know. I'm great at this. No need to thank me.

Seriously though, amazing stuff.

Report message to a moderator

Master Sergeant
Previous Topic: New feature: environment hazards
Next Topic: New (mini)-Feature: Scuba Gear
Goto Forum:
  


Current Time: Mon Jan 20 09:17:32 GMT+2 2025

Total time taken to generate the page: 0.01108 seconds