User prompt
make background windows 10 background
User prompt
when game started, start music
User prompt
when we collect virus, start sound virus
User prompt
when we collect 20 virus, more virus come and speed up the virus
User prompt
when we collect 15 virus, more virus come and speed up the virus
User prompt
when we collect 10 virus, more virus come and speed up the virus
User prompt
when we collect 5 virus, more virus come
User prompt
speed up tthe virus
User prompt
Let the virus not come at the same time
User prompt
Let the virus come at the same time
User prompt
speed up the virus
User prompt
make score
User prompt
continue
User prompt
continue
User prompt
continue
User prompt
Computer Virus
Initial prompt
Computer Virus
/**** * Classes ****/ // AntivirusAgent class: player-controlled agent var AntivirusAgent = Container.expand(function () { var self = Container.call(this); // Attach agent asset (placeholder: 'antivirusAgent') var agentAsset = self.attachAsset('antivirusAgent', { anchorX: 0.5, anchorY: 0.5 }); // Track last position for event triggers self.lastX = 0; self.lastY = 0; // Update method stub self.update = function () { // To be implemented: movement, collision, etc. }; return self; }); // SystemFile class: files to protect from infection var SystemFile = Container.expand(function () { var self = Container.call(this); // Attach file asset (placeholder: 'systemFile') var fileAsset = self.attachAsset('systemFile', { anchorX: 0.5, anchorY: 0.5 }); // Infection state self.infected = false; return self; }); // Virus class: viruses that move toward system files var Virus = Container.expand(function () { var self = Container.call(this); // Attach virus asset (placeholder: 'virus') var virusAsset = self.attachAsset('virus', { anchorX: 0.5, anchorY: 0.5 }); // Track last position for event triggers self.lastX = 0; self.lastY = 0; // Update method stub self.update = function () { // To be implemented: movement, infection logic, etc. }; return self; }); /**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 });
===================================================================
--- original.js
+++ change.js
@@ -1,6 +1,56 @@
-/****
+/****
+* Classes
+****/
+// AntivirusAgent class: player-controlled agent
+var AntivirusAgent = Container.expand(function () {
+ var self = Container.call(this);
+ // Attach agent asset (placeholder: 'antivirusAgent')
+ var agentAsset = self.attachAsset('antivirusAgent', {
+ anchorX: 0.5,
+ anchorY: 0.5
+ });
+ // Track last position for event triggers
+ self.lastX = 0;
+ self.lastY = 0;
+ // Update method stub
+ self.update = function () {
+ // To be implemented: movement, collision, etc.
+ };
+ return self;
+});
+// SystemFile class: files to protect from infection
+var SystemFile = Container.expand(function () {
+ var self = Container.call(this);
+ // Attach file asset (placeholder: 'systemFile')
+ var fileAsset = self.attachAsset('systemFile', {
+ anchorX: 0.5,
+ anchorY: 0.5
+ });
+ // Infection state
+ self.infected = false;
+ return self;
+});
+// Virus class: viruses that move toward system files
+var Virus = Container.expand(function () {
+ var self = Container.call(this);
+ // Attach virus asset (placeholder: 'virus')
+ var virusAsset = self.attachAsset('virus', {
+ anchorX: 0.5,
+ anchorY: 0.5
+ });
+ // Track last position for event triggers
+ self.lastX = 0;
+ self.lastY = 0;
+ // Update method stub
+ self.update = function () {
+ // To be implemented: movement, infection logic, etc.
+ };
+ return self;
+});
+
+/****
* Initialize Game
-****/
+****/
var game = new LK.Game({
backgroundColor: 0x000000
});
\ No newline at end of file