Commit Graph

20 Commits

Author SHA1 Message Date
Daniel Xie 77f0c31777 Got NetScript working asyhcronously with Promises! Only for loops have been tested though. Still need to test while loops and ifs. While loops should work if the for loops do, idk about if statements though. If statements aren't a high priority right now though 2016-11-29 16:56:05 -06:00
Daniel Xie 1efee3b7d6 Testing making the script runner NOT be a different web worker thread. 2016-11-28 16:13:13 -06:00
Daniel Xie 4687b80256 Tried to integrate Promises + web workers into Netscript code. Doesn't work at all right now 2016-11-28 16:02:06 -06:00
Daniel Xie 00f8a31246 When game is opened it will automatically try to load from local save, otherwise it begins a new game. Also fixed up save functions 2016-11-24 16:44:48 -06:00
Daniel Xie f38fd340f4 Implement Script Editor (mostly) 2016-11-24 16:30:33 -06:00
Daniel Xie 1a600ad560 Added offline properties for Script object 2016-11-21 05:22:18 -06:00
Daniel Xie d372ce5980 Fixed some bugs, began adding a Script class 2016-11-21 00:11:14 -06:00
Daniel Xie ed7418ac61 Finished defining company and company positions and initialized them in the Engine 2016-11-03 15:43:46 -05:00
Daniel Xie 0e9740dcf9 Continued defining the Company class and began writing initialization for it. Defined a namespace for Constants. 2016-11-02 16:45:10 -05:00
Daniel Xie 6cf9339919 Refactored the hacking progress code into an action progress code so that it can be reused for analyze and anything else that requires an animated progress bar. Implemented analyze 2016-11-01 00:30:59 -05:00
Daniel Xie cc6b178a96 Added New Servers.need to properly init them 2016-10-28 16:57:58 -05:00
Daniel Xie f6aaef455d Added full hack functionality with animated progress bar and everthing. All thats left is balancing exp/money gains and also taking care of porthack stuff. Also fixed the terminal not being scrollable 2016-10-27 13:26:00 -05:00
Daniel Xie 0a13496984 Trying to get hack progress bar to work 2016-10-26 22:34:18 -05:00
Daniel Xie d268ea09f8 Added debugging statements to try and figure out whats wrong when the time is calculated for hacks 2016-10-24 16:36:23 -05:00
Daniel Xie 0307b3334d Added port properties to server. Wrote code for hacking() and PortHacking, currently untested 2016-10-24 16:16:51 -05:00
Daniel Xie 4517020719 Added some init functions to the engine's init(). Began writing out the hack function for servers 2016-10-20 16:34:21 -05:00
Daniel Xie 4057f946d8 Implemented df and cls/clear commands 2016-10-20 16:11:01 -05:00
Daniel Xie ce0ca6c24d Fixed syntactical bugs/typos 2016-10-20 13:26:38 -05:00
Daniel Xie a1fd46232e Added cases for all the commands that will be implemented for now. Updated Server class to contain information about servers, home computer, etc. Added a few fields to Server that will be used when hacking, as well as constructor. 2016-10-17 16:23:23 -05:00
Daniel Xie 7c03b274d7 Added Player, Server, Terminal, and engine javascript files. Implemented basic terminal UI. Implemented main menu tabs (only added Character and Terminal for now 2016-10-17 03:24:39 -05:00