Log In  

BBS > Superblog
Posts: All | Following    GIFs: All | Postcarts    Off-site: Accounts

Cart #48436 | 2018-01-22 | Code ▽ | Embed ▽ | No License

0 comments


Sorry for the vague subject line...I don't know how to best describe what I'm seeing. That probably means this issue is certainly something I'm doing wrong but just don't know what. I swear I've done it in the past without problems so it has me wondering if it's a new P8 version thing or if I'm just crazy...anyway...

I have something like this...

pool={
   {name="Jerry"},
   {name="Tom"}
}
list={}

function mybutt(myx)
   local obj=pool[1]

   obj.x=myx
   obj.y=20

   add(list, obj)
end

mybutt(10)
mybutt(64)
mybutt(82)

And the problem is that when I loop through 'list' every value of 'x' is the last value added via the function, so in this example, 82.

But when I do rewrite as below it works as I think it should above...

pool={
   {name="Jerry"},
   {name="Tom"}
}
list={}

function mybutt(myx)
   local tmp=pool[1] -- This is the part that feels wrong

   local obj={}
   obj.name=tmp.name
   obj.x=myx
   obj.y=20

   add(list, obj)
end

mybutt(10)
mybutt(64)
mybutt(82)

[ Continue Reading.. ]

1
3 comments


Also, in the actual editor, the status bar frequently lags behind my cursor's coordinates quite a bit, and it sticks around for a second when I switch to the console.

1 comment


Cart #48772 | 2018-01-31 | Code ▽ | Embed ▽ | No License
1

Description

A low-key puzzle platformer set in the clouds at night. There's just enough level right now to show off the mechanics, and give you an idea of what I'm planning to do with it.

This is a working title. Suggestions for titles that aren't terrible are welcome, as is other feedback.

Known Bugs

  • It's possible to create situations that prevent you from finishing the level, even using a portal to backtrack. (Let me know if you do this while trying to follow the critical path, though.)
  • Jumps occasionally don't completely jump, making stair-climbing not as smooth as it could be.

Changelog

v0.4:

  • New map art. It's now much closer to the final visual style that I want.
  • New map section.

v0.3:

  • New map. This will probably change a bunch more times before it's final but this one is a better reflection of the kind of thing I want to do with this.
  • Recalling to a portal now resets block positions to what they were the first time you passed through that portal. That should make them more useful for resetting puzzle state, and also make it harder to get stuck by pushing blocks over them.
  • The camera no longer tracks the player pixel for pixel on the y axis, which is to say, it won't follow every jump, it'll just follow when you land (or fall for more than a couple of blocks).
  • Lots of physics tweaks. It's not all the way there yet but I have finer-grained control over getting it there. (Specific feedback about this is super welcome.)
  • v0.3.1: Mostly graphics updates -- twinklier portals, signier signs, parallaxical stars. But also, portals will update their knowledge of saved block state if you revisit them, and player speed is slowed down a little.
  • v0.3.2: Added a little bit more puzzle, just because you're cool and deserve it.

v0.2:

  • Simplified most of the controls,
  • Spruced up some sprites, and
  • Added a little bit more level.
  • Still need to tweak the physics, and put portal recall on the unused button.
  • v0.2.1: Recalling while carrying a box causes you to drop the box; this prevents both getting stuck because your carried box gets stuck in a wall, and getting stuck in a hole while lifting a box.
  • v0.2.2: Minor control tweaks.

v0.1:

  • I got a bunch of work done today on an idea I've had kicking around for a while. This demo just walks you through the controls and then gives you one little puzzle at the end. I know the player physics are kinda gummy right now, but I'm interested in how the controls feel and whether you have any trouble getting to the end.
1
1 comment


Cart #48421 | 2018-01-21 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

1
2 comments


Cart #48406 | 2018-01-20 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
116


