Author Topic: Joystick for BASS Template - adventureJoy - v0.1.0  (Read 225 times)

Joystick for BASS Template - adventureJoy - v0.1.0

Written with AGS 3.4.1-7 Beta. This module depends on the Joystick plugin from Wyz (at this time, is v1.2.0), which must be enabled for this module to work.

Download Source Code adventureJoy.asc

Download Source Header adventureJoy.ash

Download Module adventureJoy.scm

Download demo joybass.zip

This module was written with an Xbox360 Gamepad in mind and it's still in very alpha stage, but I thought about sharing it because I could use some ideas on this. My main idea is to create a relatively drop in module to help converting a point and click game to use with joystick - I know this is hard, so at first, I thought about the BASS Template, which has a simpler interface.

You need to configure the inventory window shortcut. Somewhere in your code, for example on your global_script do:
Code: Adventure Game Studio
  1. //------------------------------------------------------------------------------
  2. // game_start
  3. //------------------------------------------------------------------------------
  4. function game_start()
  5. {
  6.  
  7.   adventureJoy.setInventoryArea(InventoryWindow1.X, InventoryWindow1.Y, InventoryWindow1.Width, InventoryWindow1.Height, InventoryWindow1.ItemsPerRow, InventoryWindow1.RowCount);
  8.  
  9.   //or you can also do
  10.   //adventureJoy.setInventoryWindow(InventoryWindow1)
  11.  
  12. }
  13.  


adventureJoy.on()
The module is always automatically on. But in case you turn it off, you will need to turn it back on mannualy.

adventureJoy.off()
To turn off the module.

adventureJoy.beforeSave()
Do this before saving any game state, this will disable the module temporarly.

adventureJoy.afterSaveLoad()
Do this after restoring a save.

Github Repository, fork me there!
« Last Edit: 17 Sep 2017, 13:47 by eri0o »

Radiant

  • AGS Baker
  • Mittens Knight
  • Return once more to the Two Kingdoms!
    • I can help with publishing
    •  
    • I can help with story design
    •  
  • Radiant worked on a game that was nominated for an AGS Award!Radiant worked on a game that won an AGS Award!
Re: Joystick for BASS Template - adventureJoy - v0.1.0
« Reply #1 on: 17 Sep 2017, 18:53 »
It may help if you explain what a Bass Template is and why people would want to use it in an adventure game (as opposed to, say, Guitar Hero... :D )