ajout coffre
This commit is contained in:
parent
1ba6c89ba2
commit
3d5da905be
8 changed files with 43 additions and 10 deletions
|
@ -12,6 +12,7 @@
|
||||||
{"id":{"name":"rWin","path":"rooms/rWin/rWin.yy",},"order":14,},
|
{"id":{"name":"rWin","path":"rooms/rWin/rWin.yy",},"order":14,},
|
||||||
{"id":{"name":"oGame","path":"objects/oGame/oGame.yy",},"order":2,},
|
{"id":{"name":"oGame","path":"objects/oGame/oGame.yy",},"order":2,},
|
||||||
{"id":{"name":"TileSet1","path":"tilesets/TileSet1/TileSet1.yy",},"order":0,},
|
{"id":{"name":"TileSet1","path":"tilesets/TileSet1/TileSet1.yy",},"order":0,},
|
||||||
|
{"id":{"name":"oChest","path":"objects/oChest/oChest.yy",},"order":7,},
|
||||||
{"id":{"name":"sWalls","path":"sprites/sWalls/sWalls.yy",},"order":5,},
|
{"id":{"name":"sWalls","path":"sprites/sWalls/sWalls.yy",},"order":5,},
|
||||||
{"id":{"name":"r11","path":"rooms/r11/r11.yy",},"order":15,},
|
{"id":{"name":"r11","path":"rooms/r11/r11.yy",},"order":15,},
|
||||||
{"id":{"name":"rOver","path":"rooms/rOver/rOver.yy",},"order":13,},
|
{"id":{"name":"rOver","path":"rooms/rOver/rOver.yy",},"order":13,},
|
||||||
|
|
2
objects/oChest/Collision_oPlayer.gml
Normal file
2
objects/oChest/Collision_oPlayer.gml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
if (global.weapon < 3) global.weapon ++;
|
||||||
|
instance_destroy(self);
|
36
objects/oChest/oChest.yy
Normal file
36
objects/oChest/oChest.yy
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
{
|
||||||
|
"spriteId": {
|
||||||
|
"name": "sCoffre",
|
||||||
|
"path": "sprites/sCoffre/sCoffre.yy",
|
||||||
|
},
|
||||||
|
"solid": false,
|
||||||
|
"visible": true,
|
||||||
|
"spriteMaskId": null,
|
||||||
|
"persistent": false,
|
||||||
|
"parentObjectId": null,
|
||||||
|
"physicsObject": false,
|
||||||
|
"physicsSensor": false,
|
||||||
|
"physicsShape": 1,
|
||||||
|
"physicsGroup": 1,
|
||||||
|
"physicsDensity": 0.5,
|
||||||
|
"physicsRestitution": 0.1,
|
||||||
|
"physicsLinearDamping": 0.1,
|
||||||
|
"physicsAngularDamping": 0.1,
|
||||||
|
"physicsFriction": 0.2,
|
||||||
|
"physicsStartAwake": true,
|
||||||
|
"physicsKinematic": false,
|
||||||
|
"physicsShapePoints": [],
|
||||||
|
"eventList": [
|
||||||
|
{"isDnD":false,"eventNum":0,"eventType":4,"collisionObjectId":{"name":"oPlayer","path":"objects/oPlayer/oPlayer.yy",},"parent":{"name":"oChest","path":"objects/oChest/oChest.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
|
||||||
|
],
|
||||||
|
"properties": [],
|
||||||
|
"overriddenProperties": [],
|
||||||
|
"parent": {
|
||||||
|
"name": "Objects",
|
||||||
|
"path": "folders/Objects.yy",
|
||||||
|
},
|
||||||
|
"resourceVersion": "1.0",
|
||||||
|
"name": "oChest",
|
||||||
|
"tags": [],
|
||||||
|
"resourceType": "GMObject",
|
||||||
|
}
|
|
@ -1,8 +0,0 @@
|
||||||
for (i = 0; i < 4; i++)
|
|
||||||
{
|
|
||||||
for(j = 0; j < 4; j++)
|
|
||||||
{
|
|
||||||
tableau[i, j] = irandom(10);
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
1
objects/oGame/KeyRelease_82.gml
Normal file
1
objects/oGame/KeyRelease_82.gml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
game_restart();
|
|
@ -46,6 +46,5 @@ with (oPlayer) {
|
||||||
if place_meeting(x,y,oMaudit) {
|
if place_meeting(x,y,oMaudit) {
|
||||||
global.minutes = 5;
|
global.minutes = 5;
|
||||||
room_goto(rWin);
|
room_goto(rWin);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
"eventList": [
|
"eventList": [
|
||||||
{"isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,"parent":{"name":"oGame","path":"objects/oGame/oGame.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
|
{"isDnD":false,"eventNum":64,"eventType":8,"collisionObjectId":null,"parent":{"name":"oGame","path":"objects/oGame/oGame.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
|
||||||
{"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"parent":{"name":"oGame","path":"objects/oGame/oGame.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
|
{"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"parent":{"name":"oGame","path":"objects/oGame/oGame.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
|
||||||
{"isDnD":false,"eventNum":69,"eventType":9,"collisionObjectId":null,"parent":{"name":"oGame","path":"objects/oGame/oGame.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
|
|
||||||
{"isDnD":false,"eventNum":0,"eventType":3,"collisionObjectId":null,"parent":{"name":"oGame","path":"objects/oGame/oGame.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
|
{"isDnD":false,"eventNum":0,"eventType":3,"collisionObjectId":null,"parent":{"name":"oGame","path":"objects/oGame/oGame.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
|
||||||
|
{"isDnD":false,"eventNum":82,"eventType":10,"collisionObjectId":null,"parent":{"name":"oGame","path":"objects/oGame/oGame.yy",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},
|
||||||
],
|
],
|
||||||
"properties": [],
|
"properties": [],
|
||||||
"overriddenProperties": [],
|
"overriddenProperties": [],
|
||||||
|
|
|
@ -89,6 +89,7 @@
|
||||||
{"properties":[],"isDnd":false,"objectId":{"name":"oTransition","path":"objects/oTransition/oTransition.yy",},"inheritCode":true,"hasCreationCode":false,"colour":4294967295,"rotation":0.0,"scaleX":1.0,"scaleY":1.0,"imageIndex":0,"imageSpeed":1.0,"inheritedItemId":{"name":"inst_33482310","path":"rooms/rType/rType.yy",},"frozen":false,"ignore":false,"inheritItemSettings":true,"x":208.0,"y":16.0,"resourceVersion":"1.0","name":"inst_33482310","tags":[],"resourceType":"GMRInstance",},
|
{"properties":[],"isDnd":false,"objectId":{"name":"oTransition","path":"objects/oTransition/oTransition.yy",},"inheritCode":true,"hasCreationCode":false,"colour":4294967295,"rotation":0.0,"scaleX":1.0,"scaleY":1.0,"imageIndex":0,"imageSpeed":1.0,"inheritedItemId":{"name":"inst_33482310","path":"rooms/rType/rType.yy",},"frozen":false,"ignore":false,"inheritItemSettings":true,"x":208.0,"y":16.0,"resourceVersion":"1.0","name":"inst_33482310","tags":[],"resourceType":"GMRInstance",},
|
||||||
{"properties":[],"isDnd":false,"objectId":{"name":"oTransition","path":"objects/oTransition/oTransition.yy",},"inheritCode":true,"hasCreationCode":true,"colour":4294967295,"rotation":0.0,"scaleX":1.0,"scaleY":1.0,"imageIndex":0,"imageSpeed":1.0,"inheritedItemId":{"name":"inst_2CF67492","path":"rooms/rType/rType.yy",},"frozen":false,"ignore":false,"inheritItemSettings":true,"x":208.0,"y":208.0,"resourceVersion":"1.0","name":"inst_2CF67492","tags":[],"resourceType":"GMRInstance",},
|
{"properties":[],"isDnd":false,"objectId":{"name":"oTransition","path":"objects/oTransition/oTransition.yy",},"inheritCode":true,"hasCreationCode":true,"colour":4294967295,"rotation":0.0,"scaleX":1.0,"scaleY":1.0,"imageIndex":0,"imageSpeed":1.0,"inheritedItemId":{"name":"inst_2CF67492","path":"rooms/rType/rType.yy",},"frozen":false,"ignore":false,"inheritItemSettings":true,"x":208.0,"y":208.0,"resourceVersion":"1.0","name":"inst_2CF67492","tags":[],"resourceType":"GMRInstance",},
|
||||||
{"properties":[],"isDnd":false,"objectId":{"name":"oTransition","path":"objects/oTransition/oTransition.yy",},"inheritCode":true,"hasCreationCode":true,"colour":4294967295,"rotation":0.0,"scaleX":1.0,"scaleY":1.0,"imageIndex":0,"imageSpeed":1.0,"inheritedItemId":{"name":"inst_DF7EF93","path":"rooms/rType/rType.yy",},"frozen":false,"ignore":false,"inheritItemSettings":true,"x":16.0,"y":112.0,"resourceVersion":"1.0","name":"inst_DF7EF93","tags":[],"resourceType":"GMRInstance",},
|
{"properties":[],"isDnd":false,"objectId":{"name":"oTransition","path":"objects/oTransition/oTransition.yy",},"inheritCode":true,"hasCreationCode":true,"colour":4294967295,"rotation":0.0,"scaleX":1.0,"scaleY":1.0,"imageIndex":0,"imageSpeed":1.0,"inheritedItemId":{"name":"inst_DF7EF93","path":"rooms/rType/rType.yy",},"frozen":false,"ignore":false,"inheritItemSettings":true,"x":16.0,"y":112.0,"resourceVersion":"1.0","name":"inst_DF7EF93","tags":[],"resourceType":"GMRInstance",},
|
||||||
|
{"properties":[],"isDnd":false,"objectId":{"name":"oChest","path":"objects/oChest/oChest.yy",},"inheritCode":false,"hasCreationCode":false,"colour":4294967295,"rotation":0.0,"scaleX":1.0,"scaleY":1.0,"imageIndex":0,"imageSpeed":1.0,"inheritedItemId":null,"frozen":false,"ignore":false,"inheritItemSettings":false,"x":208.0,"y":112.0,"resourceVersion":"1.0","name":"inst_3E244709","tags":[],"resourceType":"GMRInstance",},
|
||||||
],"visible":true,"depth":0,"userdefinedDepth":false,"inheritLayerDepth":true,"inheritLayerSettings":true,"gridX":16,"gridY":16,"layers":[],"hierarchyFrozen":false,"resourceVersion":"1.0","name":"Instances","tags":[],"resourceType":"GMRInstanceLayer",},
|
],"visible":true,"depth":0,"userdefinedDepth":false,"inheritLayerDepth":true,"inheritLayerSettings":true,"gridX":16,"gridY":16,"layers":[],"hierarchyFrozen":false,"resourceVersion":"1.0","name":"Instances","tags":[],"resourceType":"GMRInstanceLayer",},
|
||||||
{"assets":[],"visible":true,"depth":100,"userdefinedDepth":false,"inheritLayerDepth":true,"inheritLayerSettings":true,"gridX":16,"gridY":16,"layers":[],"hierarchyFrozen":false,"resourceVersion":"1.0","name":"Assets_1","tags":[],"resourceType":"GMRAssetLayer",},
|
{"assets":[],"visible":true,"depth":100,"userdefinedDepth":false,"inheritLayerDepth":true,"inheritLayerSettings":true,"gridX":16,"gridY":16,"layers":[],"hierarchyFrozen":false,"resourceVersion":"1.0","name":"Assets_1","tags":[],"resourceType":"GMRAssetLayer",},
|
||||||
{"tilesetId":{"name":"TileSet1","path":"tilesets/TileSet1/TileSet1.yy",},"x":0,"y":0,"tiles":{"SerialiseWidth":27,"SerialiseHeight":15,"TileSerialiseData":[
|
{"tilesetId":{"name":"TileSet1","path":"tilesets/TileSet1/TileSet1.yy",},"x":0,"y":0,"tiles":{"SerialiseWidth":27,"SerialiseHeight":15,"TileSerialiseData":[
|
||||||
|
@ -186,6 +187,7 @@
|
||||||
{"name":"inst_33482310","path":"rooms/r9/r9.yy",},
|
{"name":"inst_33482310","path":"rooms/r9/r9.yy",},
|
||||||
{"name":"inst_2CF67492","path":"rooms/r9/r9.yy",},
|
{"name":"inst_2CF67492","path":"rooms/r9/r9.yy",},
|
||||||
{"name":"inst_DF7EF93","path":"rooms/r9/r9.yy",},
|
{"name":"inst_DF7EF93","path":"rooms/r9/r9.yy",},
|
||||||
|
{"name":"inst_3E244709","path":"rooms/r9/r9.yy",},
|
||||||
],
|
],
|
||||||
"inheritCreationOrder": true,
|
"inheritCreationOrder": true,
|
||||||
"sequenceId": null,
|
"sequenceId": null,
|
||||||
|
|
Reference in a new issue