Pages: [1]
  Print  
Author Topic: Adding New Enemies  (Read 754 times)
Daedalus40
Shoot
*
Posts: 10


View Profile
« on: August 02, 2012, 11:23:38 AM »

Hello. Sorry if I didn't know whether to post this in general or the source subforum but...

I've been looking at the Spelunky code lately and I have many ideas for enemies in the game (about 40 of them). I am an art specialist so I can make sprites no problem, but I'm terrible with code and programming.

Is there a tutorial available on how enemies work or how you can add them? Thanks in advance.
Logged
halibabica
Mossy
*
Posts: 1921


*whipcrack*


View Profile WWW Email
« Reply #1 on: August 02, 2012, 11:30:50 AM »

There aren't really any tutorials, and unless you want them to act the same as existing enemies, there's no easy way to do it. It's best to start by making a copy of an enemy that's similar to the one you're adding, then make changes to its code. Sadly, spriting them is the 'easy' part.
Logged

Sometimes I wonder if I like Spelunky too much.
ManTrap mod - Tastes Like Spelunky
Hand-drawn comic - Spelunkying
KarjamP
Mossy
*
Posts: 2169


Meet Miijam!


View Profile Email
« Reply #2 on: August 02, 2012, 12:45:03 PM »

Should be moved to the "Source" subforums.
Logged

Meet Bodyless!

3DS friendcode: 4210 - 4681 - 1626



Join Dropbox!
Nathan Cash
Mossy
*
Posts: 4606



View Profile Email
« Reply #3 on: August 02, 2012, 03:11:01 PM »

Before you add enemies you need to know how Spelunky generates them and write the generation code. Then you can start programming them. If you want them to work the same as others with a few tweaks it's not too hard just change global variables. Otherwise it's quite a task
Logged

TyrOvC
Mossbaby
*
Posts: 357


This text is not random :(


View Profile WWW Email
« Reply #4 on: August 02, 2012, 06:12:21 PM »

I am an art specialist so I can make sprites no problem
Shocked
Sadly, spriting them is the 'easy' part.
Shocked
These kinds of people exist outside of the professional videogame market?!




Best way to learn how the enemy code works is to examine and start expanding from existing enemies. Movement code, stunning, etc, is standard for all enemies.
Logged

Daedalus40
Shoot
*
Posts: 10


View Profile
« Reply #5 on: August 02, 2012, 07:07:20 PM »

Is there any code on how the enemies generate at least? I'm only aware of the code in the objects>enemies.
Logged
TyrOvC
Mossbaby
*
Posts: 357


This text is not random :(


View Profile WWW Email
« Reply #6 on: August 02, 2012, 07:34:21 PM »

scrEntityGen

Is where enemy objects are actually created.
Logged

halibabica
Mossy
*
Posts: 1921


*whipcrack*


View Profile WWW Email
« Reply #7 on: August 02, 2012, 07:56:01 PM »

Sadly, spriting them is the 'easy' part.
Shocked
These kinds of people exist outside of the professional videogame market?!
Well...the comparatively easy part. Even if you suck at spriting, adding sprites to GM isn't very difficult.
Logged

Sometimes I wonder if I like Spelunky too much.
ManTrap mod - Tastes Like Spelunky
Hand-drawn comic - Spelunkying
Nathan Cash
Mossy
*
Posts: 4606



View Profile Email
« Reply #8 on: August 02, 2012, 08:12:27 PM »

Making them are a bit harder though  Tongue
Logged

Mvskoke
Mossy
*
Posts: 2211


SPACE PIRATE IS STEALING YOUR SPACE BOOTY!


View Profile Email
« Reply #9 on: August 02, 2012, 10:23:31 PM »

My sprites are entirely to basic and I hate how they turned out but I lack the skill to make a decent one.
hopefully ill end up getting better
Logged
Nathan Cash
Mossy
*
Posts: 4606



View Profile Email
« Reply #10 on: August 02, 2012, 11:10:40 PM »

I think your good at spriting
Logged

Mvskoke
Mossy
*
Posts: 2211


SPACE PIRATE IS STEALING YOUR SPACE BOOTY!


View Profile Email
« Reply #11 on: August 03, 2012, 08:03:13 AM »

I wont be satisfied until I am better than derek
as of now im just better than the average none spriter person
Logged
Pages: [1]
  Print  
 
Jump to: