Log In  
Page:
1
2

Cart #terra_1cart-14 | 2021-11-27 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
76

A tiny demake of Terraria in PICO-8!

Controls:

How to play?


Game:
🅾️ - Jump
❎ - Use item
⬆️/⬇️ - (Tools) Aim up or down
pause - Open crafting/inventory screen

Inventory screen:
🅾️ - Pick up item or craft
❎ - Move selected item to trash
⬆️/⬇️ - Scroll / change selected item
⬅️ - Go to Left side
➡️(Left side) - Go to Right side
➡️(Right side) - Recover trashed item

General tips:

  • To change items, open the inventory and press up or down.
  • Cut trees with the axe, mine blocks with the pickaxe, and attack enemies with the sword.
  • Platforms are placed one block lower while moving horizontally to make building platform bridges easier. Just hold the use item button and walk!
  • Hold down, X and left or right while holding a block to build a platform horizontally.
  • Hold down, X and jump while holding a block to build vertically.

Features:

  • A large map of 252x130 tiles, stored using the extended memory
  • 3 biomes (Forest, Jungle, Corruption)
  • 3 bosses (King Slime, Eye of Cthulhu, and a secret one that you'll have to find yourself (Summon it at night). They won't spawn naturally, summon them using their summon items)
  • Various enemies for each biome and underground (12 total)
  • Cave generation
  • Mining and crafting
  • Melee and Ranged attacks
  • Ranged weapons automatically aim towards nearest target, prioritising bosses
  • A basic palette fade lighting system, with a day-night cycle
  • A few progression/recipe changes due to space limitations
  • Life Crystals and Shadow Orbs to smash!

Differences from the original Terraria

Because it's not Terraria


First, this isn't the full game or anything. If you like this, please consider getting the original. (That's a link by the way)
This is only a small portion of what Terraria has to offer!

Crafting

  • Many items that use metal bars have had their cost reduced to about 25%, so a 12 bar recipe now uses only 3.
  • 25 bullets can be crafted with one Iron Bar, as the Arms Dealer (and town NPCs in general) don't exist.
  • Night's Edge is crafted with (spoilers): the Light's Bane, 5 stingers, and a Soul of Blight.

Progression

  • Shade Bow is dropped from the second Shadow Orb, and Magic Mirror from the third.
  • The secret boss is from hardmode, so its stats have been reduced significantly.
  • You start with a Wooden Sword instead of a Copper Shortsword, like the 3DS version.

Planned Changes/Additions

  • Due to this change in 0.2.4 (link), I may be able to save tokens by removing my BIGMAP() function. Only about 190 minus whatever this new method takes, but it's certainly something.
  • Saving and loading your world and character! Not completely sure how it's going to work, but it's looking like I might be able to fit it in after the above change.

Known issues:

  • Walls are technically solid blocks as there is only one tile layer, so nothing can be placed in front of them. To combat this, furniture tiles automatically draw walls behind themselves when near a wall.
  • Sometimes underground, the draw rate will drop to 30fps, and less often even actually slow the game loop down. Not sure what's causing it yet.

Item Documentation

For those that want to edit things or make their own items.

Recipe Format:

output id:output amount:require tile|id:amount,id:amount,id:amount|comment

output id: sprite id of item to craft.
output amount: how many items to craft. (default 1, can be omitted)
require tile: what tile id is needed to be near in order to craft. (default none, can be omitted)

id: sprite id of required ingredient.
amount: amount of ingredient required .(default 1, can be omitted)

comment: does nothing, just an identifier for the humans reading them.

Separate them using semicolons.
Place these in the recipes string.

Item Stats Format

damage:type:usetime:value

damage: How much damage the item does to mobs on hit

type: Can be: melee, ranged, pick, axe, block, item, bullet, arrow, hpup

  • melee: Standard melee weapon
  • ranged: Shoots projectiles, consuming ammo
  • pick: Mines blocks
  • axe: Chops trees
  • block: A placable tile
  • item: Usually used for crafting, otherwise has no use
  • bullet: Consumed by BULLET ranged weapons
  • arrow: Consumed by ARROW ranged weapons
  • hpup: Increases player's max HP
  • summon: Spawns a mob near the player, consuming the item

usetime: Higher value = slower swing

value varies based on type

  • ranged: Item type used as ammo (usually bullet or arrow)
  • summon: Entity id to spawn
  • hpup: How much the player's max HP is increased by on use

for ammo, usetime!=0 makes the bullet not get consumed on use.

Place it at the index of the item's sprite id in the toolstat string.

Changelog

The history of Terra!


1.0: Release Time!

  • Initial release (8191 tokens)

1.1: Fixing Of Bugs!

  • Read some feedback
  • Reduced respawn cooldown and made mobs despawn instantly upon dying
  • Optimised player collisions for tokens and maybe a minor performance boost?
  • Moved selected item text above player's head to be more obvious
  • Optimised recipe list for tokens using split (8097 tokens)
  • Moved some stuff around
  • Made generation text use the centre print function instead of doing it manually there (8084 tokens)
  • Added ability to play night music in forest biome
  • Made increased spawns while moving only work underground
  • Reduced spawn rates as count approaches cap
  • Fixed walls not being blocks
  • Added wooden door, grey brick, and red brick (8188 tokens)
  • Made ranged attacks prioritise aiming towards bosses if they're alive and in line of sight (8169 tokens)
  • Reduced stats of bosses slightly due to lack of armour/accessories
  • Reduced gravity effect on arrows and increased their velocity slightly
  • Added dropped health pickups from enemies and the Eye Of Cthulhu's servants (8189 tokens)
  • Broke the inventory, it's off the screen now
  • Fixed the inventory, it's on the screen now
  • Reduced tokens some more (8180 tokens)
  • Made respawning happen when the player presses a button instead of after a timer
  • Changed mob despawn range into a circle instead of a square (8163 tokens)

1.1b: EoC Fix

  • EoC's servants had their drop item set as their defence, which caused a crash when attacking them

1.1c: A few fixes

  • Can now place tiles that need support (workbench, torch) on top of platforms.
  • Hopefully fixed a crash related to items with missing stats

1.2: Trash, balance and bugfixes

  • Fixed the Eye of Cthulhu servants' drops (for real this time)
  • Reduced mob cap to 8 (from 16)
  • Made bosses able to spawn even if the mob cap is reached (8183 tokens)
  • Added ❎ to delete selected item in inventory (8192 tokens)
  • Reduced tokens in worldgen
  • Modified corruption generation (8117 tokens) (it does usually take longer, but i needed to save tokens)
  • Added trash slot, trash selected item with ❎ and recover trashed item with ➡️ (8154 tokens)
  • Fixed crashes with empty inventory (8185 tokens)

1.2.1: More bugfixes

  • Fixed grey and red bricks dropping barriers
  • Fixed crash when placing a picked up item into an empty inventory
  • Demonite bars now need a furnace to craft
  • Reduced tokens by moving a few items into data strings that weren't already
  • Reverted a token saving change that broke surface cave generation. Now you shouldn't spawn in a rectangular hole in the ground anymore (8186 tokens)
  • Doors now break when the tile below them is broken
  • Applied token-saving techniques elsewhere (8163 tokens)
  • Made the secret boss bigger and added its second phase sprites
  • Fixed a bug where hitting a tree with a hammer caused the game to freeze. Caused by a leftover sprite flag from early on in development.
  • Added sound effect for magic mirror (8166 tokens)

1.2.1b: Shadow orb fix

  • Shadow orbs now drop items in order properly, I had put the current item counter where ANY wall would trigger it, instead of just shadow orbs.

