Skip to content

LoganKarstetter/Porkchop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Porkchop

Are ye thirsty for adventure? Seeking to improve your vision? In this 2D platformer you'll take on the role of Porkchop the pig on his quest to discover the legendary golden carrot. I worked on this game throughout the span of 2018 and early 2019. Every line of code, piece of artwork, and sound clip was written, drawn, and recorded by me, except for the beautiful MIDI soundtrack of course. I sincerely hope you enjoy this game as much as I enjoyed making it.

How to play:

  • Download the Porkchop.jar file (you may have to install java, idk).
  • Double click the downloaded file to launch it.
  • Use you mouse to navigate the menus and mute/unmute the sound and audio.
  • Use the arrow keys to jump, and move left and right.
  • If it's super tiny, adjust your resolution if you can.

How to create new levels:

  • Pop open the LevelsConfig.txt file, and follow the format of the existing levels.
  • The first line for each level must be formatted as follows: [number of columns, number of rows].
  • The next however many lines will then be comma separated three digit numbers.
  • The number and length of lines must match the number of columns and rows.
  • The first digit determines if that space is solid (1 == solid, 0 == not solid).
  • The next two digits are the ID of the block, player, enemy etc. These ID's can be found in the Game.java file.
  • The level must contain the 001 (player spawn) or else it will not be playable.
  • Finally run the code or re-package the .jar file and run that.

How to add anything else:

  • Levels, sounds, images, and midi tracks all have config files. Any new content must be put into one of these files.
  • Anything beyond levels will require code changes also. If adding an enemy or image it must be mapped to an ID.
  • These ID's are listed in the Game.java file and the new ID must be added. Be careful to preserve the order of them.
  • New sounds and midi tracks are simpler. Just call midiManager("trackName", loop?) or soundManager("soundName", loop?).
  • The names of anything new must match the file name found in the respective config file, minus the extension.

If anyone ever actually tries to add or change anything, which I'm doubting, feel free to email me if you need help.

Logan

About

Are ye thirsty for adventure? Seeking to improve your vision? In this 2D platformer you'll take on the role of Porkchop the pig on his quest to discover the legendary golden carrot. I worked on this game throughout the span of 2018 and early 2019. Every line of code, piece of artwork, and sound clip was written, drawn, and recorded by me, except…

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages