Jump to content
MakeWebGames

7 Hours of learning jQuery = this.


LordDan

Recommended Posts

Hey!

I just spent around 7 hours learning jQuery for the first time and ended up with an RPG World.

Quite surprised how easy jQuery is and how quickly I picked it up. My code is a bit messy but once I finish I should know enough to

be able to clean it up and improve on it more.

Anyway, I'm just interested to see what ya'll think of my noob start to jQuery. Also, if there is any

specific jQuery books on Amazon or any decent jQuery articles you think I could learn something from

please let me know. I want to continue to learn this stuff.

Here is the result of my learning: RPG World Map Prototype

It's built up in layers:

 

  • Ground Layer (Terrain Tiles)
  • Objects Layer (Anything above terrain - Bushes/Signpost)
  • Player Sprite (Me/You, obviously)
  • Overhead Object Layer (Anything that needs to be above our sprite - walk around the lamp-post to see)
  • Events Layer (Trigger something - Step in "front" of the signpost to see)

 

It seems to work IE8, Firefox 2+, Opera 9+, Chrome, Safari 3+ - Only IE6/7 have positioning issues.

Movement: Arrow Keys (Will add WASD later)

Feedback? Remarks? Noob Bashes and Insults? :S

Link to comment
Share on other sites

I just added Wildlife (Birds) to the map, it looks good, but the sprite "sometimes" doesn't change so it looks like the birds are flying backwards on occasion. So far I only have basic direction detection. Can anyone with JS/jQuery knowledge think of anything to make the directions better? You can see the Birds yourself on the link in my original post.

curY and curX are the current tile position of the individual bird, they are simply grid ID's. (3x-5y, 6x-2y etc) newX and newY are then simply randomised.

[Edit: Fixed it, forgot to update curX and curY after the wildlife had finished it's movement. Could still be improved though]

[Edit: Completely fixed, the birds should fly around accurately now! :3]

[Credit: Wildlife inspired by a_bertrands NEAB]

Link to comment
Share on other sites

  • 2 weeks later...
Your demo isn't working. I'm certainly interested as jQuery is one of the frameworks I've got on my list to look into for building a from-the-scratch game....

Yeah, I took it down because I am rebuilding it based on some advice from a_bertrand :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...