1.2.2: Music update!

  • Added music by @jo560hs
  • Replaced the death sound with the enemy hit sound and removed an unused sound to save sfx slots
  • Added a night theme
  • Made items able to land on platforms (8169 tokens)

1.2.3: Walls and bugfixes

  • Added automatic background walls behind certain tiles when they are next to one for a nicer look in houses. (mostly furniture)
  • Reworked the BIGMAP() function to peek the camera coordinates, and merged it into the draw loop.
  • Due to the above 2 changes, blocks now also display in front of tree leaves.
  • Fixed anvils being unbreakable outside of destroying the tile beneath them.
  • Fixed the boss music continuing to play after the boss is defeated or despawns until touching a biome tile. (8170 tokens)
  • Added the campfire as an alternate light source. (doesn't provide campfire buff)

1.2.4: Ammo and WORLD SAVING preparation update! (Alternatively, the "How am I still under the limits!?" update)

  • Removed ADDPROJECTILE function to save tokens, since it was only used in one spot. (8148 tokens)
  • Added support for different arrow/bullet types for bows and guns. Put the ammo you want to use closest to the top of your inventory bar. (8158 tokens)
  • Moved layer heights upwards slightly to add a tiny bit more underground space, and to prepare for PICO-8 0.2.4's memory offset features. (which will change the map dimensions slightly)
  • Reduced furnace stone requirement from 20 to 10.
  • Made the selected recipe reset to the top upon closing the inventory.
  • Prevented changing to the crafting side of the inventory if there are no recipes available. (8170 tokens)
  • Added some new ammo types, including INFINITE AMMO!!!
  • Copper tools are now wooden tools since copper doesn't exist.
  • Added recipes for wooden tools for if you accidentally trash all of your tools somehow.
  • Added sound effect for shooting ranged weapons and did some more token optimisations.
  • Replaced fired bullets with that iconic orange line that Terrarian guns fire. (8171 tokens)
  • This update also marks return of the DEATH SOUND!!!
  • Found some more token optimisations. (8163 tokens)
  • Fixed a bug where the music would change back to the biome music while fighting a boss if the inventory is open.
  • Adjusted how distance and depth light levels are calculated to be a LOT more token efficient. (8102 tokens)
  • Moved the tree trunk sprites to make the next change more possible:
  • Added functionality for saving and loading players and worlds! (the currently unused functions take 92 tokens)
    • (Currently disabled due to token limits, will enable it if possible after PICO-8 0.2.4 is released)

Credits:

  • Using tline sprite rotation from TheRoboZ and distance function from Freds72
  • Terra now has music by @jo560hs as of version 1.2.2
P#97269 2021-09-13 06:10 ( Edited 2021-11-27 10:45)

1

I can't place the background walls anywhere. Do they work or am I just doing it wrong?

P#97275 2021-09-13 09:03
:: cubee
1

oops, i've fixed that for the next version

P#97276 2021-09-13 09:15
:: Numzyx
2

wow!!! this is a very fabulous demake. the sprites are nice, the lighting system is nice, and the mouseless control scheme is very elegant.

i saw in the top comments for the code that you needed help with music. i think i might be able to make covers of some of the terraria songs so if you still need help with that i could try to lend a hand

P#97280 2021-09-13 16:00
1

Great demake, I love playing this and I really want to get back into terraria again. If you’d like any help with music I’m more than willing to make a few covers of the songs in the game. Just let me know how much space you have and I’ll see what I can do! Message me on discord at ScrubSandwich128#7190 if you’re interested

P#97282 2021-09-13 19:13
1

How was this even made?! I love it so much and it's all in one cart! Can't wait for the second ver!

P#97292 2021-09-13 23:15
:: cubee
2

v1.1 Update main changes:

  • Fixed walls not being blocks
  • Moved selected item text above player's head to be more obvious
  • Added wooden door, grey brick, and red brick
  • Made ranged attacks always aim towards bosses if they're alive and in line of sight
  • Reduced stats of bosses slightly due to lack of armour/accessories
  • Reduced gravity effect on arrows and increased their velocity slightly
  • Added dropped health pickups from enemies and the Eye Of Cthulhu's servants
  • Made respawning happen when the player presses a button instead of after a timer

Other changes can be found in the changelog in the main post.

P#97304 2021-09-14 08:03 ( Edited 2021-09-14 10:05)
1

WAIT THE BOSSES ARE HERE TOO?! CAN SOMEONE SEND A GIF/VID I WANNA SEEE

P#97368 2021-09-15 22:48

2 small bugs: I can't place on walls or destroy them. P.S. This game is amazing! I now can save some money and play it for free! Thanks.

P#97373 2021-09-16 00:25
:: cubee
2

@ Agent Tom
This gif is slightly outdated, but it's basically the same

P#97379 2021-09-16 01:03

@cubee Yo even the guns are here! You really outdid yourself with this cart? Is there even still tokens left to make more?! (The second phase literally looks so cool I kinda prefer the game in the pico 8 res)

P#97410 2021-09-16 21:41 ( Edited 2021-09-16 21:51)

How do I pick up the table and platforms??

P#97415 2021-09-16 23:00
:: cubee

use the pickaxe. platforms are a little bit harder, you can fall partially through them and then dig normally to break the one in front of you

P#97421 2021-09-17 00:27

how do i make a furnace, is there npcs here

P#97468 2021-09-17 16:34

you know this game made remember why games have spawncaps, this feels like master mode on steroids

P#97469 2021-09-17 17:10
:: Numzyx

it adds to the experience

P#97471 2021-09-17 17:54
1

Here's my progress so far. (I also beat the king slime, got a full iron tools, and a gold bow and silver sword.)

P#97473 2021-09-17 23:02 ( Edited 2021-09-17 23:03)

if a could add one feature to his game, i would add a option to delete itens, cause managing inventory here is a mess

P#97484 2021-09-18 10:14

this happened while fighting phase 1 of the EoC

P#97519 2021-09-19 02:25
:: cubee

i updated it, that should be fixed now. what item were you using when it crashed?

P#97520 2021-09-19 02:41
:: cubee
1

@Bibb

you can try running PICO-8 with the "allow future versions" flag via command line:

-accept_future 1

https://pico-8.fandom.com/wiki/RunningPico8

it may not work properly depending on which version of PICO-8 you have though

P#97521 2021-09-19 02:49

@cubee i was using the musket, and was on the web version

P#97526 2021-09-19 04:39 ( Edited 2021-09-19 04:43)
:: cubee

Ok, the issue was the tiny eyes that the Eye of Cthulhu spawns, I didn't enter the right format for the heart item they drop.
Next update should fix it properly.

P#97530 2021-09-19 06:05
:: cubee
1

v1.2 Update main changes:

  • Fixed the Eye of Cthulhu servants' drops (for real this time)
  • Made bosses able to spawn even if the mob cap is reached
  • Modified corruption generation (it does usually take longer, but i needed to save tokens)
  • Added trash slot, trash selected item with ❎ and recover trashed item with ➡️

Other changes can be found in the changelog in the main post.

P#97533 2021-09-19 06:52

starting 1.2 for the first time (i think) and uh...

P#97544 2021-09-19 12:23

what is the secret boss, i can't seem to make it spawn, what is the use of sting and rotten pieces

edit:i've managed to spawn the secret boss, but i stil don't know what the stings do, anyway here's my character after beating 2 bosses

P#97546 2021-09-19 15:07 ( Edited 2021-09-19 16:44)

Hint of how to summon it or even what the secret boss is?

P#97548 2021-09-19 17:09

Every once in a while a cart comes along that just blows your mind and this has gotta be one of them for me. Fantastic work!

P#97555 2021-09-19 18:26

@Agent tom, if you read my post very carefuly you can see some hints of how to spawn the secret boss, as for what the boss is let's say he's got a kind of soul to it

in other words it's ocram and he is spawned using demonite and rotten chunks, but be careful cause he's like, final boss levels of difficulty if you're not prepared, but don't tell anybody as to not ruin the whole purpose of the boss in the first place, got it

P#97564 2021-09-19 21:38 ( Edited 2021-09-19 21:48)

@prismo18 I slightly remember that boss... Holy cow it looked cooler than I remembered. (I somewhat thought it would be the eater or worlds at first.)

P#97565 2021-09-19 22:10
3

Hey look! They even added the twins!

P#97569 2021-09-20 01:27

great game but everytime I get far it just stops like ill have built some stuff beat 2 bosses and then it just stops and sits there for a while and theres a loading thing but it still just sits there and i have to restart

P#97660 2021-09-22 14:51
:: cubee

@farawaxy

interesting. i'll see if i can figure out what's causing that

P#97689 2021-09-23 01:32

AAAAAAA I BROKE IT

P#97724 2021-09-23 19:52

odd Error that raises more questions,
Oh wait it does that if don't add in the hashmap? or bigger than the hashmap?
Was confused, hadn't seen that terminology "position" since it's almost always "index"

P#97736 2021-09-24 01:04 ( Edited 2021-09-24 02:31)
:: cubee

@farawaxy

I managed to freeze the game like that by hitting a tree with a hammer. Not sure if that's what you did but i've fixed that for the next update

P#97745 2021-09-24 07:04
:: cubee
2

v1.2.1 Update main changes:

  • Fixed grey and red bricks dropping barriers
  • Fixed crash when placing a picked up item into an empty inventory
  • Demonite bars now need a furnace to craft
  • Reverted a token saving change that broke surface cave generation. Now you shouldn't spawn in a rectangular hole in the ground anymore (8186 tokens)
  • Doors now break when the tile below them is broken
  • Made the secret boss bigger and added its second phase sprites
  • Fixed a bug where hitting a tree with a hammer caused the game to freeze. Caused by a leftover sprite flag from early on in development.
  • Added sound effect for magic mirror (8166 tokens)

Other changes can be found in the changelog in the main post.

P#97746 2021-09-24 08:14
:: lauraf
1

how i create the musket?

P#97883 2021-09-27 15:58
:: lauraf
1

please do a 2 player mode

P#97889 2021-09-27 16:24 ( Edited 2021-09-27 16:26)
1

@lauraf you can't make a musket you need to smash orbs as for the musket balls you make them with iron

P#97893 2021-09-27 19:31
:: lauraf
1

I found the soul of blight what I'm supposed to do

P#97895 2021-09-27 19:41
:: lauraf
1

@prismo18 where do i find orbs

P#97896 2021-09-27 19:56
1

@cubee i can't believe you put so much garbage in the orb pool, like red brick suspicious looking eye, nothing, shadebow

P#98004 2021-09-29 21:10
1

@prismo18 dude. First of all, the eye summons a boss, you need to make arrows for the bow, and bricks are good building materials. I think it's broken because I have gotten different items such as the magic mirror or a musket.

P#98010 2021-09-29 22:26 ( Edited 2021-09-29 22:27)
:: lauraf
2

preparing to fight the secret boss :D

P#98015 2021-09-30 01:07
:: lauraf
2
P#98016 2021-09-30 01:09
:: cubee

@prismo18

yeah it was broken, i was increasing the orb counter when ANY wall tile was broken instead of just shadow orbs. They should be fixed now

P#98022 2021-09-30 02:58
:: lauraf

@cubee How do I enter other biomes?

P#98091 2021-10-01 16:14

@cubee

can i make the night's edge with all the swords in-game

P#98093 2021-10-01 17:15
:: lauraf

@cubee please do a two player mode

P#98099 2021-10-01 21:03
Page:

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2021-11-28 20:15:28 | 0.184s | Q:79