Log In  
Follow
rik-x

Here's a proof-of-concept for a zoomable camera:

Features

  • Multiple cameras
  • Set target coordinates, drawn at the camera center
  • Set zoom factor, for drawing scaled map and sprites

Functionality

  • camera.get_center()
  • camera.set_target(x, y)
  • camera.get_target()
  • camera.start_draw()
  • camera.draw_map(tx, ty, tw, th, x, y)
  • camera.draw_spr(s, x, y)
  • camera.draw_sspr(sx, sy, sw, sh, x, y)
  • camera.end_draw()

Relies on this smap function. Code is below or via GitHub.

Cart #zoomable_camera-1 | 2024-04-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
8

[ Continue Reading.. ]

8
4 comments



Hi all, here's a tutorial for creating a clone of the game 'Tron' (click the image below):

The code can be found below, or on GitHub

Cart #tron_clone-0 | 2024-04-07 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

1
0 comments



Hi all, here's a tutorial for creating circular movement, including 'wavy' and circular text (click the image below):

The code can be found below, or on GitHub

Cart #circular_movement-0 | 2024-04-07 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

3
0 comments



Hi!,

I recently started making an open-world adventure game, and thought I'd record myself making it.

Here's a link to the playlist.

The game makes use of the Entity-Component-System pattern, mainly because I wanted to learn how it works. I'm not quite sure how the game will end up looking, but it'll probably draw heavily from games like Zelda, Don't Starve, Stardew Valley and Moonlighter.

The rules I've imposed on myself are:

  • I won't think too much about what I'll be doing before recording
  • Videos should be between 15 and 30 minutes in length
  • I'll aim to record at least 1 video a week

I won't edit the videos, so that others can see my thought process / mistakes

The above rules might mean the video series is of questionable quality, but I'm enjoying making them anyway, and am learning a lot myself.

Thanks!

2 comments



Cart #58113 | 2018-10-18 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

Hi all, here's a multi-player open-world shooter I'm working on, using an entity-component-system model,
I'd love feedback, and am also interested in collaborating on this game (or a new one) with anyone interested.

Thanks!

2
4 comments



Cart #53214 | 2018-06-02 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
8

Here's my first game for Pico-8...

Burger Queem!
Build burgers to order, by catching food items as they fall.

Instructions:
Left and right arrow keys to move.
Move to the far right to serve a burger
Move to the far left to bin a burger

8
5 comments