Git Product home page Git Product logo

basicinstinct's Introduction

Listings: the game

notes:

--- broken/next todos: editor gets into self-edit break (key thing) snap to grid group and convert to "prop" collisions ten different flippin event systems... sensors don't un-listen.

  • git messages could be clues
  • make things proc gen? and scriptable with ItsBasic
  • everything in the world can be controlled with ItsBasic. name things?
  • JSON => itsbasic code and ITSBasic => JSON!
  • goal is not to teach BASIC: player should alwyas be out of their depth, and has no help from anyone else in the gaem. Fumbling always forward and learning stuff the hardest of hard ways.
  • World can be controlled by BASIC - but also... moving things in the world could set memory locations in the computer!

Rules engine? how could it work?

*** Just copy Blender idea... Sensors -> Controllers -> Actuators

EG: Always sensor. The Always sensor is used for things that need to be done every logic tick, or at every x logic tick, or at start-up (with Tap).

var always5 = Always(5 ticks) -> var always3 = Always(3 ticks) ->

cube : always3 -> | + -> toggle (20) : always5 -> |

--- produces stream: fizzbuzz

Property sensor would be good: The Property sensor detect changes in the objects properties

class Sensor {} class Always extends Sensor { constructor () } //class Property extends Sensor()

Things in game...

  • player

  • program. onload, onparse, onstart, onbreak?

    • hasAST, assertIsTrue...

    if(assertIsTrue(prog, x=1))...

if Player enters bedroom

  • if has diskDriveInInventory -> addDiskDriveToComputer;removeDiskDriveFromINventory.
document.onload = trigger('WorldCreate');

rule: event: 'WorldCreate', actions: 'GoToBedroom'

document.on('GoToLocation', (data) => {
  game.scene = new Room(data);
});

class Room(data) { trigger(data.name + 'RoomLoaded') }

event: 'BedroomLoaded',

onWorldCreated => add(ClassicAchievement)

  1. ClassicAchievement: astIsClassic. [HP++, bedroomDoorOpens, remove(LockedBedroom), add(ClassicAchievement+)]

  2. LockedBedroom: triggerDoor [msg("Not 'til you do your homework")]

  3. ClassicAchievement+: astIsClassic + string is different [HP++]

  4. AddQuizProg: triggerMag1 [msg("has been added!"), addToGlobalProgBook(quizCode), add(QuizAchievement)]

  5. QuizAchievement: astIsQuiz [HP+, triggerGlitchTeaser]

basicinstinct's People

Contributors

mrspeaker avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.