I am working with another programmer and we are creating a "mini game" of sorts.
Its a very simple premise.
Elian script is an english alphabet cypher, the goal is to press the corresponding letter when the symbol comes on the screen.
I am using random images for the time being in place of the actual letter images im going to create for the project.
My next step is creating the system that allows the player to effect things.
Using an array for the letters, but from there im pretty stuck if anyone can offer any help.
Its a very simple premise.
Elian script is an english alphabet cypher, the goal is to press the corresponding letter when the symbol comes on the screen.
Code:
(function() {
var Alias_createUpperLayer = Spriteset_Map.prototype.createUpperLayer;
Spriteset_Map.prototype.createUpperLayer = function() {
Alias_createUpperLayer.call(this);
this.names = ['!Flame','!Door1','!Door2','Actor1'] ;
this.index = 0;
this.time = 0;
var bitmap = ImageManager.loadSkunk('!Flame');
this.sprite = new Sprite(bitmap);
this.addChild(this.sprite)
};
var Alias_update = Spriteset_Map.prototype.update;
Spriteset_Map.prototype.update = function() {
Alias_update.call(this);
this.time ++;
if (this.time > 60) {
this.time = 0;
this.index = Math.randomInt(this.names.length);
}
this.sprite.bitmap = ImageManager.loadSkunk(
this.names[this.index]
)
}
ImageManager.loadSkunk = function(filename, hue) {
return this.loadBitmap('img/skunk/letters/', filename, hue, true);
};
})();
function Scene_LetterGame() {
this.initialize.apply(this, arguments);
}
Scene_LetterGame.prototype = Object.create(Scene_Base.prototype);
Scene_LetterGame.prototype.constructor = Scene_LetterGame;
(function($) {
$.initialize =function() {
}
})(Scene_LetterGame.prototype);
I am using random images for the time being in place of the actual letter images im going to create for the project.
My next step is creating the system that allows the player to effect things.
Using an array for the letters, but from there im pretty stuck if anyone can offer any help.