You can have separate licences for your code and for your assets—that’s a very common thing to do. Just include a clear statement of what licence applies to what materials.
To tell people they can use, copy, and build on your work, but only for non-commercial purposes, you might use the Creative Commons Attribution-NonCommercial (CC BY-NC) licence. If you don’t want them building on it, but only sharing it as-is, the Creative Commons Attribution-NonCommercial-NoDerivatives (CC BY-NC-ND) licence may suit you.
(Note that CC licences aren’t recommended for use on software. You might instead choose a share-alike/copyleft licence, like the GNU GPL. This doesn’t forbid commercial use of your work, but it does make it difficult, because it’s hard to charge money for something you can get for free elsewhere! Or you could find a licence made for the purpose—I don’t know any off the top of my head, but I’m sure they exist.)
If you don’t want to give people permission to use your assets separate from your game, you can say exactly that, or use stock wording like “All rights reserved”.