Commit Graph

224 Commits

Author SHA1 Message Date
mshirt 2c5cc374cd Making game defullscreen during prompts 2016-12-07 23:06:40 -06:00
mshirt c51dfe842a Added more checks for names 2016-12-07 23:06:23 -06:00
mshirt cce13d8d01 Added a switch for red docs 2016-12-06 16:43:11 -06:00
mshirt 691bbc0f67 Making the computer username default
Even for steam
2016-12-06 15:28:36 -06:00
mshirt 9b91a3d5e3 Adding a fast travel for a new map in the Glen 2016-12-04 16:53:07 -06:00
mshirt ae8e161504 Changed hitbox on smallpool 2016-12-01 18:09:20 -06:00
mshirt 7c97b71824 Added in \l and \r to credits
For left-justified and right-justified text
2016-11-27 21:04:50 -06:00
mshirt 88d9690737 A switch to disable fullscreen toggling 2016-11-27 21:04:15 -06:00
mshirt ce147a44a5 Added fullscreen toggle (F8) 2016-11-26 12:55:05 -06:00
mshirt a229d8862f Putting in combinations for trying to smash the sun 2016-11-26 12:54:49 -06:00
mshirt 5178abd891 Put in countdown script
also adjusted green_ambient
2016-11-25 21:42:30 -06:00
mshirt 824cd3af3b Putting in the post-game version of the safe document 2016-11-25 21:39:23 -06:00
Michael Shirt 42d9b25f3c Fixing choices
Because the last commit I did just broke it
2016-11-19 05:07:08 -07:00
Michael Shirt bca00b4197 Making choices filter out \p 2016-11-18 01:54:10 -07:00
Michael Shirt 1762362044 Added permaflag/variable functionality 2016-11-18 01:53:52 -07:00
Michael Shirt bc2133b01f Adding scripts for plight's bruteforcing at elevator deck and for losing all items at beginning of tower 2016-11-18 01:51:49 -07:00
Michael Shirt a6df4ea3d2 Adjusting text colors to add contrast 2016-11-17 22:27:56 -07:00
Michael Shirt 83d6e46421 Added water pill combination 2016-11-17 13:02:44 -07:00
Michael Shirt 79ba9fc44a game_oneshot was misspelled
Mat did you even test this before you committed it?
2016-11-15 21:28:32 -07:00
Michael Shirt 6c819d0249 Commenting out choice scrolling with L/R
This was causing a bug where if you had 4 choices you could access
another page with blank choices?  Rather than try to figure out why
that's happening I'm opting to remove the functionality entirely, as
we're short on time and we don't even have any choice dialogues that
have more than 4 choices anyways.
2016-11-14 14:48:33 -07:00
Mathew Velasquez eff90ea95f Fixed wallpaper restore save bug 2016-11-06 17:43:00 -05:00
Michael Shirt c0a3cda160 Adding functions to disable saving on command 2016-11-04 14:04:38 -06:00
Michael Shirt 7a8cd433bd Adding journal copy function 2016-11-04 03:35:18 -06:00
Mathew Velasquez 1f35ab104f Various last-minute beta fixes 2016-11-04 05:29:22 -04:00
Michael Shirt e80454a0d6 Adding fast travel destinations 2016-11-02 16:38:00 -06:00
Michael Shirt 01b4e7e2a0 Fixing textbox width issue 2016-10-29 18:47:54 -06:00
Michael Shirt 2a03b10d7c Fixed a bug with quit_game_bed
The interpreter needs to +1 to the index before saving or else
quit_game_bed will have the game stuck in an infinite loop of quitting
the game when reloading, but we need to -1 immediately after because
otherwise the interpreter will skip a command after this is called.
2016-10-29 18:46:52 -06:00
Michael Shirt 01be2d6f4c Added 5th pixel puzzle for tower, S2 is no longer being used but will be left in the script anyways 2016-10-29 18:45:21 -06:00
Michael Shirt c7c4948817 Adding more footstep sfx for some tilesets 2016-10-29 18:44:48 -06:00
Michael Shirt 312672f160 Added courtyard as fast travel destination in Glen 2016-10-29 18:44:25 -06:00
Michael Shirt 1cba1adf66 Fixing bug with window prompts and adding credits message box
The game would try to catch up in frames when a window prompt was
opened, so if the window was open for 140 frames the game would process
the next 140 frames instantly after the game was closed.  To fix this, I
have the window prompt time how long it's opened and then I tell the
game to sleep for however many frames it was opened for.

