Start a new sketch. In the first tab, copy the first block of code you see on the Mario tutorial.
Save that. Don't try to run it yet - you have to add the engine to it.
The easiest way to do that is to add a new tab. Use the small down arrow button next to the sketch name, just below the save button. Give it a name and open that new tab.
Now copy and paste the entire text of codebase.pde into that tab.
Save it again. Now try running it. You should be able to follow along with the Mario tutorial from there.
Thanks for help guys... Can you suggest me any engin or something like that.. i want to make project where i will playy as player collecting coins and trying to dodge enmies (something like mario)... Good night :)
Well, you could write your own game. Usually that involves writing a "game engine" too - and that's what makes it difficult. Following along with the above guide would be much, much easier.
Answers
in my understanding you are referring to this:
http://processingjs.nihongoresources.com/test/PjsGameEngine/docs/tutorial/basic.html
the lib can be found here:
http://processingjs.nihongoresources.com/test/PjsGameEngine/docs/tutorial/codebase.pde
basic explanation is here
http://processingjs.nihongoresources.com/test/PjsGameEngine/docs/tutorial/basic.html
Mario is here:
http://processingjs.nihongoresources.com/test/PjsGameEngine/docs/tutorial/mario.html
Yes chris... But how can i use that engine? -(Thanks for fast reply):)
basic explanation is here
http://processingjs.nihongoresources.com/test/PjsGameEngine/docs/tutorial/basic.html
Sorry if im stupid but i cant see how to use that.. when i copied that LEVEL thing and tried to run it , processing doesnt know what 'level' is
Do i just copy the whole code and just try to modify what i need? I never used engines..
Did you ask it to make a Level, or a level?
The codebase.pde that you see IS the engine.
Start a new sketch. In the first tab, copy the first block of code you see on the Mario tutorial.
Save that. Don't try to run it yet - you have to add the engine to it.
The easiest way to do that is to add a new tab. Use the small down arrow button next to the sketch name, just below the save button. Give it a name and open that new tab.
Now copy and paste the entire text of codebase.pde into that tab.
Save it again. Now try running it. You should be able to follow along with the Mario tutorial from there.
I tried making the test game but it says "can't find addScreenLayer"
also, it's very inconvenient to copy all the code pieces together because of the line numbers.
also, it is not a classical library
Thanks for help guys... Can you suggest me any engin or something like that.. i want to make project where i will playy as player collecting coins and trying to dodge enmies (something like mario)... Good night :)
Well, you could write your own game. Usually that involves writing a "game engine" too - and that's what makes it difficult. Following along with the above guide would be much, much easier.
you can write the person from
http://processingjs.nihongoresources.com/test/PjsGameEngine/docs/tutorial/basic.html
he is a very nice guy
it's a tutorial, maybe he can send you the test program as a running program
but he explains it well
basically you have to check in the level and the player etc. into the engine to make it run
you need to stitch together the pieces from
http://processingjs.nihongoresources.com/test/PjsGameEngine/docs/tutorial/basic.html
and combine it with the lib...
but as I said, I had a error with addScreenLayer
Thats why i asked for another engine , when you had that problem..
as said ask the guy for advice for that problem ...
How can i message him ?
http://www.nihongoresources.com/general/contact.html