DeFacto is a game about building a large automated factory chain.
You must install miners to collect raw resources, transform them in furnaces, and combine them in factories.
The final goal is to send rockets full of robots and by doing so continue to explore the galaxy.
DeFacto is heavily inspired by the game Factorio.
You can also play and support the game on : nusan.itch.io/defacto

Controls :
The game can be played either with the mouse or keyboard

Keyboard :
C : Use selected tool/Interact with factories
V : Open tool selection panel/quit menu
enter : Open main menu (save, load, toggle music ...)

Mouse :
Left clic : Interact/Use selected tool
Right clic : Open tool selection panel/quit menu

To save your game, press enter and select save (button C)

To construct conveyor, inserter or bridge :
you have to keep pressing C/left clic and then enter the direction (arrow key or mouse motion) where the conveyor/inserter/bridge will put it's products
if you only press c/left clic without entering direction, it will place the conveyor, inserter or bridge along the last used orientation

Bridges can also be used to take and insert product, and are faster than inserters.

Starting tips :

  • start by opening the tool panel (V/Right clic) and choosing the miner tool
  • place the miner onto a raw resource field (C/Left clic), the miner will start filling
  • open the tool panel and select the inserter tool
  • place the inserter against the miner by pressing and holding C/left clic and then entering the direction where you want to put the products
  • open the tool panel and select the selling station
  • place the selling station at the end of the inserter
  • if the inserter is oriented correctly, it will start moving resources collect by the miner to the selling station and you will start gaining money
  • once you have a bit more money, start putting raw resources into furnaces, the resulting products will sell at higher prices
  • the next step is to use factories, choose the recipe (C/Left clic on the factory) and insert the required input products to make more advanced ones
116
14 comments


Cart #48394 | 2018-01-20 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

0 comments


Cart #48396 | 2018-01-20 | Code ▽ | Embed ▽ | No License

0 comments


I don't remember zep announcing it, but I just discovered that the problem we found a while back on this thread...

https://www.lexaloffle.com/bbs/?tid=29364

...seems to have been fixed. At the time, the power operator (the caret symbol, "^") only worked for positive whole numbers, not negative or fractions.

For you cycle-counters out there, I've tested it, and the cost is 9 cycles:

CYC CODE
--- ----------------------------
  9 L1=L2^2
  1 L1=L2*L2

Notice that's versus 1 cycle for a multiply, so use v*v to square a value, not v^2. In fact, if you can spare the tokens, doing a handful of multiplies will still be faster for small whole-number powers.

Anyway, thanks to zep for fixing that. I can remove my custom pow() functions now. :D

1 comment


Hiya peeps,

Okay, I have issues when playing carts on my iPhone6. The games work, but not with issues.

Firstly, I get no sound.

Secondly, along with more frustratingly, I am selecting browser screen elelents when pressing the virtual controls.
This makes the iPhone play method useless.

I'm told that this isn't a problem on say, a Samsung. All works fine with that.

So, does anyone know if/how these issues can be overcome/resolved?

Cheers,

Roy

10 comments


Cart #48375 | 2018-01-19 | Code ▽ | Embed ▽ | No License
7

Help Burger Bill get all the burgers he can stomach!
Step 1: Choose the perfect height for each bar to create the level
Step 2: Play the level, grabbing every single burger on the screen
Step 3: Beat level 13 for a burger party!!

Controls::
X - set the bars' height -- also, jump
L/R arrows - move Bill left and right
Z - this will reset the level, so you can try again

7
4 comments


I'm looking for some help or snippet on how to create a path for an object that gives an arc between 2 coordinates.

I have code/examples for waves and orbiting in a circle, but I haven't needed to make an arc between 2 explicit points before. I'm not making an Angry Birds game but need that type of physics arc created that then allows a object to follow that path.

Ideally, something that lets you increase the gravity/friction/whatever that will slow the object down the further it gets away from the source point.

Although...I guess I could just trial-n-error it from the source point, messing with the variables until the thing lands where I need it. But having a 2-point method would probably be more helpful in the long run (for everyone).

Even if you have a cart that has something similar, I'm happy to code surf for things and learn.

1
9 comments



Small gizmo I made today! Cross-sectioning an object gives the impression of 3D movement.

I consider this a good cart to learn the basics of pico8 updating, sprite drawing, and looping.

7
1 comment


Cart #48350 | 2018-01-19 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Cart #48358 | 2018-01-19 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

1 comment


Cart #48332 | 2018-01-19 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Cart #48295 | 2018-01-18 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

4 comments


Trying to run pico8 on a Raspberry Pi 2 with Raspbian Stretch. When launching pico8 in the console, the cursor moves to the next line and then nothing happens. Ctrl-C doesn't break, I have to kill the console to get out.

Any ideas?

1 comment




Background:
I made this little game as part of a rapid prototyping course. We had a week to hand in a complete game (meaning: start screen, game loop, win and game over condition + screen) with only three constrictions: We had to use Pico-8, we had to generate a random game name with the videogamena.me generator, hence the origin of the title: Crossdressing Lizard Unleashed, and we were only allowed to use one screen in Pico-8, no scrolling.
I didn't have any prior programming experience, so basically Lua has been the first programming language I have really used. This is the result of 5 days of learning.

Game:
You play as the Crossdressing Lizard, who has escpaded from its cell in the zoo but still has to find its way past the zoo guardians and out of the zoo itself.

Mechanics:
Use the arrow keys to avoid the enemies and escape through the doors, which open up one at a time at the side of the screen.
To confuse your enemies, you can change your clothing (with the x or c key) to match the color of the zoos floor. They will have trouble following you then.

State of the prototype:
Because I knew I didn't have that much time for this, I didn't plan too much and got most of my ideas in the game. What I couldn't really get to work though was making the escape doors randomly appear so the gameplay is always different. The second enemy's movement is also still hardcoded to the current location and appearance time frame of the doors, so that would have to change also.
Other then that I'd thought of adding obstactles or other level elements, that would give the game a more labyrinth feeling in later levels, but I don't really know how to program the enemies for this case. Right now they are just following the doors or the player character, that's all they do.

Well, that's all for now. I hope I'll have time to come back to this after I finished the courses this semester.
If you have any thoughts, suggestions or ideas of how to continue or improve my little escape game, I'd love to hear it.
all the best,
Rue

2
4 comments


Cart #48275 | 2018-01-17 | Code ▽ | Embed ▽ | No License
11

Hi guys,

I got this Pico-8 game in a random lot on eBay. I couldn�t find it in any of the classic Pico-8 game guides, so it�s probably a bootleg.

I ripped the ROM (since my old Pico-8 system hasn�t worked in ages), and I figured I�d share it here since one of you guys must know about these obscure cartridges. I can�t tell if it the game is corrupted or if that�s how it�s meant to be.

Enjoy! Multiple endings, surrealist horror, and a bumping soundtrack.

All that aside, great thanks to:

@Synth_dfr for the music corruptor - https://www.lexaloffle.com/bbs/?tid=3561
@willwilliams68k for the glitchy static effect -https://www.lexaloffle.com/bbs/?uid=23038
and of course @zeb for all of the wisdom from JELPI
...but somehow I still didn't get the controls feeling as good.

11
6 comments


Cart #48318 | 2018-01-18 | Code ▽ | Embed ▽ | No License


Puzzle 5 is to hard for a level 5 ...
Cart #48265 | 2018-01-17 | Code ▽ | Embed ▽ | No License

Cart #48264 | 2018-01-17 | Code ▽ | Embed ▽ | No License


bug resolved : puzzle 2 = puzzle 3 ...

[ Continue Reading.. ]

0 comments


So I've recently been playing the excellent Dank Tomb by krazjeg, and decided i'd rather play it locally/offline.
To my dismay however, I realized I didn't know of any way to export or access saves (cdata, cstore) in html exports.

Does anyone know how to achieve this? And if not, @zep, won't you please add a way? :P

0 comments




Top    Load More Posts ->