? DotMagics ● SmileBASIC Source

Sign In

Register
*Usernames are case-sensitive
Forgot my password

DotMagics

Submitted
Updated
Author
Minxrod
Public Key
4K241XVD
Min. Compat.
All
Version
1.0
Size
5.96 KB
Rating
13 votes
Description [This is my contest entry!] Have you ever player powder game? No? Yes? Doesn't matter, because this is better! lol not really This is a game where you can place color dots with liquid-style physics, and watch them combine (or not) to make beautiful art or strange mixing contraptions! With over TEN different dot types, the possibilites are definitely not endless, but there are definitely a lot of them! Somewhere along the lines of 200*100*16*1000 at least! Enough fun to last for probably a 3DS's lifetime and then some! Wow! Ok, my description is ridiculous but it's a dot game with good physics and 'decent' speed! You can have somewhere between 1000 and 2000 dots with not too much lag, amazingly! GLOAD for the win! And if you liked it, check out Powder Game, one of my main inspirations. Instructions Touch in the small boxes of color to choose a color. Touch on the numbers to choose a dot size/quantity, with 0 being smallest and 7 being largest Touch in the big box to place dots! The bottom 8 colors are 'filters' and the top 8 are 'liquids'. Collisions are based off of binary, which is pretty cool :) see "Notes" to learn more, or just look at the code and try to figure it out from there. Also, just know that there is no 'eraser' implemented yet. I am trying to come up with the best way to do this currently. Notes This was partially inspired by powder game, but with a color-mixing theme, and it uses bitmasks and binary heavily. The collisions between dots are determined by two arrays; the buffer (last frame) and current (new frame) to make sure no old dots or new dots become fused incorrectly (mostly works! :D). The bitmask looks like this: FRGB F=Filter. This determines whether or not physics affect the dot. If set, then it floats and will not move. If reset, dot falls according to the normal liquidy physics. R=Red. If this bit is set, the resulting dot will have a red tint. G=Green. If this bit is set, resulting dot will be green. B=Blue. If this bit is set, resulting dot will be blue. Collisions are determined by bitmasking the dot's binary with whatever it is trying to go into, using AND logic. If any of the bits match, then the dot cannot move to the new space. Otherwise, the dots will intersect, and using OR logic combine their colors in the process. For example, a red dot falls onto a blue dot. They fuse into a magenta type color! The dots are still individuals, however, and can also flow apart. This brings me to a rather important detail currently with dot selection. You can select fused colors, with masks such as 0110, and they will not be able to separate. This means that the dot will remain that color, while still being able to fuse with any remaining colors. Also, planned possible features include:
  1. Eraser
  2. More dots + types of dots

Changelog

Update 0.9b: Now you can change the dot size! Plus GUI update i.e. version number, FPD values and a slider bar thingy for sizes. Touch controls FTW ^-^ Update 1.0: New features focused on usability! * No more resetting the game to clear, just touch the button! * Play and pause buttons for easy editing and playback * What color was selected? Well, now you can see easily, along with dot info in binary! Yay! * Various bug fixes
Categories
Keywords
  • dot
  • fun
  • color
  • contest
  • simulation
  • physics
