Log In  

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

Cart #41988 | 2017-06-29 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
6

6
2 comments


Cart #41986 | 2017-06-29 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3


yw =D

3
3 comments


Cart #41976 | 2017-06-28 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

(See WIP thread here: https://www.lexaloffle.com/bbs/?tid=29464)

Well, it's done. I can already see ways to improve it, but the idea was more "can I make an invaders clone?", and I think I've shown that yes, yes I can.

I've learned a lot here. How to fling a million sprites around at once. Sound effects. Using tables in tables in tables to create level layouts. I used shortcuts (asset reuse) of course, but ultimately I've made a playable, if pretty simple, game.

Oh, and there's a Super Secret (not really - look at the code) cheat mode that gives you an extra life and reduces the fire rate of the catvaders. You might need it because the game is a bit hard. Too hard for me, anyway!

2
0 comments


Cart #41929 | 2017-06-25 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
6

Howdy folks! This is a "Shinkaisen Game" or "Deep Sea Game", based on the classic Japanese 10 yen "Shinkansen Game". Here's a video of that:

The basic idea is to reach the bottom while avoiding the red zones. When the ball is in a blue zone, hold Z to charge and release to shoot the ball! You can nudge the machine too, though that's cheating ;)

It's not super polished, but it is beatable. The physics are taken from Micro Murder by Kometbomb & iLKKe.

Enjoy!

6
5 comments


I'm not surprised that I'm hitting the "out of memory" error when I put a big table of coordinates into the global scope...I'm figuring out how to deal with that right now. My question is why does it take up so much memory in the first place?

I created a table with indexes for x/y coordinates, which in turn correspond to objects in the game.

My map is made up of 16x16 tiles, so 8 per screen. When I have a 7x7 map, that's 3136 slots in the table containing tile information. That's a lot, I know. Each table element has attributes for the tile. When there are 8 attributes in the object, Pico8 shows memory at 70% - adding just one more key-value pair takes me over the limit.

How does adding a single pair take up 30% more memory?

level_grid={}
map=7
for x=1,map*8 do
	level_grid[x]={}

	for y=1,map*8 do
		level_grid[x][y]={
			tx=x,ty=y,n=0,f=0,g=0,h=0,p=0,status=0,
			o=0, -- This pair puts me out of memory. Remove it and we're under.
		}
	end
end

[ Continue Reading.. ]

1
8 comments


Cart #41921 | 2017-06-25 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Just a silly lil' thing I made to shake off some rust after being away from pico-8 for so long.
Never been used to lua, so I wanted to practice working with tables... weee.

Still could be better optimized [ for one thing, I should be counting the ball table and printing the amount every draw call ], but this isn't really meant to be taken all that seriously :)

[ also, if you look through the code and see anything that could be done better, please, by all means, let me know. I'd love to learn how to improve! ]

0 comments


In my opinion, taking snippets of code/music/gfx from Pico-8 games with permission from the author to put in your own games is great as it helps build the community up and help beginners.

What I don't like is when people keep on taking other peoples games, changing some sprites, then re-posting the game as a "Hack". All this does to the community is make people appreciate the author of the "Edit" (that spent 10 minutes on the game) rather than the original creator that spent hours of their life creating these games.

On top of this, it fills up the BBS with duplicate games (that a worse versions than the original) rather than new, interesting content.

If you're going to make a "Hack" then at least make it a worth while change and credit the author with A LINK TO THE ORIGINAL GAME.

However, this is just my own opinion so feel free to comment your thoughts and ideas on the subject below.

6
19 comments


Cart #41917 | 2017-06-24 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

While working on my 3d engine I've written a function that I think would be generally useful and I haven't seen it done before. It draws horizontal dithered lines such that odd and even rows have an alternating checkerboard pattern. Code is obviously in the cart but I post below as well.

The code runs just as fast the native LINE function but with the bonus of optional dithered-e-ness

function dither(sx,ex,y,draw_colour,shade_colour)
  if (sx<0 and ex<0) or (sx>127 and ex>127) then return end
  sx = max(0,min(sx,127))
	 ex = max(0,min(ex,127))
	 if ex < sx then
	  sx,ex = ex,sx
	 end
	 local sos = sx % 2
	 local eos = ex % 2
	 local yind = y*64+0x6000
	 local ctu = -1
	 if y%2 == 0 then
	  ctu = draw_colour
	 else
	  ctu = shade_colour
	 end

	  if sos == 1 then
	   sx -= 1	   
	   poke(yind+sx/2, bor(band(peek(yind+sx/2),0x0f), band(0xf0,ctu)))	   
	   sx += 2
	  end 

	  if eos == 0 then		      
	   poke(yind+flr(ex/2), bor(band(peek(yind+ex/2),0xf0),band(0x0f, ctu)))
	   ex -= 1
	  end

	  memset(yind +sx/2,ctu, (ex/2-sx/2)+1)
end

[ Continue Reading.. ]

3
0 comments


Cart #41902 | 2017-06-24 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
8

My improvement upon the CAST demo. It includes procedurally generated terrain using a basic implementation of 2d perlin noise. Z to jump, X to regenerate terrain. Excuse the debug stuff in the top left :)
Feel free to use any code snippets you find useful!

8
2 comments


I'm doing this a lot through my games in loops and I feel like there should be a shorthand for it...?

a-=1
if a<=0 then a=0 end

And similar type of counting, etc...

1 comment


I know Pico-8 is not open source, but if I were given the opportunity to try to fix a bug on say the Pico-8 raspberry pi build and submit a pull request on a private repository, I would gladly do so, for free.

Cheers,
-GradualGames

2 comments


Cart #41877 | 2017-06-23 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
37

a simple plasma effect, emulating CRT screen pixels in order to display a kind of ultra-low-res hi-color effect :D

37
7 comments


I'm trying to calculate distance between 2 points and the result is a negative number...?

It only happens for some value combinations and always results in -4

Here's example of it failing. According to my calculator the result should be 233.238076

sqrt((208-408)^2+(320-200)^2))

Anyone else come across this? Known bug somehow?

I thought maybe using abs() would help but gets same result.

4 comments


Cart #41873 | 2017-06-23 | Code ▽ | Embed ▽ | No License
2


Changelog:

  • Map Update
  • New Cam System
  • New graphics
  • Name Change to match cart
    +*- Many other things that I forgot about but will hit myself later for not putting them in XD

Cart #41860 | 2017-06-22 | Code ▽ | Embed ▽ | No License
2


Changelog:
Initial Release!

2
2 comments


Cart #44025 | 2017-09-09 | Code ▽ | Embed ▽ | No License
10

How to play
Ishido is a puzzle board game consisting of a set of 72 stones and a game board of 96 squares.
You place the stones onto the board, adjacent to existing stones, subject to the rule.

D-pad: move cursor
X: place a stone
Z: open the menu
Touch control is supported.

Release notes

0.31 (September 9, 2017)

  • Bug fix: correct mouse event handling.

[hidden]
0.30 (September 7, 2017)

  • Play music.
  • Visual effects and animation.
  • Save best score.
  • Replay.
  • Instruction.

0.12 (July 11, 2017)

  • Tune title logo.
  • Support mouse operation.
  • Change scoring system.

0.11 (June 24, 2017)

  • Suppress erroneous reset.

0.10 (June 21, 2017)

  • Initial release.

(Older versions)

Cart #43964 | 2017-09-06 | Code ▽ | Embed ▽ | No License
10

Cart #42370 | 2017-07-11 | Code ▽ | Embed ▽ | No License
10

Cart #41908 | 2017-06-24 | Code ▽ | Embed ▽ | No License
10

Cart #41838 | 2017-06-21 | Code ▽ | Embed ▽ | No License
10

[ Continue Reading.. ]

10
10 comments


I wanna collab with other people. Who wants to collab?

1
0 comments


I'm making a maze game...I know how to use a tile map but I wanted to have a bigger pool of possible screen (128x128) layouts than the map offers. I'm randomly choosing screen layouts and putting them together.

My solution to this was to create 8x8 sprites that then get translated into a table of wall objects. I then loop over that table to draw the maze walls. Nothing too fancy here...checking pixel color, etc.

And this works great up until a point...that point being once player objects and AI objects starting moving around and need to check for wall collisions, etc. It doesn't take long for things to start slowing down once there are 100+ wall objects to loop through per actor.

So given I don't want to use maps outright yet maps are more efficient processing-wise...is there a way to create a map on the fly? Using coordinates that are derived from the sprite.

There doesn't seem to be a vanilla way to do this (which doesn't surprise me), and I hate looking for hacks to get it done, but thought it was an interesting enough question to ask. It might just be a case where I want Pico-8 to do something it's not really suited to do (at least in the manner I'm doing it and I just need to accept Pico-8 limits).

6 comments


Anyone have any links, examples or insight on how to make an object move towards a target while also going around obstacles (walls) when they hit them?

Say object A needs to get to object B (which is static). I can calculate the direction A needs to move, that's easy to get and make it move in that direction. But when it hits a wall on the way there, I'm not sure how to have it move around that wall.

I'm not necessarily interested in the shortest path, I just need A to get to B and have it be efficient enough for Pico8 to crunch it for several objects.

I'm aware that this will result in Gauntlet-style movement from the A objects around walls and such, which is fine.

1
10 comments



.

Game Menu

x or z - select a menu choice
left or right - navigate the menu choices

Menu choices:

  1. Arcade - As the level increases so does the arena size and the number of enemies
  2. Blitz - A never ending stream of 25 enemies all at once
  3. Info - provides control info and game credit
  4. Story - Gives a brief backstory

.

Main Game

x - Fire weapon
z - hold z while using left or right to get more precise (but slower) aim/turning
up - accelerate
down - decelerate/reverse
left/right - rotate/turn/aim

At your disposal are a radar and health bar int he upper right hand corner.
Collect hearts to recharge your health.
Kill as many enemy tanks as possible.

.

[b][u]Screen Shots

[ Continue Reading.. ]

7
0 comments


Hi to all!
I've been in love with Pico8 and the whole idea of fantasy consoles for over a year now.

Today I'd like to introduce my take at fantasy console: tako80

I've been working on it for months. I just launched the site at http://tako80.net where you can read about it and find the documentation, if you happen to be interested!

In tako80 the coding is done in Javascript and its carts run on the web. I guess it might be all a bit rough at the moment (I just finished setting up the forum but I haven't tested it thoroughly, yet! :)

To promote tako80, I launched the first TakoJam. You can read about it here http://tako80.net/takojam.

The first prize is $100. I will eventually reward a second and a third prize of $50 and $20.

If you are interested, just drop me a line! Thanks :)

3 comments




Top    Load More Posts ->