Witam serdecznie!
Ponieważ mam problem pisze tu z prośbą o to żeby ktoś pomógł mi zrozumieć. A mianowicie pobrałem paczkę RPGJS (http://skrypty.klocus.pl/2013/07/rpg-js.html) rozpakowałem a żeby ją otworzyć no to znalazłem oto taką instrukcję (https://github.com/RSamaium/RPG-JS/wiki/02-Installation).
Mianowicie wydaje mi się że wszystko CHYBA dobrze zrobiłem. Kod index.html
<html>
<?php
function loadRpg ( ) {
var rpg = new RPG ( "canvas_rpg" ) ;
}
?>
<head>
<title>GRA</title>
<script src="rpgjs-2.0.0.min.js"></script>
</head>
<body onLoad="loadRpg()">
<canvas id="canvas_rpg" width="640px" height="480px"></canvas>
</body>
</html>
No ale niestety zostają po włączeniu wyświetlone takie oto błędy:
Uncaught TypeError: Cannot read property 'create' of undefined
at rpgjs-2.0.0.min.js:11
index.html:12 Uncaught ReferenceError: loadRpg is not defined
at onload (index.html:12)
Oco może chodzić? jak to zrobić? proszę o pomoc! :)