38 Comment(s) Yoshiandjoshi123543 Yoshiandjoshi123543 Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength Video Games I like to play video games! Hobbies Everytime you draw near the bottom left corner the program crashes. PikaRyan PikaRyan Second Year My account is over 2 years old Website Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Pokemon Is Awesome! I love Pokemon! Express Yourself Powder game? On 3ds? YETH GIMME PLS Amoura Amoura Deep Sleep Hidden Website I crashed the program. "Subscript out of range in 0:234" I've done it twice, now. I'm not sure exactly what I'm doing but this might be a way to cause it: 1) Fill the screen with 9999 dots. 2) Put the dots in falling state if they weren't already. 3) Wait a few seconds, then clear all the dots. 4) Try to create a dot in the bottom-left corner of the canvas. [EDIT]: I don't imagine anyone actually seeing pleasure in watching 9999 dots fall with so much lag, but you might want to consider fixing the bug anyway. Minxrod Minxrod Summer 2016 Contest Participant I participated in the SmileBASIC Source Summer 2016 Contest! Programming Contest Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Pokemon Is Awesome! I love Pokemon! Express Yourself Huh, I have no idea why that would happen. I have not worked on this for a while, I'll look at it tomorrow if I don't forget in the morning. Agh, bugs :P Amoura Amoura Deep Sleep Hidden Website Good luck. It seems in most cases bug-free (who actually sees pleasure in that many dots???). I guess I didn't compliment you, so I want to. Nice work on this. I wonder how it'd look on a n3ds (I don't have one). 12Me21 12Me21 Head Admin Second Year My account is over 2 years old Website Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself
(who actually sees pleasure in that many dots???)...
...............
PetrifiedLasagna PetrifiedLasagna Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Reading I like to read books! Hobbies RNG Hidden Easter Eggs This looks great. I remember on Petit Computer I made a "Pyro Sand" style game, but PTC was so slow that it only worked at very low resolutions (Map size to screen size). I can't wait to make some sweet graphics with this :) R6Soft R6Soft Holy crap, it's Powder Game! Alphadog_Games Alphadog_Games Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Summer 2016 Contest Participant I participated in the SmileBASIC Source Summer 2016 Contest! Programming Contest Avatar Taboo I didn't change my avatar for 180 days Website I've tested the o3DS with 9999 dots, and it takes over 60 frames to update the screen Sam Sam Amazing Page Hidden Achievements Great Page Hidden Achievements Good Page Hidden Achievements I remember playing this game for the awesome reactions between colors: I'd fill a circle with gunpowder, make a fuse and burn it so it exploded just like a bomb. Your version of the game is boring, but the engine is pretty cool. Minxrod Minxrod Summer 2016 Contest Participant I participated in the SmileBASIC Source Summer 2016 Contest! Programming Contest Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Pokemon Is Awesome! I love Pokemon! Express Yourself Yep. To go with the color theme, this has mixing instead :P Perska Perska Summer 2016 Contest Winner I won the SmileBASICSource Summer 2016 Contest! Programming Contest Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Great Page Hidden Achievements
SWAP THE,MAP'BUFFER
Hahaha nice!
Minxrod Minxrod Summer 2016 Contest Participant I participated in the SmileBASIC Source Summer 2016 Contest! Programming Contest Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Pokemon Is Awesome! I love Pokemon! Express Yourself Haha, random code secrets are fun!
Minxrod Minxrod Summer 2016 Contest Participant I participated in the SmileBASIC Source Summer 2016 Contest! Programming Contest Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Pokemon Is Awesome! I love Pokemon! Express Yourself There will be one more update today; it will include a clear-all function (reset), pausing, and possibly saving/loading of designs. :) If I can come up with a decently fast eraser option, I may include this too. EDIT: Contains.... * Mask viewing (for collision info) * Clear-all/reset * Pause / Play buttons To be added... * Palette changing * Saving / Loading * Eraser, if an efficient method is found 12Me21 12Me21 Head Admin Second Year My account is over 2 years old Website Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself finally Minxrod Minxrod Summer 2016 Contest Participant I participated in the SmileBASIC Source Summer 2016 Contest! Programming Contest Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Pokemon Is Awesome! I love Pokemon! Express Yourself GLOAD is bad why? snail_ snail_ Helper Received for being very helpful around SmileBASIC Source Achievements OSP Contest 2 Contest Participant I participated in the second SmileBASIC Source OSP Contest! Night Person I like the quiet night and sleep late. Express Yourself It's slow Minxrod Minxrod Summer 2016 Contest Participant I participated in the SmileBASIC Source Summer 2016 Contest! Programming Contest Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Pokemon Is Awesome! I love Pokemon! Express Yourself Faster than a GPSET-FOR though, isn't it? 12Me21 12Me21 Head Admin Second Year My account is over 2 years old Website Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Oh, nevermind, I mixed up GLOAD and GSAVE. yeah GLOAD is pretty fast. Alphadog_Games Alphadog_Games Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Summer 2016 Contest Participant I participated in the SmileBASIC Source Summer 2016 Contest! Programming Contest Avatar Taboo I didn't change my avatar for 180 days Website On the o3DS, it does lag quite a bit with lesser dots Minxrod Minxrod Summer 2016 Contest Participant I participated in the SmileBASIC Source Summer 2016 Contest! Programming Contest Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Pokemon Is Awesome! I love Pokemon! Express Yourself Is it with around 300-400 that it starts to lag like a n3ds at 1000? A2D_apps A2D_apps Minecraft Is Awesome! I love Minecraft! Express Yourself Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself Pokemon Is Awesome! I love Pokemon! Express Yourself i can test that. i can clock down the cpu to match the o3ds speed Minxrod Minxrod Summer 2016 Contest Participant I participated in the SmileBASIC Source Summer 2016 Contest! Programming Contest Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Pokemon Is Awesome! I love Pokemon! Express Yourself If you want to test it, tell us the results :) A2D_apps A2D_apps Minecraft Is Awesome! I love Minecraft! Express Yourself Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself Pokemon Is Awesome! I love Pokemon! Express Yourself HANS wont load sb. it usually loads all of the other apps though. but as for the n3ds i start to lag at about 1000 A2D_apps A2D_apps Minecraft Is Awesome! I love Minecraft! Express Yourself Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself Pokemon Is Awesome! I love Pokemon! Express Yourself it lags after i put a lot of sand on. (n3ds) Minxrod Minxrod Summer 2016 Contest Participant I participated in the SmileBASIC Source Summer 2016 Contest! Programming Contest Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Pokemon Is Awesome! I love Pokemon! Express Yourself Yep, I am aware of lag :( I have a few ideas that will reduce lag in a couple of spots, but I don't know if it will work. The liquids are the only thing that needs physics updates, but my code is structured so that all filters also get a *small* bit of lag. This needs to be fixed, but I am thinking of the best way to go about it. My actual physics can't be changed much, but there is one thing I've been needing to try to help with lag. EDIT: Did some tests, took about 20 frames to update all 9999 possible dots with all liquid. This is, say, 3 frames per second? I think I can fix this a lot. A2D_apps A2D_apps Minecraft Is Awesome! I love Minecraft! Express Yourself Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself Pokemon Is Awesome! I love Pokemon! Express Yourself the frame rate decreases dramatically aftter about a thousand for me Minxrod Minxrod Summer 2016 Contest Participant I participated in the SmileBASIC Source Summer 2016 Contest! Programming Contest Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Pokemon Is Awesome! I love Pokemon! Express Yourself Pretty much. However, while it is definitely more NOTICEABLE after 1000, it actually doesn't change by that much. The number of calculations is proportional to the number of dots for the most part, so a 'dramatic' change is due to dot choice or an illusion. EDIT: Also, I cannot seem to figure out a reasonable way to optimize this, anyone have great ideas for optimizations? What I've tried didn't make a difference and/or broke the physics. kenchic kenchic Avatar Taboo I didn't change my avatar for 180 days Website Third Year My account is over 3 years old Website osu! Is Awesome! I love osu! Express Yourself Guess who won? Ptcguy Ptcguy First Week Joined in the very first week of SmileBASIC Source Website Minecraft Is Awesome! I love Minecraft! Express Yourself Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength Nice powder game! Really interesting to see how good this can become! ElzoBro ElzoBro First Day Joined on the very first day of SmileBASIC Source Website Video Games I like to play video games! Hobbies Drawing I like to draw! Hobbies Link to Powder Game: http://dan-ball.jp/en/javagame/dust/ Link to Powder Game 2: http://dan-ball.jp/en/javagame/dust2/ Also maybe play some of the other games on Dan-Ball, they're all pretty dang cool (I recommend Stick Ranger): http://dan-ball.jp/en/javagame/ kenchic kenchic Avatar Taboo I didn't change my avatar for 180 days Website Third Year My account is over 3 years old Website osu! Is Awesome! I love osu! Express Yourself It's a cool game, especially on your phone 12Me21 12Me21 Head Admin Second Year My account is over 2 years old Website Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Powder Game is nice, except the "community" is total cancer 99% of the saves are just vote scams (on the English site, at least). I play The Powder Toy now. Even though the physics aren't as good, it has more features and actual moderators. Minxrod Minxrod Summer 2016 Contest Participant I participated in the SmileBASIC Source Summer 2016 Contest! Programming Contest Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Pokemon Is Awesome! I love Pokemon! Express Yourself Yeah, community is very bad right now, even worse since uploads on mobile were introduced I have not tried Powder Toy yet. jamieyello jamieyello First Day Joined on the very first day of SmileBASIC Source Website Night Person I like the quiet night and sleep late. Express Yourself Drawing I like to draw! Hobbies How long has it been, 12 years or so and they still haven't removed that stupid dot limit. ElzoBro ElzoBro First Day Joined on the very first day of SmileBASIC Source Website Video Games I like to play video games! Hobbies Drawing I like to draw! Hobbies OMG It's like Powder Toy SB! (Powder Game 1 and 2 are better than Toy IMO) R6Soft R6Soft Powder Toy is better when it comes to features and ACTUAL MODERATION, but Powder Game 1 and 2 DEFINITELY win as far as physics go. ;-) 12Me21 12Me21 Head Admin Second Year My account is over 2 years old Website Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself I agree!