var Altman = Container.expand(function () { var self = Container.call(this); var altmanGraphics = self.createAsset('altman', 'Altman character', .5, .5); self.vx = 45; self.vy = 45; var altmanLabel = new Text2('Sam', { size: 50, fill: '#ffffff', dropShadow: true, dropShadowColor: '#000000', dropShadowBlur: 4, dropShadowAngle: Math.PI / 6, dropShadowDistance: 6, weight: 800 }); altmanLabel.x = altmanGraphics.x - altmanLabel.width / 2; altmanLabel.y = altmanGraphics.y + altmanGraphics.height / 2; self.addChild(altmanLabel); self.move = function () { self.x += self.vx; self.y += self.vy; if (self.x < 0 || self.x > 2048) { LK.showGameOver(); } if (self.y < 0 || self.y > 2732) { self.vy *= -1; } }; self.update = function () { self.move(); }; }); var OpenAI = Container.expand(function () { var self = Container.call(this); var openAIGraphics = self.createAsset('openai', 'OpenAI logo', .5, .5); var openAILabel = new Text2('OpenAI', { size: 50, fill: '#ffffff', dropShadow: true, dropShadowColor: '#000000', dropShadowBlur: 4, dropShadowAngle: Math.PI / 6, dropShadowDistance: 6, weight: 800 }); openAILabel.y = openAIGraphics.height; self.addChild(openAILabel); self.controlY = function (newY) { self.targetY = newY; self.speedLimit = 20; }; self.update = function () { if (self.y < self.targetY) { self.y += Math.min(self.speedLimit, self.targetY - self.y); } else if (self.y > self.targetY) { self.y -= Math.min(self.speedLimit, self.y - self.targetY); } openAILabel.x = openAIGraphics.x - openAILabel.width / 2; openAILabel.y = openAIGraphics.y + openAIGraphics.height / 2; }; }); var Microsoft = Container.expand(function () { var self = Container.call(this); var microsoftGraphics = self.createAsset('microsoft', 'Microsoft logo', .5, .5); var microsoftLabel = new Text2('Microsoft', { size: 50, fill: '#ffffff', dropShadow: true, dropShadowColor: '#000000', dropShadowBlur: 4, dropShadowAngle: Math.PI / 6, dropShadowDistance: 6, weight: 800 }); microsoftLabel.y = microsoftGraphics.height; self.addChild(microsoftLabel); self.controlY = function (newY) { self.targetY = newY; self.speedLimit = 20; }; self.update = function () { if (self.y < self.targetY) { self.y += Math.min(self.speedLimit, self.targetY - self.y); } else if (self.y > self.targetY) { self.y -= Math.min(self.speedLimit, self.y - self.targetY); } microsoftLabel.x = microsoftGraphics.x - microsoftLabel.width / 2; microsoftLabel.y = microsoftGraphics.y + microsoftGraphics.height / 2; }; }); var Game = Container.expand(function () { var self = Container.call(this); self.rejectionReasons = []; self.addRejectionReason = function (reason) { var formattedReason = ''; var index = reason.indexOf(' ', reason.length / 2); if (index === -1) index = reason.length; formattedReason = reason.substring(0, index) + '\n' + reason.substring(index).trim(); self.rejectionReasons.push(formattedReason); }; self.addRejectionReason('Sam insisted on replacing all office chairs with yoga balls.'); self.addRejectionReason('Sam proposed a mandatory "Hawaiian Shirt Friday" policy.'); self.addRejectionReason('Sam suggested replacing all coffee with green tea for increased productivity.'); self.addRejectionReason('Sam wanted to implement a "Bring Your Pet to Work" day, every day.'); self.addRejectionReason('Sam planned to replace all board meetings with group meditation sessions.'); self.addRejectionReason(`Sam's idea of 'casual Fridays' involved mandatory space suits.`); self.addRejectionReason(`Sam wanted to replace email with carrier pigeons for 'enhanced privacy'.`); self.addRejectionReason(`Sam suggested a 'zero gravity' work environment for 'out of this world' productivity.`); self.addRejectionReason(`Sam's proposal for a 'corporate retreat' was actually a trip to Mars.`); self.addRejectionReason(`Sam insisted on installing a slide instead of stairs for 'speedier transitions' between floors.`); self.addRejectionReason(`Sam's 'innovative' approach to meetings involved communicating solely through interpretive dance.`); self.addRejectionReason(`Sam believed every employee should have a personal robot assistant named 'Steve'.`); self.addRejectionReason(`Sam's budget plan included a line item for 'time machines - just in case'.`); self.addRejectionReason(`Sam's strategy for stress relief involved mandatory daily group hugs.`); self.addRejectionReason(`Sam wanted to replace all desks with hammocks for 'maximum relaxation'.`); self.addRejectionReason(`Sam's vision of a paperless office included abolishing toilet paper.`); self.addRejectionReason(`Sam's dress code policy included capes and superhero masks as 'confidence boosters'.`); self.addRejectionReason(`Sam's idea of team building was a 'survive the wilderness' weekend with only a compass and a water bottle.`); self.addRejectionReason(`Sam's health initiative replaced all snacks with raw broccoli and kale shakes.`); self.addRejectionReason(`Sam's 'efficient' 4-day workweek involved 20-hour workdays.`); self.addRejectionReason(`Sam's networking events were literal 'net-working' with trapeze and tightropes.`); self.addRejectionReason(`Sam's office redesign included a moat and drawbridge for 'security purposes'.`); self.addRejectionReason(`Sam's 'transparent' management style involved working in a glass cube in the center of the office.`); self.addRejectionReason(`Sam's motivational speeches were just recitations of epic poetry.`); self.addRejectionReason(`Sam's 'bring your own device' policy included anything from smartphones to smartfridges.`); self.addRejectionReason(`Sam's 'innovative' filing system was sorting documents by color rather than content.`); self.addRejectionReason(`Sam's idea of a 'flat hierarchy' was everyone working on the floor.`); self.addRejectionReason(`Sam's 'eco-friendly' transport policy involved company-wide unicycles.`); self.addRejectionReason(`Sam's 'cutting-edge' technology upgrades meant everyone got a laser pointer.`); self.addRejectionReason(`Sam's 'fiscal responsibility' involved paying bonuses in arcade tokens.`); self.addRejectionReason(`Sam's 'holistic approach' to IT support included Feng Shui arrangements for servers.`); self.addRejectionReason(`Sam's 'sustainable' coffee initiative involved grinding beans by hand.`); self.addRejectionReason(`Sam's 'team synergy' exercises included synchronized swimming in the company pool.`); LK.stageContainer.setBackgroundColor(0x000000); var background = self.createAsset('background', 'Background image', .5, .5); background.alpha = 0.5; background.x = 2048 / 2; background.y = 2732 / 2; self.addChild(background); var altman = self.addChild(new Altman()); altman.x = 2048 / 2; altman.y = 2732 / 2; altman.vx = 0; altman.vy = 0; var openAI = self.addChild(new OpenAI()); openAI.x = 150; openAI.y = 2732 / 2 - openAI.height / 2; var microsoft = self.addChild(new Microsoft()); microsoft.x = 2048 - microsoft.width + 150; microsoft.y = 2732 / 2 - microsoft.height / 2; var startMoving = false; var startMovingTimeout = LK.setTimeout(function () { startMoving = true; var angle; do { angle = Math.random() * Math.PI * 2; altman.vx = 10 * Math.cos(angle); altman.vy = 10 * Math.sin(angle); } while (Math.abs(altman.vx) < 3 || Math.abs(altman.vy) < 3); }, 500); var scoreLabel = new Text2('Rejections: 0', { size: 100, fill: '#ffffff', dropShadow: true, dropShadowColor: '#000000', dropShadowBlur: 4, dropShadowAngle: Math.PI / 6, dropShadowDistance: 6, weight: 800 }); self.score = 0; scoreLabel.anchor.set(0.5, 0); LK.gui.topCenter.addChild(scoreLabel); var rejectionReasonLabel = new Text2('', { size: 50, fill: '#ffffff', dropShadow: true, dropShadowColor: '#000000', dropShadowBlur: 4, dropShadowAngle: Math.PI / 6, dropShadowDistance: 6, weight: 800, align: 'center' }); rejectionReasonLabel.anchor.set(0.5, 1); LK.gui.bottom.addChild(rejectionReasonLabel); rejectionReasonLabel.y -= 50; LK.stage.on('move', function (obj) { var event = obj.event; var pos = event.getLocalPosition(self); if (pos.x < 1024) { openAI.controlY(pos.y); } else { microsoft.controlY(pos.y); } }); LK.on('tick', function () { if (startMoving) { altman.update(); } openAI.update(); microsoft.update(); if (altman.intersects(openAI) && altman.vx < 0) { var diffY = altman.y - openAI.y; altman.vx *= -1.1; altman.vy = diffY / openAI.height * 10; self.score += 1; scoreLabel.setText('Rejections: ' + self.score); var randomReason = self.rejectionReasons[Math.floor(Math.random() * self.rejectionReasons.length)]; rejectionReasonLabel.setText(randomReason); } if (altman.intersects(microsoft) && altman.vx > 0) { var diffY = altman.y - microsoft.y; altman.vx *= -1.1; altman.vy = diffY / microsoft.height * 10; self.score += 1; scoreLabel.setText('Rejections: ' + self.score); var randomReason = self.rejectionReasons[Math.floor(Math.random() * self.rejectionReasons.length)]; rejectionReasonLabel.setText(randomReason); } }); });
===================================================================
--- original.js
+++ change.js
@@ -201,18 +201,18 @@
openAI.update();
microsoft.update();
if (altman.intersects(openAI) && altman.vx < 0) {
var diffY = altman.y - openAI.y;
- altman.vx *= -1;
+ altman.vx *= -1.1;
altman.vy = diffY / openAI.height * 10;
self.score += 1;
scoreLabel.setText('Rejections: ' + self.score);
var randomReason = self.rejectionReasons[Math.floor(Math.random() * self.rejectionReasons.length)];
rejectionReasonLabel.setText(randomReason);
}
if (altman.intersects(microsoft) && altman.vx > 0) {
var diffY = altman.y - microsoft.y;
- altman.vx *= -1;
+ altman.vx *= -1.1;
altman.vy = diffY / microsoft.height * 10;
self.score += 1;
scoreLabel.setText('Rejections: ' + self.score);
var randomReason = self.rejectionReasons[Math.floor(Math.random() * self.rejectionReasons.length)];
sam altman head Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
openai logo inside of a pong paddle Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
microsoft logo inside of a pong paddle Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Awesome background showing AI Datacenter