Credits message works but does not yet have all the desired features,
will finish up later.
2016-10-29 18:44:06 -06:00
Michael Shirt d43e176b4c Footsplashes moved slightly lower to be more centered around feet 2016-10-22 20:10:13 -06:00
Michael Shirt ae62b5800d Added step sounds for endgame areas 2016-10-22 20:06:35 -06:00
Michael Shirt 6b91671ad0 Reducing house ambience
Cuz night said so
2016-10-22 20:05:21 -06:00
Michael Shirt 1750dc7c98 Changes to how the game handles quitting
With these changes the game technically never "allows" you to quit, and
instead the input is handled by Scene_Map.  This lets us run an event
before they quit.
2016-10-17 15:34:45 -06:00
Michael Shirt d403608189 Finishing footsplashes for the water room.
With these scripts the map properly loops and the footsplashes do as
well.  Footsplashes were also made bigger.
2016-10-17 15:27:52 -06:00
Michael Shirt 2e73c99b8a Fixes
Moved get_user_name back to where it belongs, and added self to the
wallpaper methods so they would be accessible from the event parser.
2016-10-15 01:06:27 -06:00
Michael Shirt cea46f76e8 Added footsplashes
These can be controlled with switch 101, to be primarily used in the
Tower area.

This isn't finalized yet but works as is atm, will be finished soon.
2016-10-13 18:32:34 -06:00
Michael Shirt f2368993d7 Made get_user_name script function
In the barrens during the prophet bot scene, the game was comparing the
entered name to Oneshot::USER_NAME.  But this was incorrect, as the name
could be either the steam name or the pc username and the name has some
preprocessing done to it.  With this new script function, we can compare
the name correctly
2016-10-13 18:32:34 -06:00
Michael Shirt ad48a874df 2 changes to basic text boxes
-If niko's character graphic is one of the gasmask graphics, change all
his facepics to the gasmask facepic
-User can now prompt text to show instantly by pressing action or cancel
while text is scrolling
2016-10-13 18:32:33 -06:00
Michael Shirt 99fbdf04cc Fixing a mistake with this script, should be checking for equality instead of inclusion 2016-10-13 18:32:33 -06:00
Michael Shirt 8314371b4f Rehauling the appearance of doc messages to look more like paper 2016-10-13 18:32:33 -06:00
Michael Shirt c04f442b0a Adding step sfx for the blue mineshaft 2016-10-13 18:32:33 -06:00
Mathew Velasquez 99c9a27f2a Wallpaper functionality restored for windows 2016-10-13 20:26:01 -04:00
Mathew Velasquez 0dc872bcea Journal screen stuff 2016-10-13 20:26:01 -04:00
Michael Shirt a0c9e2eeff Updating niko reflection script
Sink is no longer solid so the positioning of niko's reflection is
changed to "reflect" this.
2016-10-10 12:44:33 -06:00
Michael Shirt 77fdd558cb Added fadein functionality for bgm
This lets the user fadein bgm after using a normal "play bgm" command in
the event editor.  Just simply call "Script.fadein_bgm(target, speed)"
with the target being the target vol % that you want the fade in to
eventually reach and the speed being how fast you want it to reach it (1
- slowest, 100-instant)
2016-10-10 11:44:17 -06:00
Michael Shirt da01da31e7 Name checks
Checks for the name the player inputs, so that niko can have unique
dialogue for each situation.
2016-10-07 16:55:37 -06:00
Michael Shirt d884cbc2a6 Removing counter functionality of tiles
This was causing footsteps tiles in the barrens to allow the player to
interact with objects an extra tile in front of them, which was causing
issues (ex: letting players talk to doors through walls)
2016-10-07 16:54:29 -06:00
Michael Shirt 436a0f996f Bathroom mirror reflection
The bathroom mirror now reflects niko, with the aide of these scripts
2016-10-05 20:41:16 -06:00
Michael Shirt 583499f004 Added codebg to scrolling bgs
Night wanted this bg to be a scrolling/clamped bg as well
2016-10-04 01:34:05 -06:00
Michael Shirt 73c6ae14af Added splash step for tower
For the water room in the tower
2016-10-04 01:33:36 -06:00
Michael Shirt ab9856ef22 Made loading respect the fixed camera
Switch 100 is the fixed camera switch, this makes sure the game won't
try to focus on the player for the first frame.
2016-10-04 01:33:18 -06:00
Michael Shirt 4939d4678d Added more step puzzle solutions/checks
For the step puzzles in the tower
2016-10-04 01:31:28 -06:00
Michael Shirt e1a834220c commenting out debug so game respects the debug setting better 2016-10-03 11:04:17 -06:00
Michael Shirt 316283c78c Added step sfx for tilesets that didn't have them yet 2016-10-03 11:04:00 -06:00
Michael Shirt 30e53b9998 Added another check for a dream-time flag (last one) 2016-10-03 11:03:45 -06:00
Michael Shirt 21104415cf Added flag check for dream 3 2016-10-02 11:44:14 -06:00
Michael Shirt 91f95bcd06 Clover flash
This gives the clover item a flashing effect if used.  Should also add a
check for a switch or something later so it only works in the maps
necessary?
2016-10-01 06:21:55 -06:00
Michael Shirt 3f6034ae10 Fixed followers not following niko
Followers still weren't following niko after loading a save, but this
code fixes that.
2016-09-29 19:53:03 -06:00
Michael Shirt 5d30984821 Camera functionality added
With this we can now fix the camera to a set position.  I also added
script functions to get the X and Y of an npc, which is useful for
events.
2016-09-28 22:43:14 -06:00
Michael Shirt 6c1f0f8bf4 Added flag check for dream 2
Will probably add more checks as dreams 3 and 4 are done
2016-09-28 22:41:34 -06:00
Michael Shirt 9514e2dfa3 More changes to player footstep sfx 2016-09-27 10:30:10 -06:00
Michael Shirt 0b3fc4527b Added fading water animation for blue and green areas.
This cycles the panorama through 3 different images, fading them in as
they show up.
2016-09-27 10:29:53 -06:00
Michael Shirt 4ebcd19352 Made auto saving/loading fully functional
With this, autoloading upon launching the game should be fully working.
Also added some randomness to the pitch of step_sfx to make them sound a
bit less repetitive, and made it so the game can only save if the
current scene is a Scene_Map (because auto_saving at the titlescreen
breaks things pretty badly).
2016-09-26 08:59:21 -06:00
Michael Shirt 154681d853 Added Message box functionality
This adds 2 new things to the vanilla text box.  "\>" will now make the
script wait for user input before continuing to display text.
"\@facepic_name" will change the face graphic to facepic_name without
needing to reopen the message window.
2016-09-26 08:55:01 -06:00
Michael Shirt c0bd0ff2f7 Adding real_load function
Just so I have something I can call ingame to load the "real save"
2016-09-23 17:55:53 -06:00
Michael Shirt 876316ac22 Changing look/color of Doc Messages
Now it looks prettier, as per Night's instructions.
2016-09-23 17:54:34 -06:00
Michael Shirt 2a8c3bd62f Changed Password Input colors part 2
Reordering the colors
2016-09-22 14:36:10 -06:00
Michael Shirt 5e3470a1c4 Updated Safe puzzle
Document is now named "DOCUMENT.oneshot.txt", and flavor text for the
document has been added in.
2016-09-22 14:35:37 -06:00
Michael Shirt 7aade486cf Adding Desktop Message
Displays messages for the Desktop screen, can  be called with "@desktop"
just like how "@ed" calls ed messages.
2016-09-22 14:34:33 -06:00
Michael Shirt 851a12ada3 Fixing issue where niko's lightmap clips everything
On maps where the ambient is set via an event/script, niko's lightbulb
clips through anything solid.  This case here seems to be the culprit.
2016-09-22 14:32:13 -06:00
Michael Shirt 1e6665cf27 Changed password input colors
This line didn't get commited but this is part of the last commit.
Github keeps doing a thing where it throws errors when I have trailing
whitespaces (Which is fine), but when I fix the whitespaces it then
commits the changes excluding the lines that I fixed.  It's weird.
2016-09-21 20:45:32 -06:00
Michael Shirt 8ac51ee38a Changed password input colors
This lets the number input for the PC be multicolored, just like the
number is everywhere else.
2016-09-21 20:43:46 -06:00
Michael Shirt 390cc74889 Anti-lag script fix for edge case
This fix makes it such that even if a character sprite is offscreen it
will still update its camera position, to prevent issues when a
character sprite teleports offscreen (but their sprite does not because
it doesn't update).
2016-09-20 20:52:23 -06:00
Mathew Velasquez 31d90b8a66 quarry -> lookout point 2016-09-20 22:05:22 -04:00
Michael Shirt 2ade85c03a Save/Load fix
Updated default save and load file functions to save and load the extra
data that oneshot saves (followers and fast travel).  Also updated the
default save/load and the new save/load to save the footstep_sfx array,
since otherwise maps have no footstep sfx after loading a save until you
change map.
2016-09-20 13:11:10 -06:00
Michael Shirt 8a99e0716f Anti-lag script
This didn't get fully committed last time for some reason?
2016-09-20 13:08:55 -06:00
Michael Shirt a0933df9c3 Anti-lag script
This just makes sure that character sprites are actually onscreen before
updating them, for game events.  This greatly improves performance on
larger maps that have many game events.
2016-09-20 00:05:55 -06:00
Mathew Velasquez 302ec6dd02 I stopped making commits for a good while. Here's the latest junk. 2016-09-19 13:54:38 -04:00
Mathew Velasquez f28e7f8b7c Fixed menu bug on balcony 2016-05-04 22:47:53 -04:00
Mathew Velasquez 3a2f722786 Character code bugfixes 2016-04-26 17:15:12 -04:00
Mathew Velasquez 0c05d76a94 Blue area tweaks 2016-04-26 17:15:12 -04:00
Mathew Velasquez 82493cd0a0 Added footprints and src_rect to Plane class 2016-04-11 21:33:54 -04:00
Mathew Velasquez d53ad4b124 Improved internationalization support 2016-04-06 13:45:36 -04:00
Mathew Velasquez ea80ecd155 Conditional branch eval() fix 2016-03-11 16:25:40 -05:00
Mathew Velasquez 62418329d4 Tweaks for footsteps and timer 2016-03-11 02:29:08 -05:00
Mathew Velasquez 737f0759e7 Added cheap hack for sprite lighting occlusion 2016-03-11 02:28:26 -05:00
Mathew Velasquez 77ba08415b Demo tweaks 2016-03-11 00:28:33 -05:00
Mathew Velasquez c37867b8ef Empty player name for GDC 2016-03-07 20:13:26 -05:00
Mathew Velasquez b8c4a360ce Fixed fast travel bug 2016-03-07 18:57:46 -05:00
Mathew Velasquez f90828be05 Various improvements/cases for GDC 2016-03-07 18:47:34 -05:00
Mathew Velasquez 3bc60bb45d Moved demo conclusion text to scripts 2016-03-07 18:30:04 -05:00
Mathew Velasquez 79fc639b83 Build portability fixes and name input issue fix 2016-03-07 17:14:48 -05:00
Mathew Velasquez 7c622769ad Fixed newline bug 2016-02-29 18:10:38 -05:00
Mathew Velasquez 1fd808d0af Gutted more unused features 2016-02-29 15:40:10 -05:00
Mathew Velasquez 546f29f42e Preliminary i18n improvements 2016-02-29 01:41:37 -05:00
Mathew Velasquez 5bb407be96 Fade to black transition for travel 2016-02-25 19:46:34 -05:00
Mathew Velasquez 49e9f81953 Dynamic footsteps 2016-02-25 19:32:40 -05:00
Mathew Velasquez 21450179c6 Fast travel more or less finished 2016-02-25 18:40:07 -05:00
Mathew Velasquez ddc43b2114 Beginnings of fast travel 2016-02-25 02:59:22 -05:00
Mathew Velasquez 19ab472f00 Fixed missing lowercase $debug 2016-02-25 01:14:35 -05:00
Mathew Velasquez b63b3ba8f3 Renamed save data to .dat for easier Steam cloud integration 2016-02-18 18:23:16 -05:00
Mathew Velasquez 2df5fd29de Renamed $DEBUG to $debug to avoid verbose mode.
Also made GL debug functions print less stuff.
2016-02-17 17:14:16 -05:00
Mathew Velasquez ba0203169e Added obscured/scratched window puzzle 2016-02-17 17:14:16 -05:00
Mathew 5f91c4d780 Remove actor names from messagebox 2016-01-05 14:50:18 -05:00
Mathew 5cee14c537 Footsteps updated for red factory interior 2016-01-05 14:50:18 -05:00
Mathew 1be4cd927e Fix light layer shake 2016-01-05 14:50:18 -05:00
Mathew 8818bf7ba3 Added !bed as special event 2016-01-05 14:50:18 -05:00
Mathew b874ee8815 Puzzle code for demo, etc 2016-01-05 14:50:18 -05:00
Mathew 90cf07c825 Linked to debugMode option, gutted RTP config 2016-01-05 14:50:18 -05:00
Mathew 26be2f2aea Added list of panoramas clamped by default 2016-01-05 14:50:18 -05:00
Mathew Velasquez d27c32f23f Tweaked footsteps 2016-01-05 14:50:18 -05:00
Mathew Velasquez a7fd6c7aee Adjustments for red area 2016-01-05 14:50:18 -05:00
Mathew Velasquez da948348ac Consistent, proper CJK support 2016-01-05 14:50:18 -05:00
Mathew Velasquez fa11f04426 Changed Sprite to RPG::Sprite in Sprite_Character 2016-01-05 14:50:18 -05:00
Mathew Velasquez e9f53af625 Re-implemented ambient light and bulb glow 2016-01-05 14:50:18 -05:00
Mathew Velasquez 90f2586304 Reorganized files 2016-01-05 14:50:18 -05:00
Mathew Velasquez 973dc85c16 Debug mode instantly starts game 2016-01-05 14:50:18 -05:00
Mathew Velasquez 0007939ded Re-implemented lights as another viewport layer 2016-01-05 14:50:18 -05:00
Mathew Velasquez 5ff71744b5 Rudimentary map wrapping added 2016-01-05 14:50:18 -05:00
Mathew Velasquez b320dc3873 Started on light viewport, reorganized viewports 2016-01-05 14:50:18 -05:00
Mathew Velasquez c515b06e33 Message blip delay changed 2016-01-05 14:50:18 -05:00
Mathew Velasquez 965f88ef83 Added scripts 2016-01-05 14:50:18 -05:00