mirror of
https://github.com/Febbweiss/sis.git
synced 2026-03-05 06:35:37 +00:00
Feature: add 2 kinds of aliens
Refactoring: better way to manage aliens Refatcoring: creating models and animations folders to manage independent files
This commit is contained in:
@@ -126,6 +126,9 @@ $(function(){
|
||||
posy: PLAYGROUND_HEIGHT - HUD_HEIGHT - 50
|
||||
})
|
||||
.end()
|
||||
.addSprite("alienA", $.extend({posx : 50, posy : 300}, ALIENS[0]))
|
||||
.addSprite("alienB", $.extend({posx : 50, posy : 400}, ALIENS[1]))
|
||||
.addSprite("alienC", $.extend({posx : 50, posy : 500}, ALIENS[2]))
|
||||
.addSprite("explosion", {
|
||||
width: 64,
|
||||
height: 64,
|
||||
@@ -190,6 +193,9 @@ $(function(){
|
||||
.end()
|
||||
;
|
||||
|
||||
$("#alienA").addClass("alien");
|
||||
$("#alienB").addClass("alien");
|
||||
$("#alienC").addClass("alien");
|
||||
$("#ground").css("background-color", "brown");
|
||||
$("#levelLbl").append("Level").lettering();
|
||||
$("#level").append("0").lettering();
|
||||
|
||||
Reference in New Issue
Block a user