CodeWalrus

Development => Calculators => Calc Projects, Programming & Tutorials => Topic started by: MateoConLechuga on January 05, 2015, 06:35:38 PM

Title: Portal CSE
Post by: MateoConLechuga on January 05, 2015, 06:35:38 PM
So I am working on a Portal game for the TI84+CSE edition, and I thought that I would cross post from Cemetech to provide some eye candy. Well, here you go! :)

Quote from: MateoConLechugaPortal, now under development for the TI84+CSE series calculator! :) All project updates will be posted here.

Current Level Progress: 3/40 Complete
Level Editor Progress: 11%

Okay, here are some differences that I currently have:
::Energy balls can toggle switches -- Should make more puzzles available
::Doors can be controlled by multiple buttons -- See above ^^

Controls:
[LEFT/RIGHT] - Select Level
[MODE] - Quits in-game
[ALPHA] - Speeds up text
[CLEAR] - Quits in a text display or main menu

[Download Link]

Current Screenshots:



Older, but still the same thing and relevant, screenshot:


Finished: (Or, more accurately, "Hey it works right!")
::PHYSICS!!! (With friction too. :) )
::Movement within Portals
::Portal Shooting
::Portal Bumping
::Portal On Portal Bumping
::Portal Clipping
::Portal Movement
::Level Loader
::Collision Detection
::Button Collision
::Doors
::Energy Balls
::Energy Ball Switches
::Glass Walls
::Portal Eraser Fields
::Spikes
::Splash Screen
::Lifting Crates
::Crate Bumping
::Transitions
::Crate Physics
::Custom Color Background
::Main Level Pack is an AppVar
::Fail Animation
::Level Decompression
::Throwing Crates
::Transitions
::Text/Story between levels
::Better Splash Screen
::New Custom Text

Currently In Progress:
::Custom Maps/Level Editor
::Level Editor Compressor
::Main Level Pack
::Random Bug Fixes :P
::Testing - Oh boy, that will be fun... :P

TODO:
Wow, the TODO list is empty because everything is being worked on... Yay! :)
Title: Re: Portal CSE
Post by: Snektron on January 05, 2015, 08:18:50 PM
:o looks amazing!!
Too bad i dont have a CSE :(
Title: Re: Portal CSE
Post by: aetios on January 05, 2015, 08:25:09 PM
I don't think you really have to put a cross-post in a quote ;) But boy, that looks so awesome o.o Makes me want an 84CSE just to play this. One thing that I see that can be fixed/better is the walking animation: IMO it could be slower.
Title: Re: Portal CSE
Post by: Keoni29 on January 05, 2015, 09:39:09 PM
I tried it on my calc. Runs amazingly smooth :D

I noticed that when you get stuck in a door the game ends and exits to the home screen
Title: Re: Portal CSE
Post by: MateoConLechuga on January 05, 2015, 10:05:24 PM
Quote from: Keoni29 on January 05, 2015, 09:39:09 PM
I tried it on my calc. Runs amazingly smooth :D

I noticed that when you get stuck in a door the game ends and exits to the home screen
Yes, there is nothing after Level 2 as I am still developing it; working on a level editor right now to make it a little easier. Custom levels will soon be supported. :)

Quote from: aeTIos on January 05, 2015, 08:25:09 PM
I don't think you really have to put a cross-post in a quote ;) But boy, that looks so awesome o.o Makes me want an 84CSE just to play this. One thing that I see that can be fixed/better is the walking animation: IMO it could be slower.
Yes, I've noticed this too, it is a little something on my todo list once I get around to ironing out all the little kinks. :)

Thanks guys! :)
Title: Re: Portal CSE
Post by: Keoni29 on January 05, 2015, 10:11:30 PM
Is a level just a tilemap? I am writing a level editor for the PC which might be useful to you. It exports in 8xv.
Can be found here: http://github.com/keoni29/cedit

