๐ŸŽฎ

Posts tagged with :video_game:

benjamin
@benjamin2
Today I set up client and server hosting for my snake game (DNS, PM2 + NGINX, LetsEncrypt, deploy hooks, etc.) :yay:
https://cloud-4cmspq5j3-hack-club-bot.vercel.app/0image.png
benjamin
@benjamin2
Finally, after way too many hours of figuring out how NOT to build netcode, Iโ€™ve got a base netcode for my game working with client-side prediction, a configurable interpolation period/patch rate that works with super-high lag, extrapolation when the packets get delayed, and more!
ced
@ced1
imagine if you tried to run a gamelab game on a 2 core CPU -- a Raspberry Pi Pico -- using a software rasterizer written entirely in Python. the fps might be 5. yeah, the fps is 5. join #nemea to help us as we scramble to speed this up and get it in the hands of hack clubbers everywhere ๐Ÿ˜‰
HenryBass-U02KEJ8T6D8
@HenryBass-U02KEJ8T6D82
The Vermont Stock Market Game (State-wide school supported stock trading simulator, where basically we just get 100k to trade over a few months) ended just a week ago and it turns out i got 2nd place in the state (Yes, the 1st place was a non-student in a student competition), and first out of all students, out of 200+ teams. Now I have to meet with the superintended and some other people and attend some stuff, along with do some live stream thing I think the reason I won is because most teams had a bunch of people who wanted to do different things, screwing over the whole team. I had a really small team, and did most of the trades, giving me the advantage of a more consistent strategy I'm shocked I didn't loose all of the money lol, just spent 3 months shorting tech startups small win but didn't have anything else to scrapbook
https://cloud-4qlh9k4bj-hack-club-bot.vercel.app/0a.png
belle
@belle0
hey fwens ๐Ÿ‘‹ hope your day is going well!!! today i worked on more past papers (i really enjoyed today's maths questions hehe) and also started breakthecode.tech/game (thank you @nzeng for sharing it in #lounge)... i'm very lost but trying to stumble my way through haha!
https://cloud-7ufv73w1j-hack-club-bot.vercel.app/0btc.png
ced
@ced1
imagine you were making a multiplayer web game at regular intervals on the server, you want to tick your simulation. setInterval(() => { your players move forward, โžก๏ธ your enemies decide who to badger next, :threat: some of your projectiles are just barely dodged, :flug: and others smash satisfyingly into their targets :bonk: }, 1000 / 60); at each of these intervals, the server decides which of these occur, and which ... do not. the difference is quite literally life and death for the denizens of your online realm: if a player's input makes it to the server just after this update has occurred, they might just not move out of the way of the oncoming missile in time. after one of these updates when the server has just finished making these vital decisions, it blasts relevant portions of them out to everyone who's connected to your server. (there's no point in updating you about something if it's happening on the other side of the map!) meanwhile, in the player's web browser, these regular updates from the server are gradually applied, so the server's periodic contemplation is rendered as a seamless sequence of fluid movements... unless those updates aren't really so regular at all ... the contract that the server has with the client -- that the server will give the client evenly spaced out updates at regular-enough intervals so that the client can smoothly move between them -- isn't actually the same as the contract that setInterval provides. all setInterval(update, 1000) means is that there will be ABOUT one thousand milliseconds between each of your updates, usually more. so if the actual interval ends up being 1009ms one frame, the next update won't be about 991ms later so that updates happen at regular one second intervals, it will be more like 1007ms later, so that now you're a total of 16 ms away from the contract you had with the client. this is known as drift. at worst, this passes on all of the problems of using setInterval for animation onto your game. but what if you're doing something fancier than just moving between the updates you get from the server as you get them? there's always going to be a random delay between what the server sends and what you get, anyway. it might make more sense to push the updates you get from the server onto a stack, and exactly as often as the server updates, pop the next set of positions off of that stack. ... except that if you're popping using one setInterval on the client, and the server is pushing out those simulation ticks using a setInterval of its own ... and each has a different drift ... they're quickly going to fall out of sync. if the server is drifting a lot, your stack might gradually accumulate thousands of positions that you just can't keep up with ... and if the server is drifting less than you are, you might run out of positions to show the player! suffice it to say, it's super important to have a setInterval that updates without drift. I threw together an implementation of one this morning. I call it a `tick`, since it works well for those simulation ticks I was talking about before. To test it, I went ahead and also made a drift visualizer. Here's a screenshot of it! The grey lines are spaced out at 0.5s intervals, and the first row of blue marks is made by setInterval, while the other row of blue marks are made by my own tick function. as you can see, they stick to the "wall clock time" a lot better than Interval does, even when you leave it running for several minutes! here's a screenshot! I'll post the source in the thread :) fun fact: everything that moves is a CSS animation ๐Ÿ˜‚ I didn't want to pollute the JS event loop, although now that I think about it, it might've been better to so that I can see how well my ticker keeps itself together in the presence of some event loop pressure.
https://cloud-7qivvrkmx-hack-club-bot.vercel.app/0image.png
J_cordz
@J_cordz7+
So today I had Biology ๐Ÿฆ  Lab ๐Ÿ”ฌ again and did a lot of experiments! I also learned about Gitmoji ๐Ÿš€ an emoji guide for commit :pullrequest: messages, and tomorrow I have an English Exam on Biological ๐ŸŒฑ /Medical ๐Ÿฅผ terms, as well and I'll try to digital draw my Bio diagrams that I have on my notebook! Also I will be adding new things on my Itch.io profile and write new content for my CodeJelly :jelly-grape: Sic-fi ๐Ÿ›ธ story submission, which started working as a small game in dev after the event! :itch-io: And finally, although I coded a bit today, keeping a Github :github: streak ๐ŸŸฉ is hard, which is something I'm probably not going to be able to keep going, besides all of this, my day also went very well! :quad_parrot:
https://cloud-1ykotmr7q-hack-club-bot.vercel.app/0captura_de_pantalla_2022-04-06_a_la_s__22.08.46.pnghttps://cloud-1d6q2x19w-hack-club-bot.vercel.app/0captura_de_pantalla_2022-04-06_a_la_s__21.55.58.png
ced
@ced1
obedient? yes intelligent? wasn't in the job description (was no job description, our minions are spawned, not hired. comes with its own pitfalls)
christina695
@christina6950
I use Game Lab a lot in our local Hack Club and yesterday i made a pull request on Scrapbook to improve the flow for clubs sharing their ships (by moving the option of choosing โ€œotherโ€ for your school to the top option, as my local Hack Club is not associated with any school.
https://cloud-dhrkl2bgg-hack-club-bot.vercel.app/0screen_shot_2022-04-01_at_11.59.55_am.png
ced
@ced1
https://cloud-crn9wqfzf-hack-club.vercel.app/0image.png
clubscraps-U035D3VA7R7
@clubscraps-U035D3VA7R77+
https://cloud-cktiz2ew4-hack-club-bot.vercel.app/0image.png
clubscraps-U035D3VA7R7
@clubscraps-U035D3VA7R77+
https://cloud-kd93boxvd-hack-club-bot.vercel.app/0image.png
Skyascii
@Skyascii0
Just finished this really cool game called Lifeline, a sort of a space themed CYOA game. It was just as good as I played it a few years ago, would totally recommend it.
https://cloud-1efx7bshp-hack-club-bot.vercel.app/0image.png
HenryBass-U02KEJ8T6D8
@HenryBass-U02KEJ8T6D82
messed around with game dev, this time with an engine. I usually hate using big bulky engines like unity, but I need to learn to like them. I made a tilemap, and a movement system. idrk where I'll take this spent so much of the last two days on this haven't been able to do much of anything
https://cloud-8dlzorby7-hack-club-bot.vercel.app/0i_mnotgoingtobothercomingupwithanotherthrowawayfilename.png
jessicard
@jessicard0
excuse the double ship/scrapbook post, but I need to record this on my scrapbook ๐Ÿ™‚ I made my first game lab game yesterday! I was having too much fun making sprites of my golden retriever, and ended up making Samantha Training Simulator. Thereโ€™s a bunch more I want to add, but how it works is you have to perform a series of commands, and every one you get right is a point! gamelab.hackclub.com/?id=d6945ae1a9a64ba1dab3e3915904ffcc
https://cloud-1unlpz92j-hack-club-bot.vercel.app/0sam.gif
BenjaminSmith
@BenjaminSmith7+
J_cordz
@J_cordz7+
Happy Birthday and Hack Day ๐Ÿง ๐Ÿฐ Hack Club!!! :hack-club: :quad_parrot: Today is Hack Club anniversary, an awesome day to celebrate! ๐ŸŽ‰ Joining Hack Club has been a fantastic experience for me, it let me learn and build great things, make new friends and have the best moments! And today I designed a Gadzoอžoks!๐“ƒž workflow for @caleb in #denio-den! And Iโ€™m going to be working on a better version of my Itch.io website for my game development projects! In this area, I need to learn more how the DOM works, and I'm going to be using @ced's tips and resources he gave me some time ago!!! ๐ŸŽฎ
https://cloud-k94csftsi-hack-club-bot.vercel.app/0captura_de_pantalla_2022-03-20_a_la_s__14.35.44.png
ella
@ella0
:eye_real: Had an epic pair programming session and worked on a HTML canvas game with @ced today. We illustrated some pixel art sprites, made a game map in Blender, & lots of math. :uwu_face:
J_cordz
@J_cordz7+
Today I learned more about CSS :css: "before" Pseudo-Element! I studied this using MDN Web Docs, and I'm going to be using this to add interesting elements to my Scrapbook :hack-club:! Also here's an screenshot I took today while playing Astro's Playroom! :playstation: ๐ŸŽฎ
https://cloud-duct2fins-hack-club-bot.vercel.app/0screenshot_20220314_225003.jpghttps://cloud-g36aatkwu-hack-club-bot.vercel.app/017f8bda4ee196-screenshoturl.jpg
av
@av1
I made a random number guessing game with Pyhton, from a FreeCodeCamp Video! It was really fun, onwards to the next challenge: I learned a couple new things: โ€ข f strings (thesse are super helpful) โ€ข functions in python, a lil about parameters in functions.
https://cloud-7siedd088-hack-club-bot.vercel.app/0image.png
J_cordz
@J_cordz7+
Today I had an exam, and got to play some games and install other from my game library at my PS5! ๐ŸŽฎ The SSD is super fast, the new UI is also cool, and overall it's a great experience! I'm totally sure it will let me have awesome gaming experiences as I had this years with my PS4. :playstation: Here's some game screenshots from Spider-Man, Subnautica, God of War and Astro's Playroom, with a cool Easter Egg to Gow!
https://cloud-i3fejayzn-hack-club-bot.vercel.app/017c050eff65-b570843b388ccd0d8d6.1ca9f02b37f148c9_message_417835923962522_1632171577978.jpghttps://cloud-nwzusemuo-hack-club-bot.vercel.app/017c050ede07-b570843b388ccd0d8d6.1ca9f02b37f148c9_message_417835927694880_1632171592558.jpghttps://cloud-dujs8w0b0-hack-club-bot.vercel.app/017c050f222f-b570843b388ccd0d8d6.1ca9f02b37f148c9_message_417835959757092_1632171717801.jpghttps://cloud-1d1fev3yy-hack-club-bot.vercel.app/017c050fde2a-b570843b388ccd0d8d6.1ca9f02b37f148c9_message_417836053956734_1632172085768.jpghttps://cloud-8l2mq2mcf-hack-club-bot.vercel.app/017c05102a7d-b570843b388ccd0d8d6.1ca9f02b37f148c9_message_417836065274875_1632172129979.jpghttps://cloud-3rm6mz7jf-hack-club-bot.vercel.app/017c050f6c4c-b570843b388ccd0d8d6.1ca9f02b37f148c9_message_417835980086269_1632171797211.jpghttps://cloud-k6zq33o4d-hack-club-bot.vercel.app/017f80f453e019-screenshoturl.jpg
abby
@abby0
For my CS class at school I led a group in using Processing to build an animated GIF. We were inspired by the popular game Wordle to make a GIF of people attempting to solve a wordle. Our animated GIF shows different ways to get to a word. We designed the boards in Figma. Here is the repo: github.com/abbyfischler/swordle and Iโ€™m attaching a demo!
https://cloud-b4e39j2dq-hack-club-bot.vercel.app/0a5665791-aec3-4cef-b274-01cabc23af74_1_105_c.jpeg
ced
@ced1
got back to rpgc and finally finished the inventory ui, you can drag items around as well as the entire window. now I just need to make that actually change what your player is holding, and make it so that you can pick things up off of the ground ...
https://cloud-ado9i0jq7-hack-club-bot.vercel.app/0image.png
clubscraps-U035D3VA7R7
@clubscraps-U035D3VA7R77+
https://cloud-7tyau0jz8-hack-club-bot.vercel.app/0image.png
ZaynB
@ZaynB0
https://cloud-o6snuy3xb-hack-club-bot.vercel.app/0image.png
bumblesam2.0
@bumblesam2.00
too lazy to type out description (since im in quarantine) so here's a tl;dr : I made model for my game. thank you.
https://cloud-nmb62t34a-hack-club-bot.vercel.app/0kois.png
ced
@ced1
ella
@ella0
bumblesam2.0
@bumblesam2.00
Hi, I'm back. Its been a while since I've been in slack... welp I guess I'll update on what I've been doing. There are 2 projects I'm doing , one with team, and one personal: โ€ข Unity game(team project) โ€ข Source engine game (Personal, also remember when I said when I'm making my own engine? I'm merging that with this.) Welp its good to be back. so uh.. thanks for reading.
https://cloud-3l13m98j5-hack-club-bot.vercel.app/0ae.pnghttps://cloud-bwtfv717h-hack-club-bot.vercel.app/0adsasdads.png
maggie
@maggie1
msw
@msw7+
maggie
@maggie1
https://cloud-8f2kpk60w-hack-club-bot.vercel.app/0image.png
ced
@ced1
slightly unhinged ui its painful how much i can relate
https://cloud-8nv5re29q-hack-club-bot.vercel.app/0image.png
HenryBass-U02KEJ8T6D8
@HenryBass-U02KEJ8T6D82
woo scrapbook time alr! Working on a few projects โ€ข Remaking my trashy portfolio, with less everything (I swear to fucking god why can't scroll snap work) โ€ข messing around with circuits. Ordered a bunch of this little chips (image attached), and combined with XOR I'm hoping to make a simple adder. (Not as impressive when there are people on this slack designing whole CPUs) โ€ข Messing around with Noita-style falling sand sim, and resisting the urge to try that game โ€ข The most retarded Linux distro idea Also, Vitalik AMA was awesome! Below I've attached some of the interesting comments from the Vitalik AMA youtube live stream (hmm)
https://cloud-lb37o6i18-hack-club-bot.vercel.app/0upload1.pnghttps://cloud-9p7m6xjto-hack-club-bot.vercel.app/0upload2.pnghttps://cloud-7i20qu7mi-hack-club-bot.vercel.app/0image.png
ian
@ian7+
Worked on a small game lab feature
https://cloud-76lugbaop-hack-club-bot.vercel.app/0image_from_ios.jpg
msw
@msw7+
game lab is dope. still figuring out how to get gravity working
ian
@ian7+
Worked more on the game lab bug reporting system and itโ€™s almost finished
https://cloud-k9mzb16id-hack-club-bot.vercel.app/0image.png
BenjaminSmith
@BenjaminSmith7+
Hacking at the #gamelab-dev editor!
https://cloud-c4g6gfoa9-hack-club-bot.vercel.app/0image.png
ced
@ced1
added hp instead of instadeath, damage labels, an alternative control scheme that lets you play with one hand instead of using the mouse (it's what the red cursor that temporarily appears is for), lots of tweaks to the AI, etc. next up, for feature parity ... bow & arrow? then inventory UI and quests? wow, this is speeding along hehe shout out to @ella for making such an awesome font, Wack Club Sans, which I will definitely use in all of my projects henceforth hehe
J_cordz
@J_cordz7+
Today I started using the Kaboom Js library for game development!
https://cloud-23878v2wd-hack-club-bot.vercel.app/0screenshot_20220131_171401.jpg
zfogg
@zfogg1
these are just gorgeous ๐Ÿฅต if you haven't been following in #ww-zfogg-at-hotmail-com, i'm making a color palette art collection / trading card game called Square Supply :squaresupply: :yay:
https://cloud-q9egos28c-hack-club-bot.vercel.app/0image.pnghttps://cloud-ag8qcad0r-hack-club-bot.vercel.app/0image.pnghttps://cloud-7p27j302a-hack-club-bot.vercel.app/0image.pnghttps://cloud-dz4vhu4uu-hack-club-bot.vercel.app/0image.png
zfogg
@zfogg1
working with this artist (instagram.com/toyinvades) to make physical art for those who play my digital art collection NFT game.. she's so good! what an eye for color and patterns :yay: ๐Ÿ˜
https://cloud-jq6lf1ox3-hack-club-bot.vercel.app/0image.png
ian
@ian7+
Added a bug reporting feature to Game lab
https://cloud-5y8oqwvja-hack-club-bot.vercel.app/0image.png
AvniKashyap-U0304PML9UH
@AvniKashyap-U0304PML9UH5
#Day 4 The drawings of the final Hangman game.
https://cloud-a86nv5bjd-hack-club-bot.vercel.app/0screenshot_2022-01-30_at_4.40.33_pm.png
ian
@ian7+
working on an explore page for game lab
https://cloud-bhtpqf8h5-hack-club-bot.vercel.app/0image.png
ced
@ced1
I think the last time I posted here neither the physics nor the sword were a thing. well. they are now! I also wrote like a six paragraph summary in DMs with someone somewhere about what I'm doing differently this time 'round other than simply writing it in C. it's a neat overview of some of the things I've learned about making games in the past year+ since the Rust version. could probably turn that into a neat blog post at some point. I also got the game working on mac. still looking for someone to try it on Windows to see if DirectX has the rendering bug I think it might have. now all that's left to do for feature parity with the original version is um, I guess, physics for the sword, enemy AI, combat, then the bow and arrow, inventory ui, then quests. I want to add cool things you can interact with in the forest like pots you can break, grass you can cut, other assorted RPG tropes.
AvniKashyap-U0304PML9UH
@AvniKashyap-U0304PML9UH5
#Day 3 of making small game projects. Done making!!! Also, I didnโ€™t win in my own game๐Ÿ˜‚
https://cloud-pzlodnp1p-hack-club-bot.vercel.app/0screenshot_2022-01-28_at_12.25.55_pm.png
TechnoBladePlayz-U030JABEJ92
@TechnoBladePlayz-U030JABEJ920
Day 2 of VS Code import pygame import time import math from utils import scaleimage, blitrotatecenter GRASS = scaleimage(pygame.image.load("images/grass.jpg"), 2.5) TRACK = scaleimage(pygame.image.load("images/track.png"), 0.9) def newfunc(): TRACKBORDER = scaleimage(pygame.image.load("images/track-border.png"), 0.9) newfunc() REDCAR = scaleimage(pygame.image.load("images/red-car.png"), 0.55) GREENCAR = scaleimage(pygame.image.load("images/green-car.png"), 0.55) WIDTH, HEIGHT = TRACK.getwidth(), TRACK.getheight() WIN = pygame.display.setmode((WIDTH, HEIGHT)) pygame.display.setcaption("Racing Game For None!") FPS = 60 class AbstractCar: def init(self, maxvel, rotationvel): self.img = self.IMG self.maxvel = maxvel self.vel = 0 self.rotationvel = rotationvel self.angle = 0 self.x, self.y = self.STARTPOS self.acceleration = 0.1 def rotate(self, left=False, right=False): if left: self.angle += self.rotationvel elif right: self.angle -= self.rotationvel def draw(self, win): blitrotatecenter(win, self.img, (self.x, self.y), self.angle) def moveforward(self): self.vel = min(self.vel + self.acceleration, self.maxvel) self.move() def move(self): radians = math.radians(self.angle) vertical = math.cos(radians) self.vel horizontal = math.sin(radians) self.vel self.y -= vertical self.x -= horizontal def reducespeed(self): self.vel = max(self.vel - self.acceleration / 2, 0) self.move() class PlayerCar(AbstractCar): IMG = REDCAR STARTPOS = (180, 200) def draw(win, images, playercar): for img, pos in images: win.blit(img, pos) playercar.draw(win) pygame.display.update() run = True clock = pygame.time.Clock() images = [(GRASS, (0, 0)), (TRACK, (0, 0))] playercar = PlayerCar(4, 4) while run: clock.tick(FPS) draw(WIN, images, playercar) for event in pygame.event.get(): if event.type == pygame.QUIT: run = False break keys = pygame.key.getpressed() moved = False if keys[pygame.Ka]: playercar.rotate(left=True) if keys[pygame.Kd]: playercar.rotate(right=True) if keys[pygame.Kw]: moved = True playercar.moveforward() if not moved: playercar.reduce_speed() pygame.quit()
https://cloud-jhk1c9986-hack-club-bot.vercel.app/0background-black.pnghttps://cloud-2d4rgeud8-hack-club-bot.vercel.app/0pixel_ship_green_small.pnghttps://cloud-l7qkls810-hack-club-bot.vercel.app/0pixel_ship_blue_small.pnghttps://cloud-pcxrlhvxq-hack-club-bot.vercel.app/0pixel_laser_green.pnghttps://cloud-g26j5vs5d-hack-club-bot.vercel.app/0pixel_ship_yellow.pnghttps://cloud-1sc5nklcr-hack-club-bot.vercel.app/0pixel_laser_red.pnghttps://cloud-ny8el12wr-hack-club-bot.vercel.app/0pixel_ship_red_small.pnghttps://cloud-j7wkr33rr-hack-club-bot.vercel.app/0pixel_laser_yellow.pnghttps://cloud-bbbtxdaf6-hack-club-bot.vercel.app/0pixel_laser_blue.png