Log In  
BBS > Lexaloffle Community Superblog
This is a combined feed of all Lexaloffle user blogs. For Lexaloffle-related news, see @zep's blog.

All | Following | PICO-8 | Voxatron | General | Off-site
[ :: Read More :: ]

Cart #wepackmofa-0 | 2020-02-08 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

P#72920 2020-02-08 23:29
[ :: Read More :: ]


Swerve around enemies and connect lines to boost your score! Connect long lines to become invincible, but be careful, new enemies are always coming!

P#72913 2020-02-08 17:41 ( Edited 2020-02-08 21:34)
[ :: Read More :: ]

Im not sure what is wrong, but whenever I press Z it never shoots

TAB 0

function _init()
init_objects()

-- set up craft
px=63
py=100
pspr=1
vx=0
thrust=0.1
f=0.97
t_spr=17

-- set up stars
map1y=0
map2y=0
map3y=0
map1_spd=1
map2_spd=0.5
map3_spd=0.25
map_height=128
end

function _update()
--scroll map
map1y+=map1_spd
map2y+=map2_spd
map3y+=map3_spd
if map1y>127 then map1y=0 end
if map2y>127 then map2y=0 end
if map3y>127 then map3y=0 end

-- get input and change sprite
-- and thrust
pspr=1
if btn(0) then
vx-=thrust
pspr=3
end
if btn(1) then
vx+=thrust
pspr=2
end

-- apply thrust and friction
vx*=f
px+=vx

--check edges
if px<0 then
px=0
vx=0
end
if px>120 then
px=120
vx=0
end

-- change thrust sprite
t_spr+=1
if t_spr>19 then t_spr=17 end

--fire bullet
if btn(2) then
add_new_bullet(px,py,0,-3)
end

--draw bullet
for b in all(bullets) do
b:update()
end

end

function _draw()
cls()

-- draw stars
map(0,0,0,map1y,16,16)
map(16,0,0,map2y,16,16)
map(32,0,0,map3y,16,16)
map(0,0,0,map1y-map_height,16,16)
map(16,0,0,map2y-map_height,16,16)
map(32,0,0,map3y-map_height,16,16)

spr(pspr,px,py)
spr(t_spr,px,py+8)

--draw bullet
print(#bullets,1,2)
for b in all(bullets) do

b:draw()
end

end

TAB 1

--objects

function init_objects()
--declare objects
bullets={}

end

function add_new_bullet(_x,_y,_dx,_dy)
add(bullets,{
x=_x,
y=_y,
dx=_dx,
dy=_dy,
life=20,
draw=function(self)
circfill(self.x,self.y,2,11)
end,
update=function(self)
self.x=self.dx
self.y=self.dy
self.life-=1
if self.live<0 then
del(bullets,self)
end
end
})
end

P#72912 2020-02-08 16:58 ( Edited 2020-02-08 16:59)
[ :: Read More :: ]

As I'm working rather deeply in coding for the next Sorcery project, I am running into a nasty little thing that when the screen scrolls it jumps back when the cursor is able.

@zep: Suggest using CTRL [ and CTRL ] to shift the viewpoint of the source-code to center it if need be and reset to zero when ENTER is hit.

And before you think my tabs big they are not. I use 2-spaces per indentation so this can visually be a problem with complex and deep level nesting.

P#72891 2020-02-07 22:38 ( Edited 2020-02-07 22:38)
[ :: Read More :: ]

Cart #spaz48_fox-1 | 2020-02-07 | Code ▽ | Embed ▽ | No License
11

So, here's the main thing I've been working on since I posted VVVVVV Moonfall. I've been a lot more relaxed with it, and I've been taking measures to not write total spaghetti code, and some of it's even commented. In all, I'm really proud of how this has been coming together. The camera needs work, as does some little aspects of the movement, and some things need tweaking, but I'll get to all of that eventually.

For now, I've decided to post this mainly because I'm kind of exhausted creatively, and don't really know where to go next. So I'm gonna be taking a break from it, and probably from Pico-8 too. (making carts, at least.) I've been spending almost all of my free time lately on it, and I feel like that's kind of been sucking the life out of me, among other things. Anyway, enough about me.

So I'm not sure what to call this, and I'm not sure where it's going either. I've had a few ideas, but it all needs more thought. It was first going to be an attempt at a 2D collectathon, then I wanted it to be a metroidvania, now I've just kind of accepted I don't really know where it's going and I'm hoping I'll think of something while I'm taking a break from it. Really, I've been most focused on making everything feel good and getting the mechanics I've already decided on feeling as solid as possible. Plus probably more polish than I should be trying to put in at this point, but I'm a bit of a perfectionist and that's kinda just how I am sometimes. Also, the background is a placeholder, so don't worry about it maybe looking a little...familiar.

I started this I think about a day or two after submitting Moonfall, and this uses the collision code from that, but nothing else. Everything here is my own code, from the parallax scrolling to the particle system, anything that isn't Pico-8 default here is my own, besides two lines for a cpu and memory counter I took from the wiki. The spritework is also my own, and so is the music. I'm sure I don't need to say all of this, but I'm just making sure.

Anyway, there isn't exactly much content here, as it's just a test map with some placeholder enemies that don't even move, but I'm really happy with what I've got so far and I hope you like it, too.

Controls:

  • Z/O: Jump
  • Z/O in air: Double jump
  • Z/O + Left or Right when against a wall: Wall Jump
  • X: Attack
P#72883 2020-02-07 18:33
[ :: Read More :: ]

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
This is an older work-in-progress version! Play the completed released version here.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Cart #mot_ramps-14 | 2020-05-25 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
29

This is a little scaled-sprite 3D graphics engine inspired by the old classic game Power Drift.
Still work in progress. Needs some basic game-play rules (laps, win/lose etc) and some difficulty balancing. But it's playable.

Update

  • Fixed bug in saving tracks to external cart.
  • Added a little bit of steering assist to help line up the jumps.
  • Some other tweaks I forget :)

Update 2

  • 2 tracks
  • Track selector
  • Trees generate in the same place

Update 3

  • New track
  • (Slightly) better physics/collisions
  • Finish line and corner signs

Update 4

  • New larger test track
  • Performance optimisations. LOD system. More aggressive view volume culling
  • Tweaked the steering

Update 5

  • More performance tweaks

Update 6

  • More performance tweaks, thanks to @freds72
  • Updated physics to support driving upside down!
  • New track with loop-the-loop (to test driving upside down :)

Update 7

  • AI cars. WIP. No collisions yet. Difficulty will probably be scaled down a bit eventually.
  • Moved editor to separate cart.
  • I tried to draw a palm tree.

Update 8

  • Different AI car colours.
  • Fixed flip-Y logic when AI cars are upside down.

*Update 9

  • Basic car collisions
  • AI cars now steer around each other (and you)

Update 10

  • Cockpit graphics with animated front wheels.
  • Main menu
  • Race start sequence

Update 11

  • Fix wheel animation when frame rate <30
  • Fix NPC cars getting stuck on hills

Update 12

  • Lap and position displayed on screen
  • Race finishes after 5 laps
  • Note: Difficulty level logic is not hooked up yet!

Update 13

  • Hook up difficulty levels
  • First attempt at engine sounds
  • "Ramps" logo :)
P#72871 2020-02-07 12:34 ( Edited 2020-07-07 08:39)
[ :: Read More :: ]

Cart #xavieriscool-1 | 2020-02-07 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

P#72866 2020-02-07 07:24
[ :: Read More :: ]

Cart #tetriswip-2 | 2020-02-07 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

Hello there!

I'm making a Tetris clone that uses the map to save tile data. The program draws the tetraminoes using 2 'for' loops and a table that has start and center information, but also how many columns and rows to draw in this config:
table_x={startx,starty, row1x,row1y,n row1, row2x,row2y,n row2}

The program is supposed to check if it has a second row:
if(table[6]!=nil) then
pos_x,pos_y=0,0
for n=1,table[8],1 do
rot_x,rot_y=rot(table[6]+pos_x,table[7]+pos_y)
for v=0,7,7 do
for b=0,7,7 do
if(op=="gravity") then
flag=fget(mget((p1.x+rot_x+b)/8,(p1.y+rot_y+v)/8),0)
if(flag) then
....
and normally it works, but sometimes out of random i get this error:
runtime error line 146 tab 0
rot_x,rot_y=rot(table[6]+pos_x,table[7]+pos_y)
attempt to perform arithmetic on field '?' (a nil value)
in collision line 146 (tab 0)
in _update line 40 (tab 0)
at line 0 (tab 0)
....
which is super weird, if you print what table was active, it'l usually spit out table: tet_i which doesn't have a second row, meaning that if(table[6]!=nil) should return false, meaning the error code should not be executed.
If you want to force the runtime error you can make a tower so that you would normally get a game over, but since i haven't programmed one the program keeps spitting out tetraminoes, rapidly speeding the process up, and increasing the chance that you get an error.

I have no idea why this is, any ideas is appreciated!
Thanks in advance, Benji.

P#72851 2020-02-07 01:01 ( Edited 2020-02-07 20:19)
[ :: Read More :: ]

Cart #tetriswip-2 | 2020-02-07 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

P#72842 2020-02-06 22:39 ( Edited 2020-02-07 20:12)
[ :: Read More :: ]

Is it possible to make carts private? It could help developers to make multicart games, the secondary carts could be private

P#72840 2020-02-06 22:28 ( Edited 2020-02-07 00:01)
[ :: Read More :: ]

Cart #dufrasago-1 | 2020-02-06 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

==Balls to the Wall==

This is a game I made over the Christmas break and am just now finally publishing on bbs. I'm not really satisfied with how it turned out, but I figured it'd be good to post it to get some criticism. Unfortunately, there is no audio on this cart :( The code is pretty embarassing, but it was definitely a good learning experience for my next projects. Let me know what you think!

The controls are:

Z - change orientation
X - create wall
arrow keys - move cursor around screen

Buttons:
Put your cursor over the 'start' button to release the balls from their cage
Put your cursor over the 'eraser' to change your wall creator into an eraser. Touch the button again to revert it back to wall creator mode

P#72825 2020-02-06 20:17 ( Edited 2020-02-06 21:57)
[ :: Read More :: ]

a snippet at the end of a line renders fine: [this is code]

however, a snippet in the middle of a line never terminates: [this is code] [this is not code]

P#72823 2020-02-06 19:57
[ :: Read More :: ]

Cart #hahazidowo-1 | 2020-02-06 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

fixed choice issue (only left button would progress, everything else made the screen blank)
{2/6/2020}

fixed upload, forgot about that (misnamed the embed/cart code)
{2/7/2020}

Check code for how it was done! Heavily Commented on!

Hope you all enjoy, feel free to modify it to your hearts content! Add stuff, or make your own text adventure!

Press P, then Reset Cart to reload to the first page!

P#72815 2020-02-06 07:59 ( Edited 2020-02-07 23:57)
[ :: Read More :: ]

Cart #cake_monsters-8 | 2023-11-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
22

This game is a clone with some changes of a game I saw originally made in Puzzlescript by @MattRix. The site where I saw it is not working at the moment. Updated to include logo.

11/2023 - Updated to include particle effects and transitions, as well a save system that stores last level played and the ability to undo movements until the beginning of a level.

P#72760 2020-02-05 12:26 ( Edited 2023-11-09 19:54)
[ :: Read More :: ]

Centipede

Cart #centipede-3 | 2020-02-05 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
15

Here is my Version of Atari's arcade classic shooter Centipede.

In 1980 Dona Bailey developed the arcade game Centipede for Atari.
It was the first arcade game designed by a woman and became one of the most successful
arcade video games (see: Killer List of Video Games).

My kids and I already had a lot of fun with this Pico8-Centipede-Version and we are working
on an update! Wait and see!!...

[0x0]

P#72756 2020-02-05 08:44
[ :: Read More :: ]

Cart #picochem-6 | 2021-01-21 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

Playable work in progress demake I've been working on, first for a week last January, now for a week again in the hopes of getting it playable for https://itch.io/jam/zachlike-jam

The original game is http://www.zachtronics.com/spacechem/ and I highly recommend every game they have produced.

Controls: arrows move the cursor. X to open a dialog to create/replace/delete instructions and arrows, arrows to move THAT cursor, X to confirm or O to cancel, optionally then arrows to set the direction/settings of the new instruction. O to open a dialog to run/pause/reset the simulation, or to grab and drop the sense and bond targets, or to change levels.

What works here:
arrows
start (1)
in (α/β)
out (ψ/ω)
grab/drop (magnet icon, minus one of the tips for just-grab and just-drop)
rotate (curvy arrow icons)
sync (pause icon)
bond and unbond ("O-O" and "O O" icons)
bond/unbond targets
sense instruction (?) and targets
flipflop (Y)
output validity checking (99%)
collision between atoms
scoring and victory check

What's implemented but not demonstrated here:
full periodic table, all 113 elements with symbols and names and connection limits
names and abbreviations for the molecules

What's missing:
title screen (might forego)
menu screen (might forego)
more levels/puzzles
unlocking instructions based on progression
the rest of the instruction types (fuse, split, swap)
the rest of the target types (fusion, fission, quantum)
saving
score tracking

I am seeking feedback on the iconography and interface in particular.

P#72754 2020-02-05 06:20 ( Edited 2021-01-21 19:04)
[ :: Read More :: ]

Hi guys,

Im giving it a go making a game on pico 8, after working on Godot and C3. Im wanting to build a platform engine because I tend to use that style of movement in a ton of my games. Ive tried a few different tutorials and they all have issues. I tried the one from Nerdy Teachers and if I change the movement speed to be quick the whole system fails, and the sprites get stuck etc. Plus Ive always been taught that changing a sprites hitbox size is a no no in game dev. So I guess what Im getting at is, is there a good/easyish way to code platform collisions. Or what is the best way to handle this? I have the movement down and all that, no problem. But the collisions always have glitches. Any thoughts/help would be greatly appreciated.

Thanks so much
mintpixel

P#72751 2020-02-05 03:59
[ :: Read More :: ]

Is there any method to map and use the additional buttons on a single controller to the player two buttons without the use of additional software like joytokey?

Is there a peek function or something I'm missing?

P#72746 2020-02-05 02:11
[ :: Read More :: ]

Alchemy Deluxe

Cart #alchemy_deluxe-2 | 2020-03-18 | Code ▽ | Embed ▽ | No License
8

A PICO-8 remake of Alchemy Deluxe, PopCap's 2001 game for PC (and later Mac).

Controls

  • Arrow keys to move cursor
  • (X) to place tile
  • (O) to discard tile

Version History

0.2.1 - Fixed: missing tile on game start
0.2 - Tutorial; game music by @gruber_music
0.1 - Initial public version

P#72744 2020-02-05 00:24 ( Edited 2020-08-21 22:36)
[ :: Read More :: ]

Cart #hedazofesu-0 | 2020-02-04 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1


Here's a WIP of a top down adventure - searching for the Pharoah's treasure - by Indy, aged 7

P#72741 2020-02-04 22:22
View Older Posts
Follow Lexaloffle:          
Generated 2024-03-29 14:16:50 | 0.137s | Q:85