I tested it on linux, but it should build on windows as well.
Title: Re: Portal CSE
Post by: MateoConLechuga on January 05, 2015, 10:15:22 PM
Quote from: Keoni29 on January 05, 2015, 10:11:30 PM
Is a level just a tilemap? I am writing a level editor for the PC which might be useful to you. It exports in 8xv.
Can be found here: http://github.com/keoni29/cedit

I tested it on linux, but it should build on windows as well.
Yes, it is indeed a tile map,. :D but things like doors, buttons, and energy balls are stored differently, and then compressed to save space. I will definitely be checking that out though; that looks very useful!
Title: Re: Portal CSE
Post by: Keoni29 on January 05, 2015, 10:16:41 PM
At the moment the parameters for the world editor are hardcoded and it would require re-compiling to change the parameters, but I will soon push the new commandline options interpreter.
To use your own tiles simply replace the tileset.bmp image and specify a grid size.
Title: Re: Portal CSE
Post by: MateoConLechuga on January 05, 2015, 10:18:53 PM
That is really neat! I'll try and see if I can get it to work on Windows.
Title: Re: Portal CSE
Post by: Keoni29 on January 05, 2015, 10:31:44 PM
You need SDL.h, SDL_image.h and SDL_ttf.h for this. Don't forget to link -lSDL -lSDL_image and -lSDL_ttf too :)
Title: Re: Portal CSE
Post by: Dream of Omnimaga on January 06, 2015, 12:43:58 AM
I play this every once in a while, although I have yet to beat the main level <_<

As said on Cemetech, good job, though, and I hope this gets finished. This is definitively gonna be big in the community when this comes out, especially after seeing how popular Portal Prelude was outside the community (especially Reddit). :)
Title: Re: Portal CSE
Post by: MateoConLechuga on January 12, 2015, 09:03:03 AM
So, been busy lately, just not here.  <_<. But anyhow, the on-calc level editor is nearing completion, and I should have a stable release out by Monday or Tuesday depending on how many testing bugs I get. :) Also, unlike the old editor, now you can add text before your custom levels, up to 290 characters. Pretty nifty. Here's some goodies of the current state of the level editor, followed by it in action. Also, the level text editor. :)

EDIT: Also, I changed the home menu and text, and added a couple sprites to make it look nicer. Of course, the background is customizable to four colors.
EDIT2: Now I just have to make levels... Oh, what fun. :)

(http://myimages.wdfiles.com/local--files/start/Map1.png)
(http://myimages.wdfiles.com/local--files/start/PlayMer.gif)
(http://myimages.wdfiles.com/local--files/start/Map3.gif)
Title: Re: Portal CSE
Post by: Snektron on January 12, 2015, 04:26:54 PM
it looks so good *.*
Title: Re: Portal CSE
Post by: Dream of Omnimaga on January 12, 2015, 05:31:35 PM
Woah, that title screen looks even better now :D, especially with the icons. And the level editor will definitively add replay value to this game (providing it's easy to use :P) :)
Title: Re: Portal CSE
Post by: aetios on January 12, 2015, 06:13:04 PM
This looks pretty darn sweet. Mark my words this is gonna be POTY CSE '15. Unless something more awesome comes out and that's gonna be something like a full speed GBA emu for CSE.
Title: Re: Portal CSE
Post by: CKH4 on January 14, 2015, 07:29:00 PM
I made a signature for this and portal nSpire. What do you think?
Title: Re: Portal CSE
Post by: Snektron on January 14, 2015, 07:38:21 PM
Assum :o
Title: Re: Portal CSE
Post by: CKH4 on January 14, 2015, 07:44:27 PM
I made a couple of mistakes, I'll fix them and be right back. I think that they're fixed.

Edit.
Here's some experiments:
(http://i.imgur.com/5JCUrR5.png)    (http://i.imgur.com/tX9r0td.png)
Title: Re: Portal CSE
Post by: MateoConLechuga on January 14, 2015, 11:33:07 PM
Nice work, CKH4! Those look pretty spiffy. :)

EDIT: Also, if anyone is interested, the simple level editor is out. I am going to make it a lot smarter later on, so that way you don't need to cycle though blocks. But the way levels are stored is going to remain the same, so new versions will work perfectly well with the older ones. :P

Download: http://www.cemetech.net/programs/index.php?mode=file&path=/84pcse/asm/games/PortalCSE.zip (http://www.cemetech.net/programs/index.php?mode=file&path=/84pcse/asm/games/PortalCSE.zip)
Title: Re: Portal CSE
Post by: Dream of Omnimaga on January 14, 2015, 11:40:10 PM
Quote from: CKH4 on January 14, 2015, 07:29:00 PM
I made a signature for this and portal nSpire. What do you think?
I would suggest maybe reducing the space between the text and images, so that the signature will fit inside the signature block. The forums show scrollbars for signatures higher than 150 pixels in height, so some of your text is missing by default.

Also maybe you could use this sig on all forums (replacing the CW Portal topic links with Cemetech and Omni there of course) ;)



Quote from: MateoConLechuga on January 14, 2015, 11:33:07 PM
Nice work, CKH4! Those look pretty spiffy. :)

EDIT: Also, if anyone is interested, the simple level editor is out. I am going to make it a lot smarter later on, so that way you don't need to cycle though blocks. But the way levels are stored is going to remain the same, so old versions will work perfectly well with the older ones. :P

Download: http://www.cemetech.net/programs/index.php?mode=file&path=/84pcse/asm/games/PortalCSE.zip (http://www.cemetech.net/programs/index.php?mode=file&path=/84pcse/asm/games/PortalCSE.zip)
Cool to hear. Does this new version include the title screen and other changes previously posted? :)
Title: Re: Portal CSE
Post by: MateoConLechuga on January 14, 2015, 11:47:04 PM
Quote from: DJ Omnimaga on January 14, 2015, 11:40:10 PM
Quote from: MateoConLechuga on January 14, 2015, 11:33:07 PM
Nice work, CKH4! Those look pretty spiffy. :)

EDIT: Also, if anyone is interested, the simple level editor is out. I am going to make it a lot smarter later on, so that way you don't need to cycle though blocks. But the way levels are stored is going to remain the same, so old versions will work perfectly well with the older ones. :P

Download: http://www.cemetech.net/programs/index.php?mode=file&path=/84pcse/asm/games/PortalCSE.zip (http://www.cemetech.net/programs/index.php?mode=file&path=/84pcse/asm/games/PortalCSE.zip)
Cool to hear. Does this new version include the title screen and other changes previously posted? :)
Indeed it does. :) Still have to improve the level editor style, but making it easier is super easy now. :P
Title: Re: Portal CSE
Post by: AssemblyBandit on January 18, 2015, 03:43:34 AM
This game looks awesome! I just got finished playing Portal 2 a couple weeks ago (I'm late, I know) and now I can get right back into it!
Title: Re: Portal CSE
Post by: CKH4 on January 18, 2015, 03:48:44 AM
DJ O:
I replaced it on the other sites and I'll reformat the signature to conserve space.

Mateo:
Can't wait, hopefully it'll be compatible with the new CE. That's the one that I plan on getting if it maintains compatibility.
Title: Re: Portal CSE
Post by: Dream of Omnimaga on January 18, 2015, 04:08:57 AM
By the way I tried this the other night and good job again. I still can't beat the main level, though. XD
Title: Re: Portal CSE
Post by: aetios on January 19, 2015, 10:49:32 AM
Quote from: CKH4 on January 14, 2015, 07:29:00 PM
I made a signature for this and portal nSpire. What do you think?
Looks nice, but please, Nspire is written with only the first N capitalized. Need proof, check the Nspire system menu ;)
Title: Re: Portal CSE
Post by: CKH4 on January 19, 2015, 02:56:17 PM
Ok, I didn't know (don't own one) but I did it to look fancy. I'll change it if LD Studios does, I may end up updating it later today.
Title: Re: Portal CSE
Post by: LD Studios on January 19, 2015, 04:40:46 PM
Quote from: CKH4 on January 19, 2015, 02:56:17 PM
Ok, I didn't know (don't own one) but I did it to look fancy. I'll change it if LD Studios does, I may end up updating it later today.
I didn't even think the banner was very wrong. The nspire logo uses an italics n, and a lower case s, which is pretty similar to what CKH4 did. I guess the s could be a bit shorter to show that it isn't upper case, but its hard to make a good s any shorter than that. I would definitely leave the n as it is.
Title: Re: Portal CSE
Post by: CKH4 on January 19, 2015, 05:15:26 PM
Yeah, I'll make the the s shorter when I update them.
Edit due to inability to read.
Title: Re: Portal CSE
Post by: MateoConLechuga on January 19, 2015, 09:25:23 PM
Thanks all! :) Also, if anyone wants to make some super-difficult levels, I have like 10 slots available. :)
Title: Re: Portal CSE
Post by: Dream of Omnimaga on January 20, 2015, 09:05:47 AM
Do you mean external levels? If they are internal, then make sure those hard levels are not the only levels available through the entire game, because if it's really too hard then people will probably not play the original level set much. :P
Title: Re: Portal CSE
Post by: MateoConLechuga on January 20, 2015, 10:55:04 AM
Quote from: DJ Omnimaga on January 20, 2015, 09:05:47 AM
Do you mean external levels? If they are internal, then make sure those hard levels are not the only levels available through the entire game, because if it's really too hard then people will probably not play the original level set much. :P
Makes sense. :P But considering I have 50 total levels, I think 10 kind of hard ones is a fair amount. :)
Title: Re: Portal CSE
Post by: CKH4 on January 20, 2015, 12:23:09 PM
Yeah, I can probably do a walk through (possibly even a faked speedrun).
Title: Re: Portal CSE
Post by: Dream of Omnimaga on January 21, 2015, 04:17:10 AM
Quote from: MateoConLechuga on January 20, 2015, 10:55:04 AM
Quote from: DJ Omnimaga on January 20, 2015, 09:05:47 AM
Do you mean external levels? If they are internal, then make sure those hard levels are not the only levels available through the entire game, because if it's really too hard then people will probably not play the original level set much. :P
Makes sense. :P But considering I have 50 total levels, I think 10 kind of hard ones is a fair amount. :)
Ah ok I was worried you would have 10 total and only hard ones :P, I wanted to make sure in case :P
Title: Re: Portal CSE
Post by: novenary on January 21, 2015, 03:09:31 PM
Wow that looks great. Thus game is perfect for the CSE actually since it doesnt require too many screen updates. Good job. ;)
Title: Re: Portal CSE
Post by: MateoConLechuga on January 23, 2015, 03:28:04 AM
Yeah, it did work out alright. :) Anyhow, another important update has been released: It fixes a major bug while saving fields in the level editor. I doubt anyone actually encountered it though. :)

Also, one neat thing that you couldn't do in the original is activate multiple doors from a single button. Now you can! Also, you can control a single door from multiple buttons! And a whole bunch of other goodies. :)

Also, if anyone makes any levels, just email them to me, and if it is worthy, I'll include it in the final version and add you to the credits. Thanks all! :)

Download: PortalCSE.zip (http://myimages.wikidot.com/local--files/start/PortalCSE.zip)
Title: Re: Portal CSE
Post by: Dream of Omnimaga on January 23, 2015, 04:58:38 PM
Awesome :). When I get around setting up both Portal featured project sub-forums, hopefully more people notice your request for extra levels :)
Title: Re: Portal CSE
Post by: MateoConLechuga on January 31, 2015, 01:21:17 AM
 :w00t:

Neat update! So, the final level pack is complete. Along with a story line :P. Level submissions are still available though! :) If anyone would like to beta-test the final pack, just pm me. Thanks all! Things are getting close!
Title: Re: Portal CSE
Post by: Dream of Omnimaga on January 31, 2015, 02:36:20 AM
Awesome to hear. :D