EDIT_2
lol nevermind I figured it out. I'm so happy about this
EDIT!
so I finally came back to this and got some of the fixes implemented, but now every time my character collides with a surface they teleport back to the top of the screen. Can someone point out what I'm doing wrong?
Thanks again
original post:
I'm stuck again, this time on why my movement isn't working correctly.
When I try to go left, all movement and physics stop. when I try to go right, I "jump" and then fall through the floor.
additionally, the jump "boost" only works when also moving right
i'm following along with the NerdyTeachers YouTube tutorial, but I've rewatched the vids I think would make sense for these issues at least 3x each and I'm still stuck
Maybe this is me being stupid, but no matter how I look at it I feel like my code should be working.
Button presses are working in the title screen and dialogue sections, but for some reason it stops working in the main gameplay. The code looks sound to me and everything else behaves as it should, debugging has shown me that the functions are indeed being called. But inputs just don't work. Here is where the offending code could be:
[hidden]
function init_battle() t=0 --keeps track of time for bullet timing pl_shot ={} boss_shot={} actor={} player = { x=60, y=100, life=3, speed=2, focus=0, life =3, box ={ xa=0, xb=2, ya=0, yb=2 } } boss = { x=60, y= 40, life=100, spell=1, box = { xa=0, xb=3, ya=0, yb=3 } } music(22) _update=update_battle() _draw=draw_battle() end function update_battle() player_movement() end function player_movement() if (btn(0))then player.x-=player.speed end if (btn(1)) then player.x+=player.speed end if (btn(2)) then player.y-=player.speed end if (btn(3)) then player.y+=player.speed end end function draw_battle() cls() map(0,0) spr(1,player.x,player.y) draw_hud() end function draw_hud() spr(14,100,0) for i =108,124,8 do spr(15,i,0) end for i = 8,112,8 do spr(30,100,i) end spr(25,100,120) rectfill(108,8,128,125,13) end |
Here is a small game I made for a game jam that imposed the restriction of a Nokia 3310:
- 84x48 resolution
- 2 green colors
- 15 fps
- limited number of buttons
- monophonic sound
I made a custom html5 viewer to let me have the exact colors, playable on itchio (game is the same otherwise): https://frozax.itch.io/lights-on-3310
I've found a weird glitch with the sounds on web, it seems to happen at random. Reloading the page fixed it for whatever reason, but reseting the cart didn't.
Ignore the black flashes around halfway in the video, i'm not sure as to what caused those, but they weren't there when I first recorded it.
Video of the glitch: https://youtu.be/r_i2HjsvCP4
Hey so I just noticed that one of the more recent PICO-8 updates (not sure which) appears to make palettes work inconsistently on text in certain cases.
How to Reproduce:
Play my game Night Fright Flight here on the forums: https://www.lexaloffle.com/bbs/?tid=30133.
Try to change the palette through the pause menu, and you'll notice that some of the text (specifically the score and the game over message) doesn't entirely change palette. Most strangely, it applies only partially to outlined text created by calling print repeatedly with different offsets (despite pal() not getting called in the text drawing function at all).
I get the same issue running the game with 0.2.1b on my computer.
Example 1: The partially-purple text outline here should be all green.
[i]Example 2: The orange text with an upper purple shadow here should be white with a red shadow.
83 levels - featuring lemmings! - of classic platform puzzler.
Controls
[Z] and [X] dig
Hold [X] if you get stuck to restart level
[Q] to quit back to titles
Thanks To
Finn for testing
Doug Smith for creating the 1983 classic
Mike Dailly for creating the original lemmings sprites
Zep for the confetti tweetcart I used for the game complete scene
PICO-8 for creating an awesome "fantasy console"
Minified using the GEM Minifier:
https://pahammond.itch.io/gem-minify
Unminified code can be downloaded from:
https://pahammond.itch.io/lode-runner
Working :
-Move by grid
-Music score for field levels
-Keys
-Doors
-Chests
-X to view inventory
*Inventory now updates
-Moving into rooms
-Stairs
-Level boundaries
Not working :
Smoke animation, replaces pixels in background brick accidentely
Currently making :
-Forest theme score
-Forest path
-Usable inventory (I.E. changeable characters)
-More music, for each room
-Finished house, with place to spend slimes
WANDER THE COSMOS
Wander the Cosmos is a space exploration game in which you, the pilot of a spacecraft called The Discovery, have been sent on a mission by the Galactic Federation to gather data on any & all celestial objects you come across during your travels. Use the map below as a guide on your travels.
Map of the Cosmos
Special thanks to @Gruber, Nerdy Teachers, @rustybailey, @MBoffin, @TRASEVOL_DOG, @thattomhall and @androyd.
Also available to play on itch.io: https://niall-chandler.itch.io/wander-the-cosmos
The Chaos Game is a method of creating fractals using a polygon and a point that moves between the vertices of that polygon. You can read more about it here: https://jonathanhunter.itch.io/chaos
Controls
Arrows to move cursor
X to place mark/go level deeper
Hold Z for 1 second to restart game
Press Z to recreate demo in demo modes
Open pause menu (Enter/P) to:
- enable demo modes (auto - computer vs computer, fill - random pattern)
- switch between single and multiplayer
- open settings menu (this will restart the game!)
Settings in settings menu:
- meta level: ranges from 1 (normal tic-tac-toe) to 4 (81x81, four levels of nested boards)
- AI difficulty: how long in seconds will the AI think about the move. 0 is random moves, 3 never loses normal tic-tac-toe.
- game modes: singleplayer, multiplayer, automatic (AI vs AI) or randomly fill board.
Rules
Each board contains 9 a smaller boards. The lowest meta boards are just normal tic-tac-toe boards where you can place your signs. Where you move in the lowest board controls on which higher board your oponent can make their next move (indicated by the colored squares). Winning a lower board replaces it with a sign in a higher board. Win the highest board to win the game.
If you didn't understand that's my fault, I suck at explanations. Try it for yourself at small meta levels, it's not as complicated as it seems.
Changelog
Version 1.6:
- 4th meta level
- settings menu
- endgame sonuds
- changed AI
- bugfixes
Previous versions: