Jump to content

Need help with creating a map area


radishrob
 Share

Recommended Posts

I'm quite inexperienced so sorry in advance if I'm not being clear what I mean.

I've been playing around with pixi starting to make a 2D space shooter, I got as far as rendering a sprite, plotting some stars across the width/height of the screen, getting it to rotate towards the cursor and firing bullets with the correct vector and rotation, and some basic position change on wasd keystrokes.

What's stumped me is trying to create a container to use as a traversable map area, I want my ship to stay centered in the screen and the map to move around it on position change. I tried assigning a container dimensions, positioning that and adding the sprite to that with the star plot, but it just messes up everything I did so far. I'd appreciate any help with that or getting pointed to any resources. Thanks

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.
Note: Your post will require moderator approval before it will be visible.

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.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...