fuz / jspkmnengine

Javascript PKMN Game Engine
11 stars 3 forks source link

Please show some tutorial for installation. #1

Open end1an opened 8 years ago

end1an commented 8 years ago

Hello, My name is tastomy and i interesting in JSPK project. I think it would help a lot if you show some tutorial for installation. I use mac OS X for node can you help me with install this project please.

fuz commented 8 years ago

Hello Tastomy,

Great to hear about your interest in the project!

If you open the file JSPKMNe.html[1]

The engine should load. Clicking new game will start a game mode listed in, gamemodes.js,[2] you should see how the game starts off.

Clicking 'toggle devmode' should put you into development mode. You can mark objects as objects here by clicking items. The created map can then be exported and pasted back into tiles.js

It has been a long time since I have tried out the codebase. I ought to write a tutorial, can you try the above and if you get stuck, I'll investigate

On Thu, Jan 7, 2016, at 08:24 AM, Tat Sangsomruang wrote:

Hello, My name is tastomy and i interesting in JSPK project. I think it would help a lot if you show some tutorial for installation. I use mac OS X for node can you help me with install this project please.

— Reply to this email directly or view it on GitHub[3].

Links:

  1. https://github.com/fuz/jspkmnengine/blob/master/JSPKMNe.html
  2. https://github.com/fuz/jspkmnengine/blob/master/gamemodes.js
  3. https://github.com/fuz/jspkmnengine/issues/1
fuz commented 8 years ago

Looks like there are some missing components. I'll fix it this weekend. Sorry about this.

fuz commented 8 years ago

Hey tastomy

I have fixed the biggest issues.

The project is unfinished but if you have a play with the engine, you should get a feel for what is done and what isn't.

If you pull the project and open JSPKMNe.html in your browser. Please note the buttons 'Character Editor', 'Pokemon Editor' and 'Map Editor' do not do anything.

Use wasd to walk around and full stop (.) to interact.

You will see the title screen.

I recommend you click 1- map and have a walk around. There is a trainer set up on this map you can walk in front of. I should clarify that combat was never finished. When you get into the battle, you can select an attack but there is no AI for the enemy, so you need to click 'runcode fakeai' in the blue bar on the right to get the opponent to select an attack.

The code to continue a battle was never finished.

You can also start a new game and be spawned inside a laboratory.

If you want to modify maps: a) click 1- maps b) click 'toggle devmode' c) click a tree an you get a dropdown menu d) select tree from the menu e) in the bottom right, a textbox will contain lots of numbers and commas. This is the map data you have generated. f) to test the map you just created, click 'Load Tile' g) paste the tile data into tiles.js to make the map load when you refresh the engine

Again, I am sorry the engine is not complete but it should be fun to play with.

Take a look at exemplar_test.js to see how NPCs are set up.

Press enter to get into the inventory.

end1an commented 8 years ago

Sorry for slowly reply, I need to say thank you for your clearly tutorial reply, I will try to setup my pokemon project and if I have a problem I will tell you. I hope this project will be alive again :)

Best regards