Merge branch 'dev' of https://git.gnous.eu/RSV_Studio/Yogscast_Game_Jam_2020.git
This commit is contained in:
commit
767ebe9000
5 changed files with 45 additions and 2 deletions
13
objects/oMonster/Create_0.gml
Normal file
13
objects/oMonster/Create_0.gml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
dureeDeplacement = 120;
|
||||||
|
|
||||||
|
deplaceHorizontal = 0;
|
||||||
|
deplaceVertical = 0;
|
||||||
|
|
||||||
|
dir = random(3);
|
||||||
|
|
||||||
|
switch(dir) {
|
||||||
|
case 0 : deplacementVertical = 1; break;
|
||||||
|
case 1 : deplacementHorizontal = 1; break;
|
||||||
|
case 2 : deplacementVertical = -1; break;
|
||||||
|
case 3 : deplacementHorizontal = -1; break;
|
||||||
|
}
|
1
objects/oMonster/Draw_64.gml
Normal file
1
objects/oMonster/Draw_64.gml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
draw_text(16,16,dureeDeplacement);
|
19
objects/oMonster/Step_0.gml
Normal file
19
objects/oMonster/Step_0.gml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
// deplacement monstre
|
||||||
|
|
||||||
|
if dureeDeplacement != 0 {
|
||||||
|
x += deplaceHorizontal;
|
||||||
|
y += deplaceVertical;
|
||||||
|
dureeDeplacement --;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
dir = random(3);
|
||||||
|
|
||||||
|
switch(dir) {
|
||||||
|
case 0 : deplacementVertical = 1; break;
|
||||||
|
case 1 : deplacementHorizontal = 1; break;
|
||||||
|
case 2 : deplacementVertical = -1; break;
|
||||||
|
case 3 : deplacementHorizontal = -1; break;
|
||||||
|
}
|
||||||
|
|
||||||
|
dureeDeplacement = 120;
|
||||||
|
}
|
|
@ -17,8 +17,16 @@
|
||||||
"physicsStartAwake": true,
|
"physicsStartAwake": true,
|
||||||
"physicsKinematic": false,
|
"physicsKinematic": false,
|
||||||
"physicsShapePoints": [],
|
"physicsShapePoints": [],
|
||||||
"eventList": [],
|
"eventList": [
|
||||||
"properties": [],
|
{"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"parent":{"name":"oMonster","path":"objects/oMonster/oMonster.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
|
||||||
|
{"isDnD":false,"eventNum":0,"eventType":3,"collisionObjectId":null,"parent":{"name":"oMonster","path":"objects/oMonster/oMonster.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
|
||||||
|
{"isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,"parent":{"name":"oMonster","path":"objects/oMonster/oMonster.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
|
||||||
|
],
|
||||||
|
"properties": [
|
||||||
|
{"varType":0,"value":"0","rangeEnabled":false,"rangeMin":0.0,"rangeMax":10.0,"listItems":[],"multiselect":false,"filters":[],"resourceVersion":"1.0","name":"hp","tags":[],"resourceType":"GMObjectProperty",},
|
||||||
|
{"varType":0,"value":"0","rangeEnabled":false,"rangeMin":0.0,"rangeMax":10.0,"listItems":[],"multiselect":false,"filters":[],"resourceVersion":"1.0","name":"speed","tags":[],"resourceType":"GMObjectProperty",},
|
||||||
|
{"varType":0,"value":"0","rangeEnabled":false,"rangeMin":0.0,"rangeMax":10.0,"listItems":[],"multiselect":false,"filters":[],"resourceVersion":"1.0","name":"attack","tags":[],"resourceType":"GMObjectProperty",},
|
||||||
|
],
|
||||||
"overriddenProperties": [],
|
"overriddenProperties": [],
|
||||||
"parent": {
|
"parent": {
|
||||||
"name": "Entity",
|
"name": "Entity",
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
"layers": [
|
"layers": [
|
||||||
{"instances":[
|
{"instances":[
|
||||||
{"properties":[],"isDnd":false,"objectId":{"name":"oPlayer","path":"objects/oPlayer/oPlayer.yy",},"inheritCode":false,"hasCreationCode":false,"colour":4294967295,"rotation":0.0,"scaleX":1.0,"scaleY":1.0,"imageIndex":0,"imageSpeed":0.0,"inheritedItemId":null,"frozen":false,"ignore":false,"inheritItemSettings":false,"x":160.0,"y":64.0,"resourceVersion":"1.0","name":"inst_564B33A2","tags":[],"resourceType":"GMRInstance",},
|
{"properties":[],"isDnd":false,"objectId":{"name":"oPlayer","path":"objects/oPlayer/oPlayer.yy",},"inheritCode":false,"hasCreationCode":false,"colour":4294967295,"rotation":0.0,"scaleX":1.0,"scaleY":1.0,"imageIndex":0,"imageSpeed":0.0,"inheritedItemId":null,"frozen":false,"ignore":false,"inheritItemSettings":false,"x":160.0,"y":64.0,"resourceVersion":"1.0","name":"inst_564B33A2","tags":[],"resourceType":"GMRInstance",},
|
||||||
|
{"properties":[],"isDnd":false,"objectId":{"name":"oMonsterMelee","path":"objects/oMonsterMelee/oMonsterMelee.yy",},"inheritCode":false,"hasCreationCode":false,"colour":4294967295,"rotation":0.0,"scaleX":1.0,"scaleY":1.0,"imageIndex":0,"imageSpeed":0.0,"inheritedItemId":null,"frozen":false,"ignore":false,"inheritItemSettings":false,"x":192.0,"y":96.0,"resourceVersion":"1.0","name":"inst_601A75EA","tags":[],"resourceType":"GMRInstance",},
|
||||||
],"visible":true,"depth":0,"userdefinedDepth":false,"inheritLayerDepth":false,"inheritLayerSettings":false,"gridX":16,"gridY":16,"layers":[],"hierarchyFrozen":false,"resourceVersion":"1.0","name":"Instances","tags":[],"resourceType":"GMRInstanceLayer",},
|
],"visible":true,"depth":0,"userdefinedDepth":false,"inheritLayerDepth":false,"inheritLayerSettings":false,"gridX":16,"gridY":16,"layers":[],"hierarchyFrozen":false,"resourceVersion":"1.0","name":"Instances","tags":[],"resourceType":"GMRInstanceLayer",},
|
||||||
{"spriteId":null,"colour":4289967027,"x":0,"y":0,"htiled":false,"vtiled":false,"hspeed":0.0,"vspeed":0.0,"stretch":false,"animationFPS":15.0,"animationSpeedType":0,"userdefinedAnimFPS":false,"visible":true,"depth":100,"userdefinedDepth":false,"inheritLayerDepth":false,"inheritLayerSettings":false,"gridX":32,"gridY":32,"layers":[],"hierarchyFrozen":false,"resourceVersion":"1.0","name":"Background","tags":[],"resourceType":"GMRBackgroundLayer",},
|
{"spriteId":null,"colour":4289967027,"x":0,"y":0,"htiled":false,"vtiled":false,"hspeed":0.0,"vspeed":0.0,"stretch":false,"animationFPS":15.0,"animationSpeedType":0,"userdefinedAnimFPS":false,"visible":true,"depth":100,"userdefinedDepth":false,"inheritLayerDepth":false,"inheritLayerSettings":false,"gridX":32,"gridY":32,"layers":[],"hierarchyFrozen":false,"resourceVersion":"1.0","name":"Background","tags":[],"resourceType":"GMRBackgroundLayer",},
|
||||||
],
|
],
|
||||||
|
@ -23,6 +24,7 @@
|
||||||
"inheritCode": false,
|
"inheritCode": false,
|
||||||
"instanceCreationOrder": [
|
"instanceCreationOrder": [
|
||||||
{"name":"inst_564B33A2","path":"rooms/rTest/rTest.yy",},
|
{"name":"inst_564B33A2","path":"rooms/rTest/rTest.yy",},
|
||||||
|
{"name":"inst_601A75EA","path":"rooms/rTest/rTest.yy",},
|
||||||
],
|
],
|
||||||
"inheritCreationOrder": false,
|
"inheritCreationOrder": false,
|
||||||
"sequenceId": null,
|
"sequenceId": null,
|
||||||
|
|
Reference